Skip to content

Commit c604fad

Browse files
committed
Add more help text
1 parent 4282fd0 commit c604fad

File tree

2 files changed

+13
-8
lines changed

2 files changed

+13
-8
lines changed

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ However sometimes git does not like it when the repo is owned by a different use
2323

2424
sudo sudo git config --global --add safe.directory <path/to/repo>
2525

26+
Usage:
27+
2628
```
2729
usage: simulation.py [options]
2830
@@ -45,11 +47,11 @@ options:
4547
set a random seed for deterministically reproducing a previous test run
4648
--timeout-factor TIMEOUT_FACTOR
4749
adjust test timeouts by a factor. Setting it to 0 disables all timeouts
48-
--scenario SCENARIO
49-
--label LABEL
50-
--payments PAYMENTS
51-
--feerates FEERATES
52-
--ops OPS
50+
--scenario SCENARIO Path to scenario file consisting of lines of comma separated pairs of payments and feerates
51+
--label LABEL A label to give to this simulation to help identify its results
52+
--payments PAYMENTS Path to payments file consisting of one payment per line in BTC. Positive is a deposit into the test wallet, negative is a withdrawal from the test wallet.
53+
--feerates FEERATES Path to a feerates file consisting of one feerate per line in BTC/kvb
54+
--ops OPS Maximum number of deposits and withdrawal actions to do, default is all payments in the scenario or payments file
5355
--weights WEIGHTS [WEIGHTS ...]
5456
Causes recipient output types to be chosen randomly with provided weights per address type. Weights must add to 100 and be provided in the following order: bech32m bech32 p2sh-segwit legacy
5557
```

scripts/framework.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ def check_json_precision():
7070

7171

7272
class Simulation:
73+
"""Copied and modified from BitcoinTestFramework in Bitcoin Core's test/functional/test_framework/test_framework.py"""
7374
def __init__(self):
7475
self.chain: str = "regtest"
7576
self.setup_clean_chain: bool = True
@@ -149,21 +150,23 @@ def parse_args(self):
149150
help="adjust test timeouts by a factor. Setting it to 0 disables all timeouts",
150151
)
151152

152-
parser.add_argument("--scenario", default=None, action=ScenarioOptionsAction)
153-
parser.add_argument("--label", default=None)
153+
parser.add_argument("--scenario", default=None, action=ScenarioOptionsAction, help="Path to scenario file consisting of lines of comma separated pairs of payments and feerates")
154+
parser.add_argument("--label", default=None, help="A label to give to this simulation to help identify its results")
154155
parser.add_argument(
155156
"--payments",
156157
default=None,
157158
required="--feerates" in sys.argv,
158159
action=PaymentsFeeratesOptionsAction,
160+
help="Path to payments file consisting of one payment per line in BTC. Positive is a deposit into the test wallet, negative is a withdrawal from the test wallet."
159161
)
160162
parser.add_argument(
161163
"--feerates",
162164
default=None,
163165
required="--payments" in sys.argv,
164166
action=PaymentsFeeratesOptionsAction,
167+
help="Path to a feerates file consisting of one feerate per line in BTC/kvb"
165168
)
166-
parser.add_argument("--ops", type=int, default=None)
169+
parser.add_argument("--ops", type=int, default=None, help="Maximum number of deposits and withdrawal actions to do, default is all payments in the scenario or payments file")
167170
parser.add_argument(
168171
"--weights",
169172
type=int,

0 commit comments

Comments
 (0)