Zebra/zebra-state/src
Marek 2a48d4cf25
change(chain): Refactor the handling of height differences (#6330)
* Unify the `impl`s of `Sub` and `Add` for `Height`

* Adjust tests for `Height` subtraction

* Use `Height` instead of `i32`

* Use `block:Height` in RPC tests

* Use `let .. else` statement

Co-authored-by: Arya <aryasolhi@gmail.com>

* Update zebra-consensus/src/block/subsidy/general.rs

* Refactor the handling of height differences

* Remove a redundant comment

* Update zebrad/src/components/sync/progress.rs

Co-authored-by: Arya <aryasolhi@gmail.com>

* Update progress.rs

* impl TryFrom<u32> for Height

* Make some test assertions clearer

* Refactor estimate_up_to()

* Restore a comment that was accidentally removed

* Document when estimate_distance_to_network_chain_tip() returns None

* Change HeightDiff to i64 and make Height.sub(Height) return HeightDiff (no Option)

* Update chain tip estimates for HeightDiff i64

* Update subsidy for HeightDiff i64

* Fix some height calculation test edge cases

* Fix the funding stream interval calculation

---------

Co-authored-by: Arya <aryasolhi@gmail.com>
Co-authored-by: teor <teor@riseup.net>
2023-03-29 23:06:31 +00:00
..
service change(chain): Refactor the handling of height differences (#6330) 2023-03-29 23:06:31 +00:00
tests feat(elasticsearch): Export block data to elasticsearch database (#6274) 2023-03-13 21:13:30 +00:00
arbitrary.rs change(mempool) reject transactions with spent outpoints or nullifiers (#5434) 2022-10-24 19:48:45 +00:00
config.rs feat(elasticsearch): Export block data to elasticsearch database (#6274) 2023-03-13 21:13:30 +00:00
constants.rs change(chain): Refactor the handling of height differences (#6330) 2023-03-29 23:06:31 +00:00
error.rs improve CommitBlockError message: include underlying ValidateContextError message (#6251) 2023-03-02 06:30:01 +00:00
lib.rs change(rpc): Add confirmations to getrawtransaction method response (#6287) 2023-03-26 23:53:44 +00:00
request.rs change(state): Stop re-downloading blocks that are in non-finalized side chains (#6335) 2023-03-24 07:10:07 +00:00
response.rs change(rpc): Add confirmations to getrawtransaction method response (#6287) 2023-03-26 23:53:44 +00:00
service.rs change(chain): Refactor the handling of height differences (#6330) 2023-03-29 23:06:31 +00:00
tests.rs fix(diagnostics): Hex-encode debug format of commitments, nonces, and nullifiers (#5960) 2023-01-17 13:57:22 +00:00