grin/chain/src
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
..
txhashset Get back the lost code of #2575 (#2771) 2019-04-22 16:53:24 -07:00
chain.rs fix: try to fix issue #2585 by adding block cleanup from db directly. (#2815) 2019-05-13 16:10:31 +01:00
error.rs Header version cleanup (#2809) 2019-05-08 21:10:42 +01:00
lib.rs Dynamic LMDB mapsize allocation [1.1.0] (#2605) 2019-02-27 09:47:46 +00:00
pipe.rs Header version cleanup (#2809) 2019-05-08 21:10:42 +01:00
store.rs fix: try to fix issue #2585 by adding block cleanup from db directly. (#2815) 2019-05-13 16:10:31 +01:00
txhashset.rs Convert to Rust 2018 edition (#2084) 2018-12-08 00:59:40 +01:00
types.rs get rid of default implementation of Hashed trait for writable things (#2573) 2019-02-15 13:41:19 +00:00