mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-08 08:34:31 +01:00
lightningd: simple wallet support.
This allows us to add funds via the P2SH-wrapped Segwit Transactions. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -30,6 +30,14 @@ lcli1 getpeers info | $FGREP "Exchanging gossip"
|
||||
lcli1 getpeers | $FGREP '"owner" : "lightningd_gossip"'
|
||||
lcli2 getpeers | $FGREP '"owner" : "lightningd_gossip"'
|
||||
|
||||
# Add some funds.
|
||||
set -x
|
||||
NEWADDR=`lcli1 newaddr | get_field address`
|
||||
FUND_INPUT_TXID=`$CLI sendtoaddress $NEWADDR 0.10000002`
|
||||
FUND_INPUT_TX=`$CLI getrawtransaction $FUND_INPUT_TXID`
|
||||
|
||||
lcli1 addfunds $FUND_INPUT_TX | $FGREP '"satoshis" : 10000002'
|
||||
|
||||
lcli1 stop
|
||||
lcli2 stop
|
||||
|
||||
|
||||
Reference in New Issue
Block a user