-
Notifications
You must be signed in to change notification settings - Fork 217
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
3346: Extend hard-coded test blockchain to test collateral inputs and outputs. r=jonathanknowles a=jonathanknowles ## Issue Number ADP-1814 ## Summary This PR extends the hard-coded test blockchain in `ModelSpec` (an excerpt of the mainnet blockchain). It appends a pair of transactions to the end: (and ensures that all tests pass) - Transaction `t0`: - marked as **_failing_** script validation - specifies a single collateral input `cinp_0` - specifies a single collateral output `cout_0` - Transaction `t1`: - marked as **_passing_** script validation - specifies a single ordinary input that refers to `cout_0` of `t0` ## Details The first commit in this PR is marked with `[FAIL]`, as it causes a test failure in "_applyBlock matches the basic model from the specification_". The cause of this failure is that the following **_test_** functions were not updated to account for script validation: - `ModelSpec.updateUTxO` - `ModelSpec.txOutsOurs` Subsequent commits adjust these functions to correctly account for script validation. The first commit to result in a passing test suite is marked with `[PASS]`. Co-authored-by: Jonathan Knowles <[email protected]>
- Loading branch information
Showing
2 changed files
with
111 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters