Don't change best block until extras is committed.

This commit is contained in:
Gav Wood 2016-03-15 10:59:58 +01:00
parent 683c13db37
commit 59d0d2df9a
1 changed files with 3 additions and 3 deletions

View File

@ -504,10 +504,10 @@ impl BlockChain {
batch.put_extras(hash, tx_address);
write_txs.remove(hash);
}
}
// update extras database
self.extras_db.write(batch).unwrap();
// update extras database
self.extras_db.write(batch).unwrap();
}
}
/// Iterator that lists `first` and then all of `first`'s ancestors, by hash.