Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
toneloc authored Oct 5, 2024
1 parent cf9470d commit e8722f0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ Clone the repo and open it in two windows.
1. <b>Start up the app.</b> Run ``cargo --features user`` in one window and ``cargo --features lsp`` in the other.
2. <b>Get some test BTC</b> Run ``getaddress`` in the user window. Go to https://faucet.mutinynet.com/ and send some test sats to that address. Run ``balance`` in the user window and wait until your BTC shows up in there.
3. <b>Open the Stable Channel</b> Open a channel ``openchannel [NODE_ID] [LISTENING_ADDRESS] [SATS_AMOUNT]``. Then run ``listallchannels`` check if "channel_ready" equals "true." Will take 6 confirmations or a minute or two.
4. <b>Start the Stable Channel for both users</b> In the user window, run the command: ``user startstablechannel CHANNEL_ID IS_STABLE_RECEIVER EXPECTED_DOLLAR_AMOUNT EXPECTED_BTC_AMOUNT`` or: ``user startstablechannel cca0a4c065e678ad8aecec3ae9a6d694d1b5c7512290da69b32c72b6c209f6e2 true 100.0 0`` In the lsp window, run the command: ``user startstablechannel CHANNEL_ID IS_STABLE_RECEIVER EXPECTED_DOLLAR_AMOUNT EXPECTED_BTC_AMOUNT`` or: ``user startstablechannel cca0a4c065e678ad8aecec3ae9a6d694d1b5c7512290da69b32c72b6c209f6e2 false 100.0 0`` This command means "Make the channel with ID cca0a... a stable channel with a value of $100.0 and 0 native bitcoin, where it is true (or false) that I am the stable receiver."
4. We need to set Bolt12 offers for each side so they can pay each other. In both windows, run ``getouroffer``. Then copy that and run ``settheiroffer [OFFER]`` in both windows.
5. <b>Start the Stable Channel for both users</b> In the user window, run the command: ``user startstablechannel CHANNEL_ID IS_STABLE_RECEIVER EXPECTED_DOLLAR_AMOUNT EXPECTED_BTC_AMOUNT`` or: ``user startstablechannel cca0a4c065e678ad8aecec3ae9a6d694d1b5c7512290da69b32c72b6c209f6e2 true 100.0 0`` In the lsp window, run the command: ``user startstablechannel CHANNEL_ID IS_STABLE_RECEIVER EXPECTED_DOLLAR_AMOUNT EXPECTED_BTC_AMOUNT`` or: ``user startstablechannel cca0a4c065e678ad8aecec3ae9a6d694d1b5c7512290da69b32c72b6c209f6e2 false 100.0 0`` This command means "Make the channel with ID cca0a... a stable channel with a value of $100.0 and 0 native bitcoin, where it is true (or false) that I am the stable receiver."


This basic process works as follows:
Expand Down

0 comments on commit e8722f0

Please sign in to comment.