Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
libangzhu committed Jan 17, 2024
1 parent 20c804d commit 094437e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
1 change: 0 additions & 1 deletion cmd/chain33/chain33.fork.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ ForkFormatAddressKey=0
ForkCheckEthTxSort=0
ForkProxyExec=0
ForkMaxTxFeeV1=0

[fork.sub.none]
ForkUseTimeDelay=0

Expand Down
8 changes: 5 additions & 3 deletions types/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -541,13 +541,15 @@ func (c *Chain33Config) GetMaxTxFeeRate() int64 {

// GetMaxTxFee get max transaction fee by blockheight
func (c *Chain33Config) GetMaxTxFee(height int64) int64 {

if c.IsFork(height, "ForkMaxTxFeeV1") {
conf := Conf(c, "mver.mempool")
return conf.MGInt("maxTxFee", height)
}
if conf.MGInt("maxTxFee", height) != 0 {
return conf.MGInt("maxTxFee", height)
}

}
return c.GInt("MaxTxFee")

}

// SetTxFeeConfig 设置交易费相关配置
Expand Down
2 changes: 1 addition & 1 deletion types/fork.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ func (f *Forks) SetTestNetFork() {
f.setFork("ForkCheckEthTxSort", 0)
f.setFork("ForkProxyExec", 0)
f.setFork("ForkMaxTxFeeV1", 0)
f.setFork("ForkMaxTxFeeV2", 0)

}

func (f *Forks) setLocalFork() {
Expand Down

0 comments on commit 094437e

Please sign in to comment.