Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Open
marun opened this issue Sep 11, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@marun
Copy link
Contributor

marun commented Sep 11, 2024

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.

@marun marun added the bug Something isn't working label Sep 11, 2024
@ARR4N
Copy link
Contributor

ARR4N commented Sep 11, 2024

I suspect that Config needs to implement TerminalStringer.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants