Zebra/zebra-state/src/service
teor dcf30679bf
fix(rpc): Calculate getblocktemplate RPC testnet min and max times correctly (#5925)
* Clean up some getblocktemplate difficulty code and tests

* Fix minimum difficulty adjustment

* Use clamp rather than max/min

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

* Remove unused imports

* Document the Zebra-specific standard rule that allows testnet miners time to mine a block

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Co-authored-by: Arya <aryasolhi@gmail.com>
2023-01-17 07:08:43 +00:00
..
chain_tip Only fetch block headers from the database to answer headers requests (#4792) 2022-07-22 09:15:22 +10:00
check change(rpc): Add proposal capability to getblocktemplate (#5870) 2023-01-11 23:39:51 +00:00
finalized_state fix(test): Reduce verbose test logs (#5825) 2022-12-08 23:56:01 +00:00
non_finalized_state fix(clippy): Put Rust format variables inline (#5783) 2022-12-08 01:05:57 +00:00
queued_blocks 3. change(state): Move the finalized queue to the StateService (#5152) 2022-09-16 13:53:40 +00:00
read fix(rpc): Calculate getblocktemplate RPC testnet min and max times correctly (#5925) 2023-01-17 07:08:43 +00:00
arbitrary.rs fix(test): Reduce verbose test logs (#5825) 2022-12-08 23:56:01 +00:00
block_iter.rs change(state): Write non-finalized blocks to the state in a separate thread, to avoid network and RPC hangs (#5257) 2022-10-11 19:25:45 +00:00
chain_tip.rs fix(clippy): Fix nightly clippy redundant code lints (#5916) 2023-01-05 15:46:04 +00:00
check.rs change(rpc): Add proposal capability to getblocktemplate (#5870) 2023-01-11 23:39:51 +00:00
finalized_state.rs fix(clippy): Put Rust format variables inline (#5783) 2022-12-08 01:05:57 +00:00
non_finalized_state.rs change(rpc): Add proposal capability to getblocktemplate (#5870) 2023-01-11 23:39:51 +00:00
pending_utxos.rs change(state): Write finalized blocks to the state in a separate thread, to avoid network and RPC hangs (#5134) 2022-09-28 16:09:56 +00:00
queued_blocks.rs change(state): Add block channel metrics, in preparation for block fork metrics (#5327) 2022-10-20 20:02:58 +00:00
read.rs refactor(state): Make implementation of block consensus rules clearer (#5915) 2023-01-06 06:59:55 +00:00
tests.rs change(state): Write non-finalized blocks to the state in a separate thread, to avoid network and RPC hangs (#5257) 2022-10-11 19:25:45 +00:00
watch_receiver.rs change(rpc): Return from long polling immediately when the chain tip changes (#5862) 2022-12-15 15:33:00 +00:00
write.rs change(rpc): Add proposal capability to getblocktemplate (#5870) 2023-01-11 23:39:51 +00:00