Skip to content

Commit

Permalink
Merge pull request #6179 from filecoin-project/fix/get-randomness
Browse files Browse the repository at this point in the history
fix: not use chain randomness
  • Loading branch information
simlecode authored Oct 11, 2023
2 parents 4fcf50f + 26b8406 commit d50e6a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/submodule/chain/chaininfo_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ func (cia *chainInfoAPI) StateGetRandomnessFromTickets(ctx context.Context, pers
}

r := chain.NewChainRandomnessSource(cia.chain.ChainReader, ts.Key(), cia.chain.Drand, cia.chain.Fork.GetNetworkVersion)
digest, err := r.GetBeaconRandomness(ctx, randEpoch)
digest, err := r.GetChainRandomness(ctx, randEpoch)
if err != nil {
return nil, fmt.Errorf("getting chain randomness: %w", err)
}
Expand Down

0 comments on commit d50e6a6

Please sign in to comment.