lbcd/blockchain/fullblocktests
Olaoluwa Osuntokun d0768abcc4 BIP0141+blockchain: implement segwit block validation rules
This commit implements the new block validation rules as defined by
BIP0141. The new rules include the constraints that if a block has
transactions with witness data, then there MUST be a commitment within
the conies transaction to the root of a new merkle tree which commits
to the wtxid of all transactions. Additionally, rather than limiting
the size of a block by size in bytes, blocks are now limited by their
total weight unit. Similarly, a newly define “sig op cost” is now used
to limit the signature validation cost of transactions found within
blocks.
2017-08-13 23:17:40 -05:00
..
doc.go fullblocktests: Add missing doc.go file. 2016-10-23 13:31:26 -05:00
generate.go BIP0141+blockchain: implement segwit block validation rules 2017-08-13 23:17:40 -05:00
params.go blockchain: Remove isMajorityVersion code. 2016-11-30 14:26:13 -06:00
README.md multi: Update markdown files for GFM changes. 2017-05-25 12:06:16 -05:00

fullblocktests

Build Status ISC License GoDoc

Package fullblocktests provides a set of full block tests to be used for testing the consensus validation rules. The tests are intended to be flexible enough to allow both unit-style tests directly against the blockchain code as well as integration style tests over the peer-to-peer network. To achieve that goal, each test contains additional information about the expected result, however that information can be ignored when doing comparison tests between two independent versions over the peer-to-peer network.

This package has intentionally been designed so it can be used as a standalone package for any projects needing to test their implementation against a full set of blocks that excerise the consensus validation rules.

Installation and Updating

$ go get -u github.com/btcsuite/btcd/blockchain/fullblocktests

License

Package fullblocktests is licensed under the copyfree ISC License.