zebra/zebra-state/src
teor 758eb6e0ea
fix(rpc): Fix bugs and performance of `getnetworksolps` & `getnetworkhashps` RPCs (#7647)
* Handle negative and zero getnetworksolsps arguments correctly

* Simplify the solsps loop structure

* Simplify loop by avoiding manual iteration and peeking

* Avoid division by zero

* Use min and max times rather than first and last times

* Refactor block iterators so they are more efficient

* Make finding chains easier

* Simplify block iteration code

* Remove implemented TODO comments

* Simplify internal iterator state

* Implement iteration by any chain item

* Iterate block headers rather than full blocks

* Ignore code that is (sometimes) dead

* Fix a dead code warning

* Add a no blocks in state error constant

* Check result values in the RPC test

* Fix invalid calculation handling
2023-10-11 02:02:51 +00:00
..
service fix(rpc): Fix bugs and performance of `getnetworksolps` & `getnetworkhashps` RPCs (#7647) 2023-10-11 02:02:51 +00:00
tests change(state): Insert only the first tree in each series of identical trees into finalized state (#7266) 2023-08-09 00:32:27 +00:00
arbitrary.rs
config.rs change(state): Only do continuous format checks in CI (#7627) 2023-09-27 21:42:43 +00:00
constants.rs change(state): Only do continuous format checks in CI (#7627) 2023-09-27 21:42:43 +00:00
error.rs
lib.rs fix(state): Use correct end heights for end of block subtrees during the full sync (#7566) 2023-09-19 14:49:36 +00:00
request.rs fix(rpc): Fix bugs and performance of `getnetworksolps` & `getnetworkhashps` RPCs (#7647) 2023-10-11 02:02:51 +00:00
response.rs change(state): Add state requests and support code for the `z_getsubtreesbyindex` RPC (#7408) 2023-09-03 22:18:41 +00:00
service.rs change(state): Add state requests and support code for the `z_getsubtreesbyindex` RPC (#7408) 2023-09-03 22:18:41 +00:00
tests.rs