Zebra/zebra-chain/src/block
Marek 683b88c819
Support large block heights (#3401)
* Support large block heights

* Document consensus rules referring to expiry heights

* Refactor the docs

* Apply suggestions from code review

Co-authored-by: teor <teor@riseup.net>

* Fix the formatting of an error message

* refactor: Simplify coinbase expiry code so the consensus rule is clear (#3408)

* Fix some outdated TODO comments

* refactor(coinbase expiry): Simplify the code so consensus rule is clear

* Fix the formatting of an error message

* Remove a redundant comment

Co-authored-by: Marek <mail@marek.onl>

Co-authored-by: Marek <mail@marek.onl>

* Check the max expiry height at parse time

* Test that 2^31 - 1 is the last valid height

* Add tests for nExpiryHeight

* Add tests for expiry heights of V4 transactions

* Add tests for V5 transactions

Co-authored-by: teor <teor@riseup.net>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2022-02-11 00:32:57 +00:00
..
tests Simplify preallocate tests (#3032) 2021-11-11 07:53:21 +10:00
arbitrary.rs lint: add extra integer lints, and partially fix some code (#3409) 2022-01-27 11:34:15 -03:00
commitment.rs Fix typos (#3055) 2021-11-12 19:30:22 +00:00
error.rs Move network_upgrade check into zebra-chain (#2354) 2021-06-22 12:06:52 +10:00
hash.rs Reverse displayed endianness of transaction and block hashes (#1171) 2020-10-22 07:54:02 +10:00
header.rs Replace read_compactsize and write_compactsize with CompactSizeMessage (#3014) 2021-11-05 15:24:24 -03:00
height.rs Support large block heights (#3401) 2022-02-11 00:32:57 +00:00
merkle.rs Fix new clippy lints in clippy nightly (#3176) 2021-12-09 14:19:14 +00:00
serialize.rs Document part of the block header consensus rules (#3296) 2021-12-29 23:07:27 +00:00
tests.rs Check MAX_BLOCK_SIGOPS in the block verifier (#3049) 2021-11-15 20:55:32 +00:00