This repository contains:
-
/: Client side html/javascript to generate alncliorder command. This page can be displayed offline if desired. It is currently hosted at https://tlvshop.com. -
/acceptor: A tool that interfaces with yourlndnode 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-betabuilt withtags="invoicesrpc". This will include Interactive keysend acceptance. -
Start
lndwith--accept-keysend --keysend-hold-time=10s. The keysend hold time specifies how longlndshould 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--minamtcan be used to specifiy the minimum amount to accept. Theacceptorcan easily be extended to not only verify the amount, but also check for example the inventory before accepting.