mirror of
https://github.com/bitcoin/bips.git
synced 2026-10-19 19:29:18 +00:00
BIP-110: Add test vectors JSON and generator script
This commit is contained in:
@@ -325,6 +325,8 @@ Test coverage specific to these rules is provided by the reference implementatio
|
||||
* [https://github.com/dathonohm/bitcoin/blob/uasf-modified-bip9/test/functional/feature_rdts.py feature_rdts.py] exercises all seven consensus rules, including their boundaries and the script-type exemptions to rule 2 (BIP16 redeemScripts, witness scripts, and Tapleaf scripts).
|
||||
* [https://github.com/dathonohm/bitcoin/blob/uasf-modified-bip9/test/functional/feature_reduced_data_utxo_height.py feature_reduced_data_utxo_height.py] covers the grandfathering of UTXOs created before the activation height.
|
||||
|
||||
In addition, a set of transaction-level test vectors generated and verified against the reference implementation is provided in [[bip-0110/test-vectors.json|test-vectors.json]]. Each vector gives the spent output(s), the spending (or output-creating) transaction, and whether a block containing it is valid while these rules are active; the <code>rule</code> and <code>spent_utxo</code> fields identify which numbered rule is exercised and whether the spent UTXO is grandfathered. These vectors were produced by [[bip-0110/test-vectors.py|test-vectors.py]], which submits each case to a regtest node enforcing the rules and emits the verified result; see that file for reproduction instructions.
|
||||
|
||||
==Deployment==
|
||||
|
||||
This deployment uses a modified version of BIP9 with the following parameters:
|
||||
|
||||
Reference in New Issue
Block a user