Skip to content

init: clean up load chainstate function#240

Open
Ataraxia009 wants to merge 1 commit intobitcoinknots:29.x-knotsfrom
Ataraxia009:clean-up-load-chainstate
Open

init: clean up load chainstate function#240
Ataraxia009 wants to merge 1 commit intobitcoinknots:29.x-knotsfrom
Ataraxia009:clean-up-load-chainstate

Conversation

@Ataraxia009
Copy link

@Ataraxia009 Ataraxia009 commented Nov 26, 2025

Cleaning up LoadChainTip function, had some unnecessary/redundant lines of code, more specifically:

  • removing repetitive call to GetBestBlock()
  • removing extra call to tip = m_chain.Tip();
  • Changing call from LogPrintf to LogInfo

@Ataraxia009 Ataraxia009 marked this pull request as ready for review November 26, 2025 18:02
Copy link

@bigshiny90 bigshiny90 left a comment

Choose a reason for hiding this comment

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

Very straight-forward and logical.

ACK 923c3ab

Copy link

@mhrussell1 mhrussell1 left a comment

Choose a reason for hiding this comment

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

Looks good. Sorry don't know how to ACK,

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