More miner options.

- Optional limit for the amount of gas transactions may have;
- option to restruct transactions returned/queried to only those
which have been executed.
This commit is contained in:
Gav Wood
2016-06-27 18:27:06 +02:00
parent 6c1802e412
commit 1667808ecb
6 changed files with 57 additions and 15 deletions

View File

@@ -149,7 +149,8 @@ impl<V> Client<V> where V: Verifier {
let mut state_db = journaldb::new(
&append_path(&path, "state"),
config.pruning,
config.db_cache_size);
config.db_cache_size
);
if state_db.is_empty() && spec.ensure_db_good(state_db.as_hashdb_mut()) {
state_db.commit(0, &spec.genesis_header().hash(), None).expect("Error commiting genesis state to state DB");