core: adapt Message for new Transaction.From signature
This commit is contained in:
@ -81,7 +81,8 @@ func (self *BlockProcessor) ApplyTransaction(coinbase *state.StateObject, stated
|
||||
_, gas, err := ApplyMessage(NewEnv(statedb, self.bc, tx, block), tx, cb)
|
||||
if err != nil && (IsNonceErr(err) || state.IsGasLimitErr(err) || IsInvalidTxErr(err)) {
|
||||
// If the account is managed, remove the invalid nonce.
|
||||
self.bc.TxState().RemoveNonce(tx.From(), tx.Nonce())
|
||||
from, _ := tx.From()
|
||||
self.bc.TxState().RemoveNonce(from, tx.Nonce())
|
||||
return nil, nil, err
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user