Merge pull request #3208 from austinabell/extratsload

Update beacon entry load error message
This commit is contained in:
Łukasz Magiera 2020-09-24 14:19:00 +02:00 committed by GitHub
commit 2867b31d2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -1301,7 +1301,7 @@ func (cs *ChainStore) GetLatestBeaconEntry(ts *types.TipSet) (*types.BeaconEntry
}, nil }, nil
} }
return nil, xerrors.Errorf("found NO beacon entries in the 20 blocks prior to given tipset") return nil, xerrors.Errorf("found NO beacon entries in the 20 latest tipsets")
} }
type chainRand struct { type chainRand struct {

View File

@ -1739,7 +1739,7 @@ func (syncer *Syncer) getLatestBeaconEntry(_ context.Context, ts *types.TipSet)
cur = next cur = next
} }
return nil, xerrors.Errorf("found NO beacon entries in the 20 blocks prior to given tipset") return nil, xerrors.Errorf("found NO beacon entries in the 20 latest tipsets")
} }
func (syncer *Syncer) IsEpochBeyondCurrMax(epoch abi.ChainEpoch) bool { func (syncer *Syncer) IsEpochBeyondCurrMax(epoch abi.ChainEpoch) bool {