Zebra/zebra-node-services/src
Arya d7842bd467
fix(rpc): Check that mempool transactions are valid for the state's chain info in getblocktemplate (#6416)
* check last seen tip hash from mempool in fetch_mempool_transactions()

* Moves last_seen_tip_hash to ActiveState

* fixes tests and tests fixes

* continues to the next iteration of the loop to make fresh state and mempool requests if called with a long poll id

* Update zebra-rpc/src/methods/get_block_template_rpcs.rs

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

* adds allow[unused_variable) for linter

* expects a chain tip when not(test)

* Apply suggestions from code review

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

* Addresses comments in code review

* - Removes second call to `last_tip_change()`

- Fixes tests using enabled mempool

* Adds note about chain tip action requirement to test method `enable()`

* updates doc comment

* Update zebrad/src/components/mempool.rs

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

* fixes test

---------

Co-authored-by: teor <teor@riseup.net>
2023-04-03 23:22:07 +00:00
..
mempool add(test): test disabled `lightwalletd` mempool gRPCs via zebrad logs (#5016) 2022-09-06 13:32:33 +00:00
constants.rs change(deps): Remove unused zebra-utils dependencies (#5961) 2023-01-16 21:39:47 +00:00
lib.rs change(deps): Remove unused zebra-utils dependencies (#5961) 2023-01-16 21:39:47 +00:00
mempool.rs fix(rpc): Check that mempool transactions are valid for the state's chain info in getblocktemplate (#6416) 2023-04-03 23:22:07 +00:00