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

Expose chain ID in the BlockchainService plugin API #7702

Conversation

Gabriel-Trintinalia
Copy link
Contributor

PR description

Expose chain ID in the BlockchainService plugin API

Fixed Issue(s)

fixes #7630

@@ -182,4 +183,12 @@ public BlockBody getBlockBody() {
}
};
}

@Override
public Optional<BigInteger> getChainId() {
Copy link
Contributor

Choose a reason for hiding this comment

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

Since I like fail fast, I am tempted to raise an error is the service is used before it is initialized, but this probably is for another PR, since it can apply to other methods as well

@Gabriel-Trintinalia Gabriel-Trintinalia enabled auto-merge (squash) October 2, 2024 02:20
@Gabriel-Trintinalia Gabriel-Trintinalia merged commit 49bf37c into hyperledger:main Oct 2, 2024
43 checks passed
2fehee pushed a commit to 2fehee/besu that referenced this pull request Oct 4, 2024
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.

Expose the chain id in the Plugin API
3 participants