Skip to content

Commit

Permalink
parity: implement ephemral EIP2929 for Parity config
Browse files Browse the repository at this point in the history
Fixes ./integration/#TestEquivalent_Features

Resolves https://github.com/etclabscore/core-geth/pull/246/files#r535740801

Date: 2020-12-04 06:52:01-06:00
Signed-off-by: meows <[email protected]>
  • Loading branch information
meowsbits committed Dec 4, 2020
1 parent 75af684 commit f3aff0e
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions params/types/parity/parity_configurator.go
Original file line number Diff line number Diff line change
Expand Up @@ -995,14 +995,12 @@ func (spec *ParityChainSpec) SetEIP2315Transition(i *uint64) error {
}

func (spec *ParityChainSpec) GetEIP2929Transition() *uint64 {
return nil
return spec.Params.EIP2929Transition.Uint64P()
}

func (spec *ParityChainSpec) SetEIP2929Transition(n *uint64) error {
if n == nil {
return nil
}
return ctypes.ErrUnsupportedConfigFatal
spec.Params.EIP2929Transition = new(ParityU64).SetUint64(n)
return nil
}

func (spec *ParityChainSpec) GetEthashDifficultyBombDelaySchedule() ctypes.Uint64BigMapEncodesHex {
Expand Down

0 comments on commit f3aff0e

Please sign in to comment.