grin/chain
Daogang Tang 9ac4143bc9 fix: try to fix issue #2585 by adding block cleanup from db directly. (#2815)
* fix: try to fix issue #2585 by adding block cleanup from db directly.

Signed-off-by: Mike Tang <daogangtang@gmail.com>

* use another effective algorithm to do old block and short-lived block cleaup.

Signed-off-by: Mike Tang <daogangtang@gmail.com>

* 1. rename iter_lived_blocks to blocks_iter;
2. comments and iterator calling optimiztions.

Signed-off-by: Mike Tang <daogangtang@gmail.com>

* Fix locking bug when calling is_on_current_chain() in batch.blocks_iter just by removing it.
Because "we want to delete block older (i.e. lower height) than tail.height".

Signed-off-by: Mike Tang <daogangtang@gmail.com>
2019-05-13 16:10:31 +01:00
..
src fix: try to fix issue #2585 by adding block cleanup from db directly. (#2815) 2019-05-13 16:10:31 +01:00
tests Get back the lost code of #2575 (#2771) 2019-04-22 16:53:24 -07:00
Cargo.toml Bump rand crate to 0.6 (was 0.5) (#2790) 2019-04-30 12:25:19 -07:00