Merge pull request #1889 from karalabe/fast-sync-rebase

eth/63 fast synchronization algorithm
This commit is contained in:
Jeffrey Wilcke
2015-10-21 11:44:22 -07:00
53 changed files with 5047 additions and 1802 deletions

View File

@ -312,7 +312,7 @@ func (self *worker) wait() {
self.mux.Post(core.ChainHeadEvent{block})
self.mux.Post(logs)
}
if err := core.PutBlockReceipts(self.chainDb, block, receipts); err != nil {
if err := core.PutBlockReceipts(self.chainDb, block.Hash(), receipts); err != nil {
glog.V(logger.Warn).Infoln("error writing block receipts:", err)
}
}(block, work.state.Logs(), work.receipts)