Skip to content

Commit ba8d596

Browse files
committed
loadtest: update config file for new fields
With the new mintV2 test we add a few extra parameters to the config file. In this PR we expose the new parameters in the sample config and add them to the config struct definition.
1 parent d81faf9 commit ba8d596

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

itest/loadtest/config.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,16 @@ type Config struct {
9393
// only relevant for the mint test.
9494
BatchSize int `long:"mint-test-batch-size" description:"the number of assets to mint in a single batch; only relevant for the mint test"`
9595

96+
// TotalNumGroups is the total number of groups that the minted assets
97+
// belong to.
98+
TotalNumGroups int `long:"mint-test-total-groups" description:"the total number of groups the minted assets belong to"`
99+
100+
// MintSupplyMin is the minimum supply to mint per asset.
101+
MintSupplyMin int `long:"mint-test-supply-min" description:"the max supply to mint per asset"`
102+
103+
// MintSupplyMax is the max suipply to mint per asset.
104+
MintSupplyMax int `long:"mint-test-supply-max" description:"the min supply to mint per asset"`
105+
96106
// NumSends is the number of asset sends to perform. This is only
97107
// relevant for the send test.
98108
NumSends int `long:"send-test-num-sends" description:"the number of send operations to perform; only relevant for the send test"`

itest/loadtest/loadtest-sample.conf

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,20 @@
22
network=regtest
33

44
# The name of the test case to run. Example "send" or "mint"
5-
test-case="mint"
5+
test-case="mintV2"
66

77
# Batch size for mint test
88
mint-test-batch-size=5
99

10+
# Total number of groups that assets belong to.
11+
mint-test-total-groups=20
12+
13+
# Max supply per asset mint.
14+
mint-test-supply-max=500000
15+
16+
# Min supply per asset mint.
17+
mint-test-supply-min=100000
18+
1019
# Number of send operations to perform for send test
1120
send-test-num-sends=5
1221

0 commit comments

Comments
 (0)