Merge pull request #651 from ethcore/tx_queue_integration

Tx_queue_docs -> To master
This commit is contained in:
Gav Wood
2016-03-10 13:19:40 +01:00
3 changed files with 104 additions and 3 deletions

View File

@@ -396,7 +396,8 @@ impl<V> Client<V> where V: Verifier {
.commit(header.number(), &header.hash(), ancient)
.expect("State DB commit failed.");
// And update the chain
// And update the chain after commit to prevent race conditions
// (when something is in chain but you are not able to fetch details)
self.chain.write().unwrap()
.insert_block(&block.bytes, receipts);