|
|
@ -109,6 +109,7 @@ func TestHarmonyFlags(t *testing.T) { |
|
|
|
AllowedTxsFile: "./.hmy/allowedtxs.txt", |
|
|
|
AllowedTxsFile: "./.hmy/allowedtxs.txt", |
|
|
|
RosettaFixFile: "", |
|
|
|
RosettaFixFile: "", |
|
|
|
AccountSlots: 16, |
|
|
|
AccountSlots: 16, |
|
|
|
|
|
|
|
GlobalSlots: 5120, |
|
|
|
LocalAccountsFile: "./.hmy/locals.txt", |
|
|
|
LocalAccountsFile: "./.hmy/locals.txt", |
|
|
|
}, |
|
|
|
}, |
|
|
|
Pprof: harmonyconfig.PprofConfig{ |
|
|
|
Pprof: harmonyconfig.PprofConfig{ |
|
|
@ -880,6 +881,7 @@ func TestTxPoolFlags(t *testing.T) { |
|
|
|
RosettaFixFile: defaultConfig.TxPool.RosettaFixFile, |
|
|
|
RosettaFixFile: defaultConfig.TxPool.RosettaFixFile, |
|
|
|
AccountSlots: defaultConfig.TxPool.AccountSlots, |
|
|
|
AccountSlots: defaultConfig.TxPool.AccountSlots, |
|
|
|
LocalAccountsFile: defaultConfig.TxPool.LocalAccountsFile, |
|
|
|
LocalAccountsFile: defaultConfig.TxPool.LocalAccountsFile, |
|
|
|
|
|
|
|
GlobalSlots: defaultConfig.TxPool.GlobalSlots, |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
@ -888,7 +890,8 @@ func TestTxPoolFlags(t *testing.T) { |
|
|
|
BlacklistFile: "blacklist.file", |
|
|
|
BlacklistFile: "blacklist.file", |
|
|
|
AllowedTxsFile: "allowedtxs.txt", |
|
|
|
AllowedTxsFile: "allowedtxs.txt", |
|
|
|
RosettaFixFile: "rosettafix.file", |
|
|
|
RosettaFixFile: "rosettafix.file", |
|
|
|
AccountSlots: 16, // default
|
|
|
|
AccountSlots: defaultConfig.TxPool.AccountSlots, |
|
|
|
|
|
|
|
GlobalSlots: defaultConfig.TxPool.GlobalSlots, |
|
|
|
LocalAccountsFile: defaultConfig.TxPool.LocalAccountsFile, |
|
|
|
LocalAccountsFile: defaultConfig.TxPool.LocalAccountsFile, |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
@ -898,7 +901,8 @@ func TestTxPoolFlags(t *testing.T) { |
|
|
|
BlacklistFile: "blacklist.file", |
|
|
|
BlacklistFile: "blacklist.file", |
|
|
|
RosettaFixFile: "rosettafix.file", |
|
|
|
RosettaFixFile: "rosettafix.file", |
|
|
|
AllowedTxsFile: defaultConfig.TxPool.AllowedTxsFile, |
|
|
|
AllowedTxsFile: defaultConfig.TxPool.AllowedTxsFile, |
|
|
|
AccountSlots: 16, // default
|
|
|
|
AccountSlots: defaultConfig.TxPool.AccountSlots, |
|
|
|
|
|
|
|
GlobalSlots: defaultConfig.TxPool.GlobalSlots, |
|
|
|
LocalAccountsFile: defaultConfig.TxPool.LocalAccountsFile, |
|
|
|
LocalAccountsFile: defaultConfig.TxPool.LocalAccountsFile, |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
@ -910,6 +914,7 @@ func TestTxPoolFlags(t *testing.T) { |
|
|
|
AllowedTxsFile: defaultConfig.TxPool.AllowedTxsFile, |
|
|
|
AllowedTxsFile: defaultConfig.TxPool.AllowedTxsFile, |
|
|
|
RosettaFixFile: "rosettafix.file", |
|
|
|
RosettaFixFile: "rosettafix.file", |
|
|
|
LocalAccountsFile: defaultConfig.TxPool.LocalAccountsFile, |
|
|
|
LocalAccountsFile: defaultConfig.TxPool.LocalAccountsFile, |
|
|
|
|
|
|
|
GlobalSlots: defaultConfig.TxPool.GlobalSlots, |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
@ -920,6 +925,18 @@ func TestTxPoolFlags(t *testing.T) { |
|
|
|
RosettaFixFile: defaultConfig.TxPool.RosettaFixFile, |
|
|
|
RosettaFixFile: defaultConfig.TxPool.RosettaFixFile, |
|
|
|
AccountSlots: defaultConfig.TxPool.AccountSlots, |
|
|
|
AccountSlots: defaultConfig.TxPool.AccountSlots, |
|
|
|
LocalAccountsFile: "locals.txt", |
|
|
|
LocalAccountsFile: "locals.txt", |
|
|
|
|
|
|
|
GlobalSlots: defaultConfig.TxPool.GlobalSlots, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
args: []string{"--txpool.globalslots", "10240"}, |
|
|
|
|
|
|
|
expConfig: harmonyconfig.TxPoolConfig{ |
|
|
|
|
|
|
|
BlacklistFile: defaultConfig.TxPool.BlacklistFile, |
|
|
|
|
|
|
|
AllowedTxsFile: defaultConfig.TxPool.AllowedTxsFile, |
|
|
|
|
|
|
|
RosettaFixFile: defaultConfig.TxPool.RosettaFixFile, |
|
|
|
|
|
|
|
AccountSlots: defaultConfig.TxPool.AccountSlots, |
|
|
|
|
|
|
|
LocalAccountsFile: defaultConfig.TxPool.LocalAccountsFile, |
|
|
|
|
|
|
|
GlobalSlots: 10240, |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
} |
|
|
|
} |
|
|
|