mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-23 21:26:42 +00:00
Merge 84128dda95 into f1daed65b1
This commit is contained in:
commit
a7aa704039
1 changed files with 9 additions and 0 deletions
|
|
@ -582,6 +582,15 @@ func (self *ChainManager) InsertChain(chain types.Blocks) (int, error) {
|
|||
}
|
||||
|
||||
bstart := time.Now()
|
||||
|
||||
// Recover signatures in parallel
|
||||
var wg sync.WaitGroup
|
||||
wg.Add(len(block.Transactions()))
|
||||
for _, tx := range block.Transactions() {
|
||||
go func(tx *types.Transaction) { defer wg.Done(); tx.From() }(tx)
|
||||
}
|
||||
wg.Wait()
|
||||
|
||||
// Wait for block i's nonce to be verified before processing
|
||||
// its state transition.
|
||||
for !nonceChecked[i] {
|
||||
|
|
|
|||
Loading…
Reference in a new issue