From a84b889c28a8813799650316e881b7f945ffb150 Mon Sep 17 00:00:00 2001 From: mfrankovi Date: Fri, 29 Nov 2024 09:02:30 +0100 Subject: [PATCH] chore: update cornus hf config --- taraxa/state/chain_config/chain_config.go | 12 +++++++----- taraxa/state/contracts/tests/dpos/dpos_test.go | 2 ++ .../state/contracts/tests/slashing/slashing_test.go | 2 ++ 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/taraxa/state/chain_config/chain_config.go b/taraxa/state/chain_config/chain_config.go index c95abc8a2..e68896e58 100644 --- a/taraxa/state/chain_config/chain_config.go +++ b/taraxa/state/chain_config/chain_config.go @@ -34,6 +34,13 @@ type FicusHfConfig struct { BridgeContractAddress common.Address } +type CornusHfConfig struct { + BlockNum uint64 + DelegationLockingPeriod uint32 // [number of blocks] + DagGasLimit uint64 + PbftGasLimit uint64 +} + // Leaving it here for next HF // type BambooRedelegation struct { // Validator common.Address @@ -44,11 +51,6 @@ type FicusHfConfig struct { // Redelegations []BambooRedelegation // } -type CornusHfConfig struct { - BlockNum uint64 - DelegationLockingPeriod uint32 // [number of blocks] -} - type HardforksConfig struct { FixRedelegateBlockNum uint64 Redelegations []Redelegation diff --git a/taraxa/state/contracts/tests/dpos/dpos_test.go b/taraxa/state/contracts/tests/dpos/dpos_test.go index 92bb4e7d3..995f6846d 100644 --- a/taraxa/state/contracts/tests/dpos/dpos_test.go +++ b/taraxa/state/contracts/tests/dpos/dpos_test.go @@ -129,6 +129,8 @@ var ( CornusHf: chain_config.CornusHfConfig{ BlockNum: 1000, DelegationLockingPeriod: 4, + DagGasLimit: 100000, + PbftGasLimit: 1000000, }, }, } diff --git a/taraxa/state/contracts/tests/slashing/slashing_test.go b/taraxa/state/contracts/tests/slashing/slashing_test.go index 2b8211054..074ca9215 100644 --- a/taraxa/state/contracts/tests/slashing/slashing_test.go +++ b/taraxa/state/contracts/tests/slashing/slashing_test.go @@ -73,6 +73,8 @@ var ( CornusHf: chain_config.CornusHfConfig{ BlockNum: 0, DelegationLockingPeriod: 4, + DagGasLimit: 100000, + PbftGasLimit: 1000000, }, }, }