Zebra/zebra-chain/src/chain_tip
teor 80a6d3cdab
change(rpc): Return from long polling immediately when the chain tip changes (#5862)
* Add constants and fix comments for mempool timer / state watch

* Add a best_tip_changed() method to trait ChainTip

* Check for chain tip changes using a future, and return on error

* Ignore state changes before the most recent state fetch

* Add a submit old field to the getblocktemplate RPC during long polling

* Make the submit_old field optional, rather than `null` in JSON

* Update some TODOs

* Add long polling snapshot tests, use RON for deserialized coinbase fields

* Clarify some comments

* Simplify the BestTipChanged future implementations

* Fix some comment typos
2022-12-15 15:33:00 +00:00
..
tests Estimate network chain tip height based on local node time and current best tip (#3492) 2022-02-11 01:27:02 +00:00
mock.rs change(rpc): Return from long polling immediately when the chain tip changes (#5862) 2022-12-15 15:33:00 +00:00
network_chain_tip_height_estimator.rs build(deps): bump chrono from 0.4.19 to 0.4.20 (#4898) 2022-08-28 17:08:27 +00:00
tests.rs Estimate network chain tip height based on local node time and current best tip (#3492) 2022-02-11 01:27:02 +00:00