diff options
author | Sebastian Falbesoner <sebastian.falbesoner@gmail.com> | 2022-11-17 12:04:13 +0100 |
---|---|---|
committer | Sebastian Falbesoner <sebastian.falbesoner@gmail.com> | 2022-11-17 12:04:13 +0100 |
commit | 31d0067f8bccd6b090bf88bad8472bb5cb1f20a4 (patch) | |
tree | 55e4ea967019aae98dec36c77b6b5faadf919c34 /test/functional/test-shell.md | |
parent | 82fe672ea078371cfa7a504cba87e52a782235fa (diff) | |
download | bitcoin-31d0067f8bccd6b090bf88bad8472bb5cb1f20a4.tar.xz |
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
fa0b916971e5bc23ad6396831940a2899ca05402 only worked for tests using
`BitcoinTestFramework`)
Diffstat (limited to 'test/functional/test-shell.md')
-rw-r--r-- | test/functional/test-shell.md | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/functional/test-shell.md b/test/functional/test-shell.md index 78737509cb..80f4e88109 100644 --- a/test/functional/test-shell.md +++ b/test/functional/test-shell.md @@ -93,8 +93,10 @@ We now let the first node generate 101 regtest blocks, and direct the coinbase rewards to a wallet address owned by the mining node. ``` +>>> test.nodes[0].createwallet('default') +{'name': 'default', 'warning': 'Empty string given as passphrase, wallet will not be encrypted.'} >>> address = test.nodes[0].getnewaddress() ->>> test.self.generatetoaddress(nodes[0], 101, address) +>>> test.generatetoaddress(test.nodes[0], 101, address) ['2b98dd0044aae6f1cca7f88a0acf366a4bfe053c7f7b00da3c0d115f03d67efb', ... ``` Since the two nodes are both initialized by default to establish an outbound |