-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Add total blocks counter #1813
Add total blocks counter #1813
Conversation
Pull Request Test Coverage Report for Build 08e44669-7732-42e0-a731-87b9e3134ae7
💛 - Coveralls |
@@ -46,11 +47,13 @@ function baseReducer (state = initialState, action) { | |||
blocks: [ | |||
action.msg, | |||
...state.blocks.slice(0, -1) | |||
] | |||
], | |||
blockCount: action.msg.blockNumber + 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@saneery does it handle the case when we have no blocks?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vbaranov do you mean when no blocks in the database? This js code handles only when new block comes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Resolves Add total blocks counter