Refactor status cache and remove complex serialize/deserialize (#5335)

automerge
This commit is contained in:
Sagar Dhawan
2019-08-06 18:47:30 -07:00
committed by Grimes
parent 72e9492ca6
commit 9dcf3347f5
7 changed files with 428 additions and 431 deletions

View File

@@ -143,7 +143,7 @@ impl<T: Clone> AccountsIndex<T> {
pub fn add_root(&mut self, fork: Fork) {
assert!(
(self.last_root == 0 && fork == 0) || (fork > self.last_root),
(self.last_root == 0 && fork == 0) || (fork >= self.last_root),
"new roots must be increasing"
);
self.last_root = fork;