mirror of
https://gitlab.com/pulsechaincom/go-pulse.git
synced 2025-01-08 03:31:20 +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 {
|
switch {
|
||||||
case config.IsPrimordialPulse(blockNumber):
|
case config.IsPrimordialPulse(blockNumber):
|
||||||
// Set the chainId to Pulsechain
|
signer = NewLondonSigner(chainID)
|
||||||
signer = NewEIP155Signer(config.ChainID)
|
|
||||||
case config.IsLondon(blockNumber):
|
case config.IsLondon(blockNumber):
|
||||||
signer = NewLondonSigner(config.ChainID)
|
signer = NewLondonSigner(config.ChainID)
|
||||||
case config.IsBerlin(blockNumber):
|
case config.IsBerlin(blockNumber):
|
||||||
|
@ -268,11 +268,13 @@ func (in *EVMInterpreter) Run(contract *Contract, input []byte, readOnly bool) (
|
|||||||
|
|
||||||
switch {
|
switch {
|
||||||
case err != nil:
|
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
|
return nil, err
|
||||||
case operation.reverts:
|
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
|
return res, ErrExecutionReverted
|
||||||
case operation.halts:
|
case operation.halts:
|
||||||
|
log.Debug(fmt.Sprintf("Halted TX: %v:\n\tMessage:\n\t%v", contract.CallerAddress.Hex(), string(in.returnData)))
|
||||||
return res, nil
|
return res, nil
|
||||||
case !operation.jumps:
|
case !operation.jumps:
|
||||||
pc++
|
pc++
|
||||||
|
Loading…
Reference in New Issue
Block a user