Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

add metrics pkg #110

Merged
merged 4 commits into from
May 25, 2022
Merged

add metrics pkg #110

merged 4 commits into from
May 25, 2022

Conversation

ceyonur
Copy link
Collaborator

@ceyonur ceyonur commented May 24, 2022

Adds metrics pkg and enables metrics

Copy link
Collaborator

@aaronbuchwald aaronbuchwald left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - let's hold off on merging this until #108 (review) has been merged, and then merge this into master.

Base automatically changed from coreth-0.8.10-nofastsync to master May 25, 2022 05:48
plugin/evm/vm.go Outdated Show resolved Hide resolved
plugin/evm/vm.go Outdated Show resolved Hide resolved
plugin/evm/vm.go Outdated Show resolved Hide resolved
plugin/evm/vm.go Outdated Show resolved Hide resolved
plugin/evm/vm.go Outdated Show resolved Hide resolved
@@ -308,110 +324,115 @@ func (vm *VM) Initialize(
log.Warn("Chain enabled `AllowFeeRecipients`, but chain config has not specified any coinbase address. Defaulting to the blackhole address.")
}

// Handle offline pruning
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just to confirm, this was just a duplicate block?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep

vm.Network = peer.NewNetwork(appSender, vm.networkCodec, ctx.NodeID, vm.config.MaxOutboundActiveRequests)
vm.client = peer.NewClient(vm.Network)

if err := vm.initializeChain(lastAcceptedHash, ethConfig); err != nil {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: could put ethConfig on vm like Coreth.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah I thought it but it's not being used anywhere. so just let those being garbage collected.

Copy link
Contributor

@patrick-ogrady patrick-ogrady left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM...minor nits but this works!

@patrick-ogrady patrick-ogrady merged commit 402eac2 into master May 25, 2022
@patrick-ogrady patrick-ogrady deleted the metrics-pkg branch May 25, 2022 21:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants