core, core/vm: state improvements and tx pool speed up

Removed full tx validation during state transitions
This commit is contained in:
obscuren
2015-06-17 17:09:39 +02:00
parent 753d62a4dd
commit f5abc9f188
3 changed files with 25 additions and 32 deletions

View File

@@ -249,15 +249,13 @@ func (sm *BlockProcessor) processWithParent(block, parent *types.Block) (logs st
// Sync the current block's state to the database
state.Sync()
go func() {
// This puts transactions in a extra db for rpc
for i, tx := range block.Transactions() {
putTx(sm.extraDb, tx, block, uint64(i))
}
// This puts transactions in a extra db for rpc
for i, tx := range block.Transactions() {
putTx(sm.extraDb, tx, block, uint64(i))
}
// store the receipts
putReceipts(sm.extraDb, block.Hash(), receipts)
}()
// store the receipts
putReceipts(sm.extraDb, block.Hash(), receipts)
return state.Logs(), nil
}