Browse Source

Merge pull request #1 from lncm/master

updates by @nolim1t
patch-1
Mayank Chhabra 5 years ago
committed by GitHub
parent
commit
237dd81f29
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 12
      LICENSE
  2. 1
      bitcoin/bitcoin.conf
  3. 7
      contrib/README.md
  4. 24
      contrib/keysend/keysend.sh
  5. 7
      docker-compose.yml
  6. 2
      lnd/lnd.conf

12
LICENSE

@ -22,3 +22,15 @@ ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
For more information, please refer to <https://unlicense.org>
#### ENDS LICENSE
### Add the below to any code (commented obviously)
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
# IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
# OTHER DEALINGS IN THE SOFTWARE.

1
bitcoin/bitcoin.conf

@ -10,7 +10,6 @@ blocksonly=1
maxconnections=8
dbcache=1000
maxmempool=512
maxconnections=40
maxuploadtarget=5000
port=8333

7
contrib/README.md

@ -0,0 +1,7 @@
# User contributed utilities
## Utility Register
* keysend/ - Experimental Keysend functionality

24
contrib/keysend/keysend.sh

@ -0,0 +1,24 @@
#!/bin/bash
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
# IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
# OTHER DEALINGS IN THE SOFTWARE.
if [ $# -eq 2 ]; then
DEST=$1
AMT=$2
CMD="docker exec -it lncm_lnd_1 lncli sendpayment"
FULLCMD="${CMD} --keysend ${DEST} ${AMT}"
RESULT=`${FULLCMD}`
echo $RESULT
else
echo "usage ${0} <pubkey> <amt>"
fi

7
docker-compose.yml

@ -17,8 +17,9 @@ services:
- ${HOME}/nginx:/etc/nginx
restart: on-failure
network_mode: host
stop_grace_period: 30s
bitcoin:
image: lncm/bitcoind:v0.19.0.1
image: lncm/bitcoind:v0.19.1
logging: *default-logging
volumes:
- ${HOME}/bitcoin:/root/.bitcoin
@ -26,8 +27,9 @@ services:
- ${HOME}/bitcoin:/data/bitcoin
restart: on-failure
network_mode: host
stop_grace_period: 2m30s
lnd:
image: lncm/lnd:v0.9.1-root-experimental
image: lncm/lnd:v0.9.2-root-experimental
logging: *default-logging
volumes:
- ${HOME}/lnd:/data/.lnd
@ -37,6 +39,7 @@ services:
restart: on-failure
depends_on: [ bitcoin, web ]
network_mode: host
stop_grace_period: 1m30s
invoicer:
image: "lncm/invoicer:v0.6.6"
depends_on: [ bitcoin, lnd ]

2
lnd/lnd.conf

@ -7,6 +7,8 @@ maxpendingchannels=3
minchansize=10000
alias=LNCM Default Box
color=#ffe200
; 0.9.X keysend functionality
accept-keysend=true
; Makes routing faster but have to use images built with experimental tag
[Routing]

Loading…
Cancel
Save