Skip to content

consensus/parlia: add GetJustifiedNumber and GetFinalizedNumber#2591

Merged
zzzckck merged 1 commit intobnb-chain:developfrom
buddh0:parlia_api_get
Jul 19, 2024
Merged

consensus/parlia: add GetJustifiedNumber and GetFinalizedNumber#2591
zzzckck merged 1 commit intobnb-chain:developfrom
buddh0:parlia_api_get

Conversation

@buddh0
Copy link
Copy Markdown
Contributor

@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
  • ...

@buddh0 buddh0 changed the title consensus/parlia: add GetJustifiedNumber and GetMinerHistory consensus/parlia: add GetJustifiedNumber and GetFinalizedNumber Jul 18, 2024
@zzzckck
Copy link
Copy Markdown
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.

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