mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-24 13:46:43 +00:00
fix unit tests
This commit is contained in:
parent
88db0d12fa
commit
6d77b54f0c
1 changed files with 6 additions and 2 deletions
|
|
@ -44,6 +44,8 @@ func newPrague1Config(distributor common.Address) *params.ChainConfig {
|
||||||
cfg := *params.AllDevChainProtocolChanges // copy
|
cfg := *params.AllDevChainProtocolChanges // copy
|
||||||
cfg.Berachain.Prague1 = params.Prague1Config{
|
cfg.Berachain.Prague1 = params.Prague1Config{
|
||||||
Time: &zero,
|
Time: &zero,
|
||||||
|
BaseFeeChangeDenominator: 48,
|
||||||
|
MinimumBaseFeeWei: 10000000000,
|
||||||
PoLDistributorAddress: distributor,
|
PoLDistributorAddress: distributor,
|
||||||
}
|
}
|
||||||
return &cfg
|
return &cfg
|
||||||
|
|
@ -140,6 +142,8 @@ func TestValidateBody_PrePrague1_PoLProhibited(t *testing.T) {
|
||||||
future := uint64(1000)
|
future := uint64(1000)
|
||||||
cfg := *params.AllDevChainProtocolChanges
|
cfg := *params.AllDevChainProtocolChanges
|
||||||
cfg.Berachain.Prague1.Time = &future
|
cfg.Berachain.Prague1.Time = &future
|
||||||
|
cfg.Berachain.Prague1.BaseFeeChangeDenominator = 48
|
||||||
|
cfg.Berachain.Prague1.MinimumBaseFeeWei = 10000000000
|
||||||
cfg.Berachain.Prague1.PoLDistributorAddress = distributor
|
cfg.Berachain.Prague1.PoLDistributorAddress = distributor
|
||||||
chain, validator := buildTestChain(t, &cfg)
|
chain, validator := buildTestChain(t, &cfg)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue