mit-dci / lit

Lightning Network node software
MIT License
551 stars 119 forks source link

Initial version of the pay command #283

Closed gertjaap closed 6 years ago

gertjaap commented 6 years ago

This is a first implementation of the pay command described in #234

You simply say pay [ln address] [coin type] [amount] [data]

The node will look for an existing channel to the given address and enough capacity. If found, it will execute a regular push. If this isn't found, we will ask the given node for an on-chain address and then send funds from our wallet to that on-chain address via a regular on-chain transaction.

gertjaap commented 6 years ago

@metalicjames Would it make sense to update this to include your multihop command once it's merged? So that it would do a multi-hop payment if possible, and if not fall back to the on-chain payment?

gertjaap commented 6 years ago

Will resubmit this PR once multihop is in.