Backport to beta (#2518)

* Handle reorganizations in the state cache

* Renamed and documented a few methods

* Basic test

* Renamed pending to buffered

* Caching optimizations

* Fixed a test

* Fixed a test
This commit is contained in:
Arkadiy Paronyan
2016-10-07 15:09:52 +02:00
committed by Gav Wood
parent 8031910892
commit fe83046198
5 changed files with 321 additions and 75 deletions

View File

@@ -21,7 +21,7 @@ use util::sha3::*;
use bit_set::BitSet;
use super::super::instructions;
const CACHE_CODE_ITEMS: usize = 4096;
const CACHE_CODE_ITEMS: usize = 65536;
/// GLobal cache for EVM interpreter
pub struct SharedCache {