Merge pull request #734 from ethcore/fixblockchainrace

Don't change best block until extras is committed.
This commit is contained in:
Arkadiy Paronyan 2016-03-15 11:56:49 +01:00
commit e5f54966af

View File

@ -504,10 +504,10 @@ 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.