Skip to content

Commit 31d0067

Browse files
committed
doc: test: update/fix TestShell example instructions
Tackles two issues in the TestShell documentation: - add missing instruction for creating a wallet prior to the `getnewaddress` call (needed as there is no default wallet created anymore since v0.21) - fix `generatetoaddress` call syntax (the scripted-diff in commit fa0b916 only worked for tests using `BitcoinTestFramework`)
1 parent 82fe672 commit 31d0067

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/functional/test-shell.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,10 @@ We now let the first node generate 101 regtest blocks, and direct the coinbase
9393
rewards to a wallet address owned by the mining node.
9494

9595
```
96+
>>> test.nodes[0].createwallet('default')
97+
{'name': 'default', 'warning': 'Empty string given as passphrase, wallet will not be encrypted.'}
9698
>>> address = test.nodes[0].getnewaddress()
97-
>>> test.self.generatetoaddress(nodes[0], 101, address)
99+
>>> test.generatetoaddress(test.nodes[0], 101, address)
98100
['2b98dd0044aae6f1cca7f88a0acf366a4bfe053c7f7b00da3c0d115f03d67efb', ...
99101
```
100102
Since the two nodes are both initialized by default to establish an outbound

0 commit comments

Comments
 (0)