Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't do multi-hop micropayment #116

Closed
takaya-imai opened this issue Jan 24, 2017 · 2 comments
Closed

Can't do multi-hop micropayment #116

takaya-imai opened this issue Jan 24, 2017 · 2 comments

Comments

@takaya-imai
Copy link

I try to do multi-hop micropayment.
Lightningd already implemented multi-hop?

$ ./lightning/daemon/lightningd --version
v0.5.2-2016-11-21-146-g1c49af7
aka. Bitcoin Savings & Trust Daily Interest II
Built with:
@takaya-imai
Copy link
Author

getroute returns a route to a destination node but sendpay returns "no connection".

$ lightning-cli getroute 0261...c29a 10000 1
{ "route" : 
	[ 
		{ "id" : "035d...9339", "msatoshi" : 10001, "delay" : 72 }, 
		{ "id" : "0261...c29a", "msatoshi" : 10000, "delay" : 36 } ] }
$ lightning-cli sendpay '[ { "id" : "0261...c29a", "msatoshi" : 10000, "delay" : 36 } ]' 7572...01f98
"no connection to first peer found"

@takaya-imai takaya-imai changed the title How could I do multi-hop micropayment? Can't do multi-hop micropayment Jan 24, 2017
@takaya-imai
Copy link
Author

I changed sendpay parameters as follows then I could send micropayment to the destination node by multi-hop.

$ lightning-cli sendpay '[{"id":"035d...339", "msatoshi":5001,"delay":72 },{"id":"0261...c29a", "msatoshi":5000,"delay":36 }]' ce31...f2b8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant