Lightning: how to eliminate "hop_hints" from a generated invoice

Created on 11 Feb 2019  路  2Comments  路  Source: ElementsProject/lightning

I tried to generate a twitter friendly invoice the other day (less than 280 characters) but due to the "hop_hints" the char count was more than that. my question is how I can eliminate the hop_hints from the invoice hash? I read the man entry for "invoice" command but it didn't have such option

getinfo output

v0.6.3
feature invoice question

Most helpful comment

Hey, thanks for the bug report!

I never thought of this! Hmm, there's a developer-only option in master called dev-routes which you can use to override the normal heuristics, eg. 'dev-routes=[]'. But I never thought of a normal option to do this...

Yech, you could restart with --offline, generate the invoice, then restart without. That will work, but it's damn clumsy!

All 2 comments

Hey, thanks for the bug report!

I never thought of this! Hmm, there's a developer-only option in master called dev-routes which you can use to override the normal heuristics, eg. 'dev-routes=[]'. But I never thought of a normal option to do this...

Yech, you could restart with --offline, generate the invoice, then restart without. That will work, but it's damn clumsy!

Great, thanks for the --offline tip. didn't know it is possible to start offline.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

SPIRY-RO picture SPIRY-RO  路  4Comments

brunoaduarte picture brunoaduarte  路  5Comments

AndiMacTen picture AndiMacTen  路  3Comments

brunoaduarte picture brunoaduarte  路  4Comments

softgear picture softgear  路  4Comments