Merge pull request #112 from meshplus/fix/executor-1.0

fix(executor): add normalTxs initialization
This commit is contained in:
Aiden X 2020-07-09 16:49:39 +08:00 committed by GitHub
commit e8486dee35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -55,6 +55,7 @@ func (exec *BlockExecutor) processExecuteEvent(block *pb.Block) {
"count": len(block.Transactions),
}).Infof("Execute block")
exec.normalTxs = make([]types.Hash, 0)
validTxs, invalidReceipts := exec.verifySign(block)
receipts := exec.applyTransactions(validTxs)
receipts = append(receipts, invalidReceipts...)