Add checkpoint, rollback to to bank (#1662)

add linked-list capability to accounts

change accounts from a linked list to a VecDeque

add checkpoint and rollback for lastids

add subscriber notifications for rollbacks

checkpoint transaction count, too
This commit is contained in:
Rob Walker
2018-11-05 09:47:41 -08:00
committed by GitHub
parent 5a85cc4626
commit 1fbf1d2cf2
14 changed files with 385 additions and 191 deletions

View File

@@ -44,7 +44,7 @@ fn bench_process_transaction(bencher: &mut Bencher) {
let mut id = bank.last_id();
for _ in 0..(MAX_ENTRY_IDS - 1) {
bank.register_entry_id(&id);
bank.register_tick(&id);
id = hash(&id.as_ref())
}