Skip to content
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

Ln/replace best chain plus no blocknode parent #709

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion scripts/tools/toolslib/chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ func GetBestChainFromBadger(syncedDBHandle *badger.DB, params *lib.DeSoParams) (
}

// Walk back from the best node to the genesis block and store them all in bestChain.
bestChain, err := lib.GetBestChain(tipNode)
bi := lib.NewBlockIndex(syncedDBHandle, nil, tipNode)
bestChain, err := lib.GetBestChain(tipNode, bi)
if err != nil {
return nil, errors.Wrap(err, "GetBestChainFromBadger() failed to GetBestChain")
}
Expand Down