aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJhih-Ming Huang <jm@byzantine-lab.io>2019-10-18 00:27:00 +0800
committerJhih-Ming Huang <jm@byzantine-lab.io>2019-10-18 00:27:00 +0800
commit40c3cd4223c084e66162d48f31514b38ae95c1e0 (patch)
treebc2f8225cf0d1bf11c057129d507d448b90026f5
parent38c83c2463df071e12a3ebf310bf38e6f088feb5 (diff)
downloadgo-tangerine-40c3cd4223c084e66162d48f31514b38ae95c1e0.tar.gz
go-tangerine-40c3cd4223c084e66162d48f31514b38ae95c1e0.tar.zst
go-tangerine-40c3cd4223c084e66162d48f31514b38ae95c1e0.zip
print vm config
-rw-r--r--core/state_processor.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/state_processor.go b/core/state_processor.go
index 9edb6982c..0000da3d9 100644
--- a/core/state_processor.go
+++ b/core/state_processor.go
@@ -24,6 +24,7 @@ import (
"github.com/tangerine-network/go-tangerine/core/types"
"github.com/tangerine-network/go-tangerine/core/vm"
"github.com/tangerine-network/go-tangerine/crypto"
+ "github.com/tangerine-network/go-tangerine/log"
"github.com/tangerine-network/go-tangerine/params"
)
@@ -86,6 +87,8 @@ func (p *StateProcessor) Process(block *types.Block, statedb *state.StateDB, cfg
// for the transaction, gas used and an error if the transaction failed,
// indicating the block was invalid.
func ApplyTransaction(config *params.ChainConfig, bc ChainContext, author *common.Address, gp *GasPool, statedb *state.StateDB, header *types.Header, tx *types.Transaction, usedGas *uint64, cfg vm.Config) (*types.Receipt, uint64, error) {
+ logger := log.New("cfg", cfg)
+ logger.Debug("============", "cfg.Debug", cfg.Debug)
msg, err := tx.AsMessage(types.MakeSigner(config, header.Number))
if err != nil {
return nil, 0, err