diff --git a/scripts/tools/toolslib/chain.go b/scripts/tools/toolslib/chain.go index 0165072e..d232c345 100644 --- a/scripts/tools/toolslib/chain.go +++ b/scripts/tools/toolslib/chain.go @@ -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") }