Merge pull request #5099 from zgfzgf/feat-chain-gen
delete repeat call func
This commit is contained in:
commit
b190c3492a
@ -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)
|
return nil, nil, nil, xerrors.Errorf("get miner base info: %w", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
prev := mbi.PrevBeaconEntry
|
entries := mbi.BeaconEntries
|
||||||
|
rbase := 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
|
|
||||||
if len(entries) > 0 {
|
if len(entries) > 0 {
|
||||||
rbase = entries[len(entries)-1]
|
rbase = entries[len(entries)-1]
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user