Skip to content

Commit

Permalink
update defaultcfg
Browse files Browse the repository at this point in the history
  • Loading branch information
libangzhu committed Feb 4, 2024
1 parent daf4f80 commit 69d03c4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
9 changes: 4 additions & 5 deletions system/consensus/solo/solo_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,13 @@ func TestSolo(t *testing.T) {
//test feelimit txs ,blockfeelimit

privkey := mock33.GetGenesisKey()
txs = util.GenCoinsTxs(cfg, nil, 10)
for i := 0; i < 10; i++ {
//每笔交易手续费20个比特元
txs[i].Fee = 20 * 1e8
txs = util.GenCoinsTxs(cfg, nil, 30)
for i := 0; i < 30; i++ {
//每笔交易手续费10个比特元
txs[i].Fee = 10 * 1e8
txs[i].Sign(types.SECP256K1, privkey)
}
for i := 0; i < len(txs); i++ {
t.Log(txs[i].GetTxFee())
mock33.GetAPI().SendTx(txs[i])
}
time.Sleep(time.Second * 10)
Expand Down
2 changes: 1 addition & 1 deletion types/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func TestChainConfig(t *testing.T) {
assert.Equal(t, adata.(bool), true)

// tx fee config
assert.Equal(t, cfg.GetMaxTxFee(0), int64(1e9))
assert.Equal(t, int64(1e9), cfg.GetMaxTxFee(0))
assert.Equal(t, cfg.GetMaxTxFeeRate(), int64(1e7))
assert.Equal(t, cfg.GetMinTxFeeRate(), int64(1e5))
height, ok := cfg.GetModuleConfig().Crypto.EnableHeight[secp256k1.Name]
Expand Down
2 changes: 1 addition & 1 deletion types/defaultcfg.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ maxTxNumPerAccount=100000
[mver.mempool.ForkMaxTxFeeV1]
maxTxFee=5000000000
[mver.mempool.ForkMaxTxFeeV2]
maxTxFee=2000000000
maxTxFee=1000000000
[consensus]
Expand Down

0 comments on commit 69d03c4

Please sign in to comment.