Skip to content

Commit

Permalink
fix beacon randomness (#4475)
Browse files Browse the repository at this point in the history
  • Loading branch information
hunjixin authored Jun 28, 2021
1 parent 73c8c83 commit b4e44a9
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 @@ -338,7 +338,7 @@ func (cia *chainInfoAPI) ChainGetRandomnessFromBeacon(ctx context.Context, key t
return cia.chain.ChainReader.GetBeaconRandomness(ctx, ts.Key(), personalization, randEpoch, entropy, false)
}

return cia.chain.ChainReader.GetChainRandomness(ctx, ts.Key(), personalization, randEpoch, entropy, true)
return cia.chain.ChainReader.GetBeaconRandomness(ctx, ts.Key(), personalization, randEpoch, entropy, true)
}

// ChainGetRandomnessFromTickets is used to sample the chain for randomness.
Expand Down

0 comments on commit b4e44a9

Please sign in to comment.