This repository contains:
-
/
: Client side html/javascript to generate alncli
order command. This page can be displayed offline if desired. It is currently hosted at https://tlvshop.com. -
/acceptor
: A tool that interfaces with yourlnd
node and makes sure that only payments above a set value are accepted.
-
In order to use the acceptor, you need to run
lnd v0.11.0-beta
built withtags="invoicesrpc"
. This will include Interactive keysend acceptance. -
Start
lnd
with--accept-keysend --keysend-hold-time=10s
. The keysend hold time specifies how longlnd
should hold on to the payment before automatically cancelling. During this time frame, the acceptor has the time to decide what to do with the payment (cancel immediately or settle). -
Build and run
acceptor
. A command line flag--minamt
can be used to specifiy the minimum amount to accept. Theacceptor
can easily be extended to not only verify the amount, but also check for example the inventory before accepting.