-
Notifications
You must be signed in to change notification settings - Fork 901
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
suggestion to fix the missing number of confirmations in static void billboard_update(const struct peer *peer) #1780
Comments
The 6 confirmations is only relevant for the channel announcement and serves as a lower bound on the confirmations needed before others will accept a |
I took the liberty of assigning you :-) |
I tried to fix this. However two problems: 1.) the code looks ugly and I am sure this can be done in a better way? if we used lightning/lightningd/peer_control.h Line 19 in 641b333
here is what the code would look like IF there was an
|
This can be closed via #2405 . |
looking at #1778 I found this FIXME tag:
lightning/channeld/channel.c
Line 177 in d3edfc8
it asks to make the message for the user more specific by stating how many more confirmations of the funding tx have to happen so that the channel can be used. Afaik the funding tx has to have 6 confirmations. Since I was interacting a lot with the
lightningd.sqlite3
I wonder if something along the following line of pseudocode would actually fix this issue:It seems ugly to me to resolve this via the database and db queries. On the other hand - as a newbe - this is currently the only way I am aware of to gather the necessary information. Hence before providing the patch based on the sql solution I wanted to ask if that would be ok or if there is some preferable way of gathering this information?
The text was updated successfully, but these errors were encountered: