Zebra/zebrad/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
..
application fix(zebrad) print usage info for --help flag (#5634) 2022-11-18 14:24:10 +00:00
bin/zebrad fix(clippy): Fix new lints in nightly clippy (#5959) 2023-01-18 00:27:42 +00:00
commands fix(consensus): Check that Zebra's state contains the social consensus chain on startup (#6163) 2023-02-21 05:30:29 +00:00
components 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
application.rs fix(clippy): Put Rust format variables inline (#5783) 2022-12-08 01:05:57 +00:00
commands.rs fix(zebrad) print usage info for --help flag (#5634) 2022-11-18 14:24:10 +00:00
components.rs Re-order Zebra startup, so slow services are launched last (#3091) 2021-11-23 17:42:44 +00:00
config.rs rpc(config): Add a `mining` section with miner address to config (#5491) 2022-11-01 00:43:45 +00:00
lib.rs 2. change(rpc): Add some transaction fields to the `getblocktemplate` RPC (#5496) 2022-11-03 03:25:01 +00:00
prelude.rs Fix a deadlock in TokioComponent. 2020-01-15 12:06:31 -08:00
sentry.rs Standardise clippy lints and require docs (#2238) 2021-06-04 08:48:40 +10:00