Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Confirmations value in block is NaN - Close #3688 #3706

Merged
merged 3 commits into from
May 22, 2019

Conversation

pablitovicente
Copy link
Contributor

What was the problem?

  • confirmations was showing NAN

How did I fix it?

  • By setting a default when the property confirmations is not present in the blocks when calling dbRead or storageRead when receiving blocks

How to test it?

  • Build should be green
  • Run two nodes, one forging, one not
  • Look for the message chain:blocks:change confirmations should not be NaN

Review checklist

framework/src/modules/chain/logic/block.js Outdated Show resolved Hide resolved
framework/src/modules/chain/logic/block.js Outdated Show resolved Hide resolved
@pablitovicente pablitovicente requested review from lsilvs and shuse2 and removed request for lsilvs May 22, 2019 15:18
@pablitovicente pablitovicente force-pushed the 3688-confirmations-value-in-block-is-nan branch from a0679ce to bc0e6db Compare May 22, 2019 15:32
@pablitovicente pablitovicente force-pushed the 3688-confirmations-value-in-block-is-nan branch from bc0e6db to 30294dd Compare May 22, 2019 15:35
Copy link
Contributor

@lsilvs lsilvs left a comment

Choose a reason for hiding this comment

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

👍

@shuse2 shuse2 merged commit 933c754 into release/2.0.0 May 22, 2019
@shuse2 shuse2 deleted the 3688-confirmations-value-in-block-is-nan branch May 22, 2019 15:57
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.

3 participants