Skip to content

[ETCM-302] Add more debug log to block number handling#786

Merged
KonradStaniec merged 5 commits intodevelopfrom
etcm-302/add-more-logging-to-best-block-handling
Nov 10, 2020
Merged

[ETCM-302] Add more debug log to block number handling#786
KonradStaniec merged 5 commits intodevelopfrom
etcm-302/add-more-logging-to-best-block-handling

Conversation

@KonradStaniec
Copy link
Copy Markdown
Contributor

Description

Added more logs in blockchain handling of current block numbers

@KonradStaniec KonradStaniec requested a review from ntallar November 9, 2020 10:54
parentHash = parent.header.parentHash
parentWeight <- blockchain.getChainWeightByHash(parentHash)
} yield {
log.debug("Removing blocks starting from {}", bestNumber)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Shouldn't we log also parentHash?

Copy link
Copy Markdown

@ntallar ntallar left a comment

Choose a reason for hiding this comment

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

LGTM!

 .\\            //.
. \ \          / /.
.\  ,\     /` /,.-
 -.   \  /'/ /  .
 ` -   `-'  \  -
   '.       /.\`
      -    .-
      :`//.'
      .`.'
      .' BP 

@KonradStaniec KonradStaniec merged commit ccc0c91 into develop Nov 10, 2020
@KonradStaniec KonradStaniec deleted the etcm-302/add-more-logging-to-best-block-handling branch November 10, 2020 13:16
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.

3 participants