Skip to content

Commit ae2f32a

Browse files
committed
Fix links on chapter 18
1 parent dfdcdb4 commit ae2f32a

6 files changed

+17
-17
lines changed

18_1_Accessing_Bitcoind_with_Go.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ However, a quirk with hashes in `rpcclient` is that they will typically print in
160160

161161
### Run Your Code
162162

163-
You can download the complete code from the [src directory](src/17_1_blockinfo.go).
163+
You can download the complete code from the [src directory](src/18_1_blockinfo.go).
164164

165165
You can then run:
166166
```
@@ -185,7 +185,7 @@ Due to limitations of the `btcd` `rpcclient`, you can't make a use of the ```get
185185
```
186186
```client.GetBalance("*")``` requires the ```"*"``` input, due to a quirk with `btcd`. The asterisk signifies that you want to get the balance of all of your wallets.
187187

188-
If you run [the src code](src/17_1_getbalance.go), you should get an output similar to this:
188+
If you run [the src code](src/18_1_getbalance.go), you should get an output similar to this:
189189
```
190190
$ go run getbalance.go
191191
0.000689 BTC
@@ -279,7 +279,7 @@ Only afterward do you use the `getreceivedbyaddress` RPC, on your decoded addres
279279
280280
fmt.Println(wallet)
281281
```
282-
When you run [the code](src/17_1_getamountreceived.go), you should get output similar to:
282+
When you run [the code](src/18_1_getamountreceived.go), you should get output similar to:
283283
```
284284
$ go run getamountreceived.go
285285
0.0085 BTC
@@ -331,7 +331,7 @@ func main() {
331331
fmt.Println(sent)
332332
}
333333
```
334-
When you run [the code](src/17_1_sendtransaction.go), the txid of the transaction is outputted:
334+
When you run [the code](src/18_1_sendtransaction.go), the txid of the transaction is outputted:
335335

336336
```
337337
$ go run sendtransaction.go

18_2_Accessing_Bitcoind_with_Java.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ PubKey: 0368d0fffa651783524f8b934d24d03b32bf8ff2c0808943a556b3d74b2e5c7d65
154154

155155
### Run Your Code
156156

157-
The code for these examples can be found in [the src directory](src/17_2_App-getinfo.java) and should be installed into the standard directory structure created here as `~/java-project/src/main/java/com/blockchaincommons/lbtc/App.java`. It can then be compiled and run.
157+
The code for these examples can be found in [the src directory](src/18_2_App-getinfo.java) and should be installed into the standard directory structure created here as `~/java-project/src/main/java/com/blockchaincommons/lbtc/App.java`. It can then be compiled and run.
158158

159159
```
160160
$ mvn compile
@@ -278,7 +278,7 @@ System.out.println("Sent signedRawTx (txID): " + sentRawTransactionID);
278278

279279
### Run Your Code
280280

281-
You can now run [the transaction code](src/17_2_App-sendtx.java) as `~/java-project/src/main/java/com/blockchaincommons/lbtc/App.java`.
281+
You can now run [the transaction code](src/18_2_App-sendtx.java) as `~/java-project/src/main/java/com/blockchaincommons/lbtc/App.java`.
282282

283283
```
284284
$ mvn compile
@@ -317,7 +317,7 @@ To do this, use `JavaBitcoindRpcClient`'s `BitcoinAcceptor` class, which allows
317317
acceptor.run();
318318
```
319319

320-
See [the src directory](src/17_2_App-listen.java) for the complete code. Every time a transaction is sent or a new block is generated, you should see output on your console:
320+
See [the src directory](src/18_2_App-listen.java) for the complete code. Every time a transaction is sent or a new block is generated, you should see output on your console:
321321
```
322322
Transaction: {account=Tests, address=mhopuJzgmTwhGfpNLCJ9CRknugY691oXp1, category=receive, amount=5.0E-4, label=Tests, vout=1, confirmations=0, trusted=false, txid=361e8fcff243b74ebf396e595a007636654f67c3c7b55fd2860a3d37772155eb, walletconflicts=[], time=1513132887, timereceived=1513132887, bip125-replaceable=unknown}
323323

18_3_Accessing_Bitcoind_with_NodeJS.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ The result of the BCRPC functions is a JSON object containing information about
111111

112112
### Run Your Code
113113

114-
You can find the `getinfo` code in [the src directory](src/17_3_getinfo.js).
114+
You can find the `getinfo` code in [the src directory](src/18_3_getinfo.js).
115115
```
116116
$ node getinfo.js
117117
1831094
@@ -163,7 +163,7 @@ agent.getWalletInfo(function (err, walletInfo) {
163163
});
164164
```
165165

166-
The source is available as [walletinfo.js](src/17_3_walletinfo.js).
166+
The source is available as [walletinfo.js](src/18_3_walletinfo.js).
167167
```
168168
$ node walletinfo.js
169169
0.008498
@@ -261,7 +261,7 @@ You should get an output similar to this:
261261
}
262262
```
263263

264-
The full code is available as [sendtx.js](src/17_3_sendtx.js).
264+
The full code is available as [sendtx.js](src/18_3_sendtx.js).
265265

266266
## Summary: Accessing Bitcoind with Node
267267

18_4_Accessing_Bitcoind_with_Python.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ print("---------------------------------------------------------------\n")
125125

126126
### Run Your Code
127127

128-
You can retrieve [the src code](src/17_4_getinfo.py) and run it with `python3`:
128+
You can retrieve [the src code](src/18_4_getinfo.py) and run it with `python3`:
129129
```
130130
$ python3 getinfo.py
131131
---------------------------------------------------------------
@@ -239,7 +239,7 @@ pprint(utxo_tx_details)
239239
print("---------------------------------------------------------------\n")
240240
```
241241

242-
This code is available at [walletinfo.py](src/17_4_walletinfo.py).
242+
This code is available at [walletinfo.py](src/18_4_walletinfo.py).
243243

244244
```
245245
$ python3 walletinfo.py
@@ -418,7 +418,7 @@ send_tx = rpc_client.sendrawtransaction(signed_tx['hex'])
418418
```
419419
### Run Your Code
420420

421-
The [sample code](src/17_4_sendtx.py) is full of `print` statements to demonstrate all of the data available at every point:
421+
The [sample code](src/18_4_sendtx.py) is full of `print` statements to demonstrate all of the data available at every point:
422422
```
423423
$ python3 sendtx.py
424424
Creating a Transaction

18_5_Accessing_Bitcoind_with_Rust.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ Here's the complete code to retrieve a block hash, turn that into a block, and p
135135
136136
### Run Your Code
137137

138-
You can access the [src code](src/17_5_main-getinfo.rs) and run it. Unfortunately, the "Block" info will come out a bit ugly because this example doesn't include a library to prettify it.
138+
You can access the [src code](src/18_5_main-getinfo.rs) and run it. Unfortunately, the "Block" info will come out a bit ugly because this example doesn't include a library to prettify it.
139139
```
140140
$ cargo run
141141
Compiling btc_test v0.1.0 (/home/standup/btc_test)
@@ -289,7 +289,7 @@ println!("{:?}", txid_sent);
289289

290290
### Run Your Code
291291

292-
You can now run the complete code from the [src](src/17_5_main-sendtx.rs).
292+
You can now run the complete code from the [src](src/18_5_main-sendtx.rs).
293293

294294
```
295295
$ cargo run

18_6_Accessing_Bitcoind_with_Swift.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ makeCommand(method: method,param: param) { result in
191191

192192
### Run Your Code
193193

194-
The complete code is available in the [src directory](src/17_6_getinfo.playground). Load it into your Xcode playground and then "Editor -> Run Playground" and you should get results like:
194+
The complete code is available in the [src directory](src/18_6_getinfo.playground). Load it into your Xcode playground and then "Editor -> Run Playground" and you should get results like:
195195
```
196196
{
197197
bestblockhash = 00000000000000069725608ebc5b59e520572a8088cbc57ffa5ba87b7f300ac7;
@@ -385,7 +385,7 @@ Sending your transaction is equally simple:
385385
}
386386
```
387387

388-
The code for this transaction sender can be found in the [src directory](src/17_6_sendtx.playground).
388+
The code for this transaction sender can be found in the [src directory](src/18_6_sendtx.playground).
389389

390390
## Use Swift in Other Ways
391391

0 commit comments

Comments
 (0)