Ecosyste.ms: Packages

An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 1.7% on proxy.golang.org
Top 1.4% dependent packages on proxy.golang.org
Top 0.9% dependent repos on proxy.golang.org
Top 1.7% forks on proxy.golang.org
Top 2.2% docker downloads on proxy.golang.org

proxy.golang.org : github.com/decred/dcrd/blockchain/v4

Package blockchain implements Decred block handling and chain selection rules. The Decred block handling and chain selection rules are an integral, and quite likely the most important, part of Decred. At its core, Decred is a distributed consensus of which blocks are valid and which ones will comprise the main block chain (public ledger) that ultimately determines accepted transactions, so it is extremely important that fully validating nodes agree on all rules. At a high level, this package provides support for inserting new blocks into the block chain according to the aforementioned rules. It includes functionality such as rejecting duplicate blocks, ensuring blocks and transactions follow all rules, and best chain selection along with reorganization. Since this package does not deal with other Decred specifics such as network communication or wallets, it provides a notification system which gives the caller a high level of flexibility in how they want to react to certain events such as newly connected main chain blocks which might result in wallet updates. Before a block is allowed into the block chain, it must go through an intensive series of validation rules. The following list serves as a general outline of those rules to provide some intuition into what is going on under the hood, but is by no means exhaustive: This package supports headers-first semantics such that block data can be processed out of order so long as the associated header is already known. The headers themselves, however, must be processed in the correct order since headers that do not properly connect are rejected. In other words, orphan headers are not allowed. The processing code always maintains the best chain as the branch tip that has the most cumulative proof of work, so it is important to keep that in mind when considering errors returned from processing blocks. Notably, due to the ability to process blocks out of order, and the fact blocks can only be fully validated once all of their ancestors have the block data available, it is to be expected that no error is returned immediately for blocks that are valid enough to make it to the point they require the remaining ancestor block data to be fully validated even though they might ultimately end up failing validation. Similarly, because the data for a block becoming available makes any of its direct descendants that already have their data available eligible for validation, an error being returned does not necessarily mean the block being processed is the one that failed validation. Errors returned by this package have full support for the standard library errors.Is and errors.As methods and are either the raw errors provided by underlying calls or of type blockchain.RuleError, possibly wrapped in a blockchain.MultiError. This allows the caller to differentiate between unexpected errors, such as database errors, versus errors due to rule violations through errors.As. In addition, callers can programmatically determine the specific rule violation by making use of errors.Is with any of the wrapped error kinds.

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/decred/dcrd/blockchain/v4
Keywords: blockchain, cryptocurrency, dcrd, decred, decred-daemon, decred-nodes, go, golang, p2p, peer-to-peer
License: ISC
Latest release: 12 months ago
First release: over 2 years ago
Namespace: github.com/decred/dcrd/blockchain
Dependent packages: 14
Dependent repositories: 34
Stars: 687 on GitHub
Forks: 281 on GitHub
Docker dependents: 1
Docker downloads: 8
See more repository details: repos.ecosyste.ms
Last synced: 3 days ago

Top 7.3% on proxy.golang.org
github.com/companyzero/bisonrelay v0.2.0
15 versions - Latest release: 23 days ago - 1 dependent repositories - 23 stars on GitHub
Top 8.2% on proxy.golang.org
github.com/decred/lnd v0.6.0
23 versions - Latest release: 3 months ago
Top 5.1% on proxy.golang.org
decred.org/dcrdex/dex/testing/loadbot v0.0.0-20240117171138-3cd3679e8177
The Decred Decentralized Exchange (DEX), powered by atomic-swaps.
86 versions - Latest release: 5 months ago - 144 stars on GitHub
Top 8.0% on proxy.golang.org
github.com/decred/dcrlnlpd v0.0.0-20240104150435-171abf5019e3
5 versions - Latest release: 5 months ago - 1 dependent package - 2 dependent repositories - 5 stars on GitHub
Top 4.1% on proxy.golang.org
github.com/decred/dcrlnd v0.5.0
Decred Lightning Network Daemon ⚡️
21 versions - Latest release: 6 months ago - 3 dependent packages - 5 dependent repositories - 33 stars on GitHub
Top 5.1% on proxy.golang.org
github.com/decred/dcrdata/exchanges/rateserver v0.0.0-20231119150039-0b6dbacbc787
Decred block explorer, with packages and apps for data collection and storage. Written in Go.
17 versions - Latest release: 6 months ago - 124 stars on GitHub
Top 5.1% on proxy.golang.org
github.com/decred/dcrdata/cmd/dcrdata v0.0.0-20231119150039-0b6dbacbc787
Decred block explorer, with packages and apps for data collection and storage. Written in Go.
8 versions - Latest release: 6 months ago - 124 stars on GitHub
Top 8.2% on proxy.golang.org
github.com/decred/vspd v0.0.0-20230929082053-9ee95f98ab2d
A Voting Service Provider (VSP) for the Decred network.
34 versions - Latest release: 8 months ago - 17 stars on GitHub
Top 5.2% on proxy.golang.org
github.com/decred/dcrdex v0.6.3
The Decred Decentralized Exchange (DEX), powered by atomic-swaps.
43 versions - Latest release: 9 months ago - 1 dependent package - 144 stars on GitHub
Top 2.2% on proxy.golang.org
decred.org/dcrdex v0.6.3
The Decred Decentralized Exchange (DEX), powered by atomic-swaps.
43 versions - Latest release: 9 months ago - 22 dependent packages - 18 dependent repositories - 144 stars on GitHub
github.com/matheusd/dcrlnd v0.4.0
Decred Lightning Network Daemon ⚡️
22 versions - Latest release: 12 months ago - 1 dependent repositories - 1 stars on GitHub
Top 2.0% on proxy.golang.org
decred.org/dcrwallet/v2 v2.2.0
A secure Decred wallet daemon written in Go (golang).
18 versions - Latest release: about 1 year ago - 29 dependent packages - 31 dependent repositories - 210 stars on GitHub
github.com/EXCCoin/exccdata/cmd/exccdata v0.0.0-20230419111953-ae3472cbd807
EXCCoin block explorer, with packages and apps for data collection and storage. Written in Go.
3 versions - Latest release: about 1 year ago - 3 stars on GitHub
Top 4.1% on proxy.golang.org
github.com/decred/dcrwallet/v2 v2.0.8 removed
12 versions - Latest release: almost 2 years ago