nil changeset is not expected when err=nil

This commit is contained in:
msutton 2022-07-08 11:39:31 +03:00
parent 92e0051b3b
commit 52e5aa9fab

View File

@ -88,7 +88,7 @@ func (csm *consensusStateManager) ResolveVirtual(maxBlocksToResolve uint64) (*ex
if selectedTip == nil {
log.Warnf("Non of the DAG tips are valid")
return nil, true, nil
return &externalapi.VirtualChangeSet{}, true, nil
}
oldVirtualGHOSTDAGData, err := csm.ghostdagDataStore.Get(csm.databaseContext, readStagingArea, model.VirtualBlockHash, false)