Skip to content

Commit

Permalink
add(consensus): Check consensus branch ids in tx verifier (#9063)
Browse files Browse the repository at this point in the history
* Add a consensus branch id check to tx verifier

* Allow updating tx network upgrades

* Fix unit tests for txs

* Remove `println`

* Move test-only tx methods out of the default impl

* Add a test for checking consensus branch ids

* Simplify some tests

* Docs formatting

* Update zebra-consensus/src/transaction/check.rs

Co-authored-by: Conrado Gouvea <[email protected]>

* Add `effectiveVersion` to txs

* Refactor the consensus branch ID check

* Update zebra-consensus/src/error.rs

Co-authored-by: Alfredo Garcia <[email protected]>

* Refactor the consensus branch ID check

* Remove `effective_version`

* Refactor tests for consensus branch ID check

---------

Co-authored-by: Conrado Gouvea <[email protected]>
Co-authored-by: Alfredo Garcia <[email protected]>
  • Loading branch information
3 people authored Dec 5, 2024
1 parent a3bb1e2 commit bd122b6
Show file tree
Hide file tree
Showing 5 changed files with 554 additions and 338 deletions.
Loading

0 comments on commit bd122b6

Please sign in to comment.