Skip to content

Commit

Permalink
Merge pull request #5099 from zgfzgf/feat-chain-gen
Browse files Browse the repository at this point in the history
delete repeat call func
  • Loading branch information
magik6k authored Dec 3, 2020
2 parents da5e1b3 + a415e49 commit b190c34
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions chain/gen/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -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]
}
Expand Down

0 comments on commit b190c34

Please sign in to comment.