Skip to content
This repository has been archived by the owner on Sep 26, 2019. It is now read-only.

Initial implementation of ibft_getValidatorsByBlockNumber #499

Merged
merged 5 commits into from
Jan 7, 2019

Conversation

rojotek
Copy link
Member

@rojotek rojotek commented Jan 2, 2019

Implements the ibft_getValidatorsByBlockNumber method. (really it is byBlockNumber not hash -- I implemented the BlockNumber version not the blockhash bersion :))

@rojotek rojotek changed the title Initial implementation of ibft_getValidatorsByBlockHash Initial implementation of ibft_getValidatorsByBlockNumber Jan 2, 2019
@rojotek rojotek requested a review from rain-on January 3, 2019 06:36

@Override
protected Object resultByBlockNumber(final JsonRpcRequest request, final long blockNumber) {
Optional<BlockHeader> blockHeader = blockchainQueries().getBlockHeaderByNumber(blockNumber);
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
Optional<BlockHeader> blockHeader = blockchainQueries().getBlockHeaderByNumber(blockNumber);
final Optional<BlockHeader> blockHeader = blockchainQueries().getBlockHeaderByNumber(blockNumber);

@rojotek rojotek force-pushed the ibft_getValidatorsByBlockHash branch from 4428820 to 6aa338d Compare January 7, 2019 00:31
@rojotek rojotek merged commit 76fe768 into PegaSysEng:master Jan 7, 2019
@rojotek rojotek deleted the ibft_getValidatorsByBlockHash branch January 7, 2019 02:34
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants