Skip to content

Fix bug when fetching genesis block#83

Merged
joepetrowski merged 3 commits intomasterfrom
fix/block/genesis
Jun 14, 2020
Merged

Fix bug when fetching genesis block#83
joepetrowski merged 3 commits intomasterfrom
fix/block/genesis

Conversation

@danforbes
Copy link
Contributor

Closes #82

@danforbes danforbes force-pushed the fix/block/genesis branch 2 times, most recently from f009ca9 to 95c71d8 Compare June 13, 2020 13:26
Copy link
Collaborator

@joepetrowski joepetrowski left a comment

Choose a reason for hiding this comment

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

This majorly breaks the API for people looking for certain fields. Should we return empty objects for the extra fields? I could see some chains having an onInitialize/onFinalize genesis too.

Copy link
Contributor

@emostov emostov left a comment

Choose a reason for hiding this comment

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

I think Joe has a fair point that warrants further discussion. Code looks good though!

@danforbes danforbes force-pushed the fix/block/genesis branch from 95c71d8 to 13f86c9 Compare June 14, 2020 13:13
@danforbes
Copy link
Contributor Author

Yep, @joepetrowski is definitely right. I've addressed this issue.

@joepetrowski joepetrowski merged commit cfbc96e into master Jun 14, 2020
@joepetrowski joepetrowski deleted the fix/block/genesis branch June 14, 2020 15:52
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.

Get block 0

3 participants