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

consensus/parlia: add GetJustifiedNumber and GetFinalizedNumber #2591

Merged
merged 1 commit into from
Jul 19, 2024

Conversation

buddh0
Copy link
Collaborator

@buddh0 buddh0 commented Jul 17, 2024

Description

consensus/parlia: add GetJustifiedNumber and GetMinerHistory

Rationale

parlia_getJustifiedNumber

curl http://127.0.0.1:8545/ \
	-X POST \
	-H "Content-Type: application/json" \
	--data '{"method":"parlia_getJustifiedNumber","params":["0x116"],"id":1,"jsonrpc":"2.0"}'
{"jsonrpc":"2.0","id":1,"result":277}

parlia_getFinalizedNumber

curl http://127.0.0.1:8545/ \
	-X POST \
	-H "Content-Type: application/json" \
	--data '{"method":"parlia_getFinalizedNumber","params":["0x116"],"id":1,"jsonrpc":"2.0"}'
{"jsonrpc":"2.0","id":1,"result":276}

Example

add an example CLI or API response...

Changes

Notable changes:

  • add each change in a bullet point here
  • ...

consensus/parlia/api.go Show resolved Hide resolved
consensus/parlia/api.go Outdated Show resolved Hide resolved
@buddh0 buddh0 changed the title consensus/parlia: add GetJustifiedNumber and GetMinerHistory consensus/parlia: add GetJustifiedNumber and GetFinalizedNumber Jul 18, 2024
@zzzckck
Copy link
Collaborator

zzzckck commented Jul 19, 2024

add some background:
this is for some test case to make it easier to check the network stabillity around some block height.

@zzzckck zzzckck merged commit 74078e1 into bnb-chain:develop Jul 19, 2024
7 checks passed
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.

4 participants