mirror of
https://gitlab.com/pulsechaincom/go-pulse.git
synced 2025-01-05 10:12:19 +00:00
Change to NewLondonSigner, add debug logging
This commit is contained in:
parent
b97b451993
commit
4c37465a38
@ -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):
|
||||
|
@ -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++
|
||||
|
Loading…
Reference in New Issue
Block a user