Skip to content

Commit f45a2e9

Browse files
authored
Merge pull request #50 from valentinewallace/update-tutorial-01
Fix outdated RPC responses and remove outdated lnd.conf flag
2 parents 5ebd9a1 + c6e3cc1 commit f45a2e9

File tree

1 file changed

+22
-8
lines changed

1 file changed

+22
-8
lines changed

tutorial/01-lncli.md

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,6 @@ command line options:
207207
datadir=data
208208
logdir=log
209209
debuglevel=info
210-
debughtlc=true
211210
212211
[Bitcoin]
213212
bitcoin.simnet=1
@@ -383,7 +382,7 @@ Connect Alice to Bob:
383382
# Get Bob's identity pubkey:
384383
bob$ lncli-bob getinfo
385384
{
386-
----->"identity_pubkey": <BOB_PUBKEY>,
385+
--->"identity_pubkey": <BOB_PUBKEY>,
387386
"alias": "",
388387
"num_pending_channels": 0,
389388
"num_active_channels": 0,
@@ -394,7 +393,11 @@ bob$ lncli-bob getinfo
394393
"testnet": false,
395394
"chains": [
396395
"bitcoin"
397-
]
396+
],
397+
"uris": [
398+
],
399+
"best_header_timestamp": "1533350134",
400+
"version": "0.4.2-beta commit=7a5a824d179c6ef16bd78bcb7a4763fda5f3f498"
398401
}
399402
400403
# Connect Alice and Bob together
@@ -485,7 +488,11 @@ alice$ lncli-alice listchannels
485488
"unsettled_balance": "0",
486489
"total_satoshis_sent": "0",
487490
"total_satoshis_received": "0",
488-
"num_updates": "0"
491+
"num_updates": "0",
492+
"pending_htlcs": [
493+
],
494+
"csv_delay": 144,
495+
"private": false
489496
}
490497
]
491498
}
@@ -502,24 +509,29 @@ bob$ lncli-bob addinvoice --amt=10000
502509
{
503510
"r_hash": "<a_random_rhash_value>",
504511
"pay_req": "<encoded_invoice>",
512+
"add_index": 1
505513
}
506514
```
507515

508516
Send the payment from Alice to Bob:
509517
```bash
510518
alice$ lncli-alice sendpayment --pay_req=<encoded_invoice>
511519
{
520+
"payment_error": "",
512521
"payment_preimage": "baf6929fc95b3824fb774a4b75f6c8a1ad3aaef04efbf26cc064904729a21e28",
513522
"payment_route": {
514-
"total_time_lock": 1,
523+
"total_time_lock": 650,
515524
"total_amt": 10000,
516525
"hops": [
517526
{
518527
"chan_id": 495879744192512,
519528
"chan_capacity": 1000000,
520-
"amt_to_forward": 10000
529+
"amt_to_forward": 10000,
530+
"expiry": 650,
531+
"amt_to_forward_msat": 10000000
521532
}
522-
]
533+
],
534+
"total_amt_msat": 10000000
523535
}
524536
}
525537
@@ -594,7 +606,9 @@ btcctl --simnet --rpcuser=kek --rpcpass=kek generate 1
594606
# channel. Recall that Bob previously had no on-chain Bitcoin:
595607
alice$ lncli-bob walletbalance
596608
{
597-
"balance": "20001"
609+
"total_balance": "20001",
610+
"confirmed_balance": "20001",
611+
"unconfirmed_balance": "0"
598612
}
599613
```
600614

0 commit comments

Comments
 (0)