2
2
3
3
# --- INITIAL SETUP
4
4
5
- # Only nightly cargo supports installing binary bundles
6
- rustup add nigtly
7
- rustup update nigtly
8
- # This installs all 4 LNP/BP nodes at onc
9
- cargo +nightly -Z bindeps install lnpbp_nodes --version 0.8.0-rc.1
10
- # This installs a dozen of command-line tools for working with LNP/BP stack
11
- cargo +nightly -Z bindeps install lnpbp-cli --version 0.8.0-rc.1
5
+ # Run separate install script
6
+ ./install.sh
12
7
13
8
DIR=~ /.demo # Replace with the desired location
14
9
@@ -27,11 +22,18 @@ btc-cold check ${WALLET}
27
22
# Note the transaction outputs and save them to these variables
28
23
UTXO_ISSUE=" <txid>:<vout>"
29
24
UTXO_CHANGE=" <txid>:<vout>"
25
+ # Find your wallet's testnet xprv (it's in black text for dark theme terminal users)
26
+ btc-hot -P info ${DIR} /testnet.seed
27
+ # Initialize lnpd with your hot wallet xprv
28
+ lnpd -vvv --network testnet init
30
29
31
30
tmux new-session -d -s store stored -vvv
32
31
tmux new-session -d -s lnp lnpd -vvv --network testnet
33
32
tmux new-session -d -s rgb rgbd -vvv --network testnet
34
- tmux new-session -d -s storm storm -vvv --chat --downpour
33
+ tmux new-session -d -s storm stormd -vvv --chat --downpour --msg ~ /.lnp_node/testnet/msg
34
+ # -OR- run all the daemons within the same terminal (processes must be exited using process manager)
35
+ # Note: Try all these commands separately first to ensure they can run
36
+ stored -vvv & lnpd -vvv --network testnet & rgbd -vvv --network testnet & stormd -vvv --chat --downpour --msg ~ /.lnp_node/testnet/msg &
35
37
36
38
# --- CONTRACT ISSUANCE
37
39
@@ -49,10 +51,8 @@ rgb-cli -n testnet contract state ${CONTRACT_ID}
49
51
# ----------------------------------------------------------
50
52
# Go to a remote server / other machine and do the following
51
53
52
- rustup add nigtly
53
- rustup update nigtly
54
- cargo +nightly -Z bindeps install lnpbp_nodes --version 0.8.0-rc.1
55
- cargo +nightly -Z bindeps install lnpbp-cli --version 0.8.0-rc.1
54
+ # Run separate install script
55
+ ./install.sh
56
56
57
57
DIR=~ /.demo # Replace with the desired location
58
58
@@ -67,6 +67,10 @@ btc-cold address ${DIR}/testnet2.wallet
67
67
btc-cold check ${DIR} /testnet2.wallet
68
68
# Note the first transaction output and save it to variable
69
69
UTXO=" <txid>:<vout>"
70
+ # Find your wallet's testnet xprv (it's in black text for dark theme terminal users)
71
+ btc-hot -P info ${DIR} /testnet.seed
72
+ # Initialize lnpd with your hot wallet xprv
73
+ lnpd -vvv --network testnet init
70
74
71
75
tmux new-session -d -s store stored -vvv
72
76
tmux new-session -d -s lnp lnpd -vvv --network testnet --listen-all --bifrost
@@ -136,7 +140,8 @@ rgb psbt analyze ${PSBT}
136
140
# data, the txid of the witness transaction is final.
137
141
# Now we can finalize the consignment by adding the anchor information to it
138
142
# referencing this txid.
139
- # We also instruct the daemon to send the consignment to the beneficiaty LN node.
143
+ # We also instruct the daemon to send the consignment to the beneficiary LN node.
144
+ # If done on the same system (a self-payment), the --send argument can be omitted.
140
145
rgb-cli -n testnet transfer finalize --endseal ${TXOB} ${PSBT} ${CONSIGNMENT} --send
141
146
142
147
# Those who interested can look into the transfer consignment
@@ -148,7 +153,6 @@ rgb consignment inspect ${CONSIGNMENT}
148
153
rgb consignment validate ${CONSIGNMENT}
149
154
150
155
# Lets finalize, sign & publish the witness transaction
151
- dbc commit ${PSBT}
152
156
btc-hot sign ${PSBT} ${DIR} /testnet
153
157
btc-cold finalize --publish testnet ${PSBT}
154
158
0 commit comments