Merge pull request #118 from leonardo-sj/patch-1

Update 03_3__Interlude_Using_Command-Line_Variables.md to use the "legacy" option in getnewaddress
This commit is contained in:
Shannon Appelcline 2020-05-19 09:13:57 -10:00 committed by GitHub
commit aa09815262
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,7 +13,7 @@ That's a simple command substitution, the equivalent to ``VARIABLE=`command` ``.
To create a new address would then look like this:
```
$ unset NEW_ADDRESS_1
$ NEW_ADDRESS_1=$(bitcoin-cli getnewaddress)
$ NEW_ADDRESS_1=$(bitcoin-cli getnewaddress "" legacy)
```
These commands clear the NEW_ADDRESS_1 variable, just to be sure, then fill it with the results of the `bitcoin-cli getnewaddress` command.