Zebra/zebra-rpc/src
Arya 1e1222c888
change(rpc): Return an error from getblocktemplate RPC if Zebra is still syncing lots of blocks (#5769)
* updates MAX_ESTIMATED_DISTANCE_TO_NETWORK_TIP

* adds ChainSyncStatus trait

* adds sync_status to GetBlockTemplateRpcs

Returns an error from getblocktemplate rpc if !is_close_to_tip

adds MockSyncStatus for tests

* hide MockSyncStatus behind feature flag

* moves is_close_to_tip call into async block

adds tests

* Update zebra-rpc/src/methods/tests/vectors.rs

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

* uses SeqCst ordering for atomic bool ops.

uses a constant for not synced error code.

Co-authored-by: teor <teor@riseup.net>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2022-12-02 11:21:23 +00:00
..
methods change(rpc): Return an error from getblocktemplate RPC if Zebra is still syncing lots of blocks (#5769) 2022-12-02 11:21:23 +00:00
queue fix(rpc): Shut down the RPC server properly when Zebra shuts down (#5591) 2022-11-10 14:51:53 +00:00
server change(rpc): Return an error from getblocktemplate RPC if Zebra is still syncing lots of blocks (#5769) 2022-12-02 11:21:23 +00:00
tests fix(rpc): Isolate RPC queries from the rest of Zebra, to improve performance (#4806) 2022-09-01 16:20:22 +00:00
config.rs add(test): test disabled `lightwalletd` mempool gRPCs via zebrad logs (#5016) 2022-09-06 13:32:33 +00:00
lib.rs feat(rpc): Implement an RPC transaction queue (#4015) 2022-04-12 15:06:29 +10:00
methods.rs fix(rpc): Shut down the RPC server properly when Zebra shuts down (#5591) 2022-11-10 14:51:53 +00:00
queue.rs fix(rpc): Shut down the RPC server properly when Zebra shuts down (#5591) 2022-11-10 14:51:53 +00:00
server.rs change(rpc): Return an error from getblocktemplate RPC if Zebra is still syncing lots of blocks (#5769) 2022-12-02 11:21:23 +00:00
tests.rs feat(rpc): add getrawtransaction (#3908) 2022-03-24 09:45:37 +00:00