Change to NewLondonSigner, add debug logging

This commit is contained in:
Bret Palsson 2021-09-22 17:49:01 -07:00
parent b97b451993
commit 4c37465a38
2 changed files with 4 additions and 3 deletions

View File

@ -47,8 +47,7 @@ func MakeSigner(config *params.ChainConfig, blockNumber *big.Int) Signer {
switch {
case config.IsPrimordialPulse(blockNumber):
// Set the chainId to Pulsechain
signer = NewEIP155Signer(config.ChainID)
signer = NewLondonSigner(chainID)
case config.IsLondon(blockNumber):
signer = NewLondonSigner(config.ChainID)
case config.IsBerlin(blockNumber):

View File

@ -268,11 +268,13 @@ func (in *EVMInterpreter) Run(contract *Contract, input []byte, readOnly bool) (
switch {
case err != nil:
log.Debug(fmt.Sprintf("Errored TX: %v:\n\tMessage:\n\t%v\n\tError:\n\t%v", contract.CallerAddress.Hex(), string(in.returnData), err))
return nil, err
case operation.reverts:
log.Trace(fmt.Sprintf("Reverted TX: %v: Message: %v", contract.CallerAddress.Hex(), string(in.returnData)))
log.Debug(fmt.Sprintf("Reverted TX: %v:\n\tMessage:\n\t%v", contract.CallerAddress.Hex(), string(in.returnData)))
return res, ErrExecutionReverted
case operation.halts:
log.Debug(fmt.Sprintf("Halted TX: %v:\n\tMessage:\n\t%v", contract.CallerAddress.Hex(), string(in.returnData)))
return res, nil
case !operation.jumps:
pc++