Don't change best block until extras is committed.
This commit is contained in:
parent
683c13db37
commit
59d0d2df9a
@ -504,11 +504,11 @@ impl BlockChain {
|
|||||||
batch.put_extras(hash, tx_address);
|
batch.put_extras(hash, tx_address);
|
||||||
write_txs.remove(hash);
|
write_txs.remove(hash);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// update extras database
|
// update extras database
|
||||||
self.extras_db.write(batch).unwrap();
|
self.extras_db.write(batch).unwrap();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// Iterator that lists `first` and then all of `first`'s ancestors, by hash.
|
/// Iterator that lists `first` and then all of `first`'s ancestors, by hash.
|
||||||
pub fn ancestry_iter(&self, first: H256) -> Option<AncestryIter> {
|
pub fn ancestry_iter(&self, first: H256) -> Option<AncestryIter> {
|
||||||
|
Loading…
Reference in New Issue
Block a user