2019-08-15 15:28:25 +03:00
2019-08-14 16:24:45 +03:00
2019-07-22 16:42:23 +03:00
2019-08-15 15:28:25 +03:00
2019-07-22 16:42:23 +03:00
2019-07-22 16:42:23 +03:00

lspd simple server

This is a simple example of an lspd server that works with an lnd node.

This server exposes LSP services to the Breez client.

Installation

  1. git clone https://github.com/breez/lspd (or fork)
  2. Modify the code in server.go if you use different values than the recommeded values when opening channels:
  • ChannelCapacity: channel capacity is sats, defined in the channelAmount const (recommended: 1000000).
  • TargetConf: the number of blocks that the funding transaction should confirm in, will be used for fee estimation (recommended: 0).
  • MinHtlcMsat: the channel_reserve value in sats (recommended: 1000000).
  • BaseFeeMsat: base tx fee in msats (recommended: 1000).
  • FeeRate: fee rate (recommended: 0.000001).
  • TimeLockDelta: the minimum number of blocks this node requires to be added to the expiry of HTLCs (recommended: 144).
  1. Compile lspd using go build .
  2. Define the environment variables as described in sample.env:
  3. Run lspd
  4. Share with Breez the TOKEN and the LISTEN_ADDRESS you defined

Implement your own server

You can create your own server by implementing the grpc methods described here.

Description
No description provided
Readme MIT 1,001 KiB
Languages
Go 97.5%
Shell 2.4%
Makefile 0.1%