Enable history vrf in testnet at epoch 74384 (#3854)

* Enable history vrf in testnet

* allow input int of any size
pull/3866/head
Rongjian Lan 3 years ago committed by GitHub
parent 305ef3514a
commit e232c3ec41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      core/vm/evm.go
  2. 2
      internal/params/config.go

@ -63,7 +63,7 @@ func run(evm *EVM, contract *Contract, input []byte, readOnly bool) ([]byte, err
if p := precompiles[*contract.CodeAddr]; p != nil {
if _, ok := p.(*vrf); ok {
if evm.chainRules.IsPrevVRF {
requestedBlockNum := big.NewInt(0).SetBytes(input[0:32])
requestedBlockNum := big.NewInt(0).SetBytes(input)
minBlockNum := big.NewInt(0).Sub(evm.BlockNumber, common.Big257)
if requestedBlockNum.Cmp(evm.BlockNumber) == 0 {

@ -81,7 +81,7 @@ var (
RedelegationEpoch: big.NewInt(36500),
NoEarlyUnlockEpoch: big.NewInt(73580),
VRFEpoch: big.NewInt(73880),
PrevVRFEpoch: EpochTBD,
PrevVRFEpoch: big.NewInt(74384),
MinDelegation100Epoch: big.NewInt(73880),
MinCommissionRateEpoch: big.NewInt(73880),
MinCommissionPromoPeriod: big.NewInt(10),

Loading…
Cancel
Save