Merge pull request #5099 from zgfzgf/feat-chain-gen

delete repeat call func
This commit is contained in:
Łukasz Magiera 2020-12-03 13:23:39 +01:00 committed by GitHub
commit b190c3492a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -347,14 +347,8 @@ func (cg *ChainGen) nextBlockProof(ctx context.Context, pts *types.TipSet, m add
return nil, nil, nil, xerrors.Errorf("get miner base info: %w", err)
}
prev := mbi.PrevBeaconEntry
entries, err := beacon.BeaconEntriesForBlock(ctx, cg.beacon, round, pts.Height(), prev)
if err != nil {
return nil, nil, nil, xerrors.Errorf("get beacon entries for block: %w", err)
}
rbase := prev
entries := mbi.BeaconEntries
rbase := mbi.PrevBeaconEntry
if len(entries) > 0 {
rbase = entries[len(entries)-1]
}