ava-labs / coreth

Code and wrapper to extract Ethereum blockchain functionalities without network/consensus, for building custom blockchain services.
Other
183 stars 140 forks source link

Non-nil pointer values of plugin/evm.Config are logged as addresses instead of values #648

Open marun opened 2 months ago

marun commented 2 months ago

Describe the bug

When avalalanchego starts up and coreth logs its configuration, non-nil pointer values are output as addresses rather than values.

To Reproduce

Start avalanchego configured with state-sync-enabled: true and check the log line INFO <C Chain> plugin/evm/vm.go:411 Initializing Coreth VM... for StateSyncEnabled:<address> rather than StateSyncEnabled:true.

Expected behavior

Non-nil pointer fields of Config should be output as values.

ARR4N commented 2 months ago

I suspect that Config needs to implement TerminalStringer.