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

Fix GraphQL IBFT Coinbase Query #1282

Merged
merged 5 commits into from
Aug 12, 2020
Merged

Fix GraphQL IBFT Coinbase Query #1282

merged 5 commits into from
Aug 12, 2020

Conversation

shemnon
Copy link
Contributor

@shemnon shemnon commented Aug 7, 2020

When IBFT produces blocks the coinbase may correspond to an empty
account (as mining rewards are not paid out). In this case allow
GraphQL to return an all zero account for the empty account only in
context of a miner. Other tests exist that verify a plain accounts
query of a non-existent account throws an exception.

Signed-off-by: Danno Ferrin danno.ferrin@gmail.com

When IBFT produces blocks the coinbase may correspond to an empty
account (as mining rewards are not paid out).  In this case allow
GraphQL to return an all zero account for the empty account only in
context of a miner.  Other tests exist that verify a plain accounts
query of a non-existent account throws an exception.

Signed-off-by: Danno Ferrin <danno.ferrin@gmail.com>
@shemnon
Copy link
Contributor Author

shemnon commented Aug 7, 2020

for #1272

…Miner

Signed-off-by: Danno Ferrin <danno.ferrin@gmail.com>
Signed-off-by: Danno Ferrin <danno.ferrin@gmail.com>
@shemnon shemnon requested review from RatanRSur, matkt and davemec August 11, 2020 05:58
Copy link
Contributor

@matkt matkt left a comment

Choose a reason for hiding this comment

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

LGTM

@shemnon shemnon merged commit fa89ec8 into master Aug 12, 2020
@shemnon shemnon deleted the graphqlIbftMiner branch August 12, 2020 03:43
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.

2 participants