-
Notifications
You must be signed in to change notification settings - Fork 906
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
bcli: don't get upset at 0-value outputs #3605
Conversation
Maybe we should also filter out 0-value outputs in
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We made a deliberate choice to expose all values in msat; older values can be deprecated at some stage. We were doing a lot of deprecating at the time, so we chose not to do it then.
Creating this function is dangerous; we should instead allow '0msat' to do what we expect in parse_amount_sat.
Ok, amended to modify |
No, that's wrong too! parse_amount_sat() should accept msat amounts which end in 000, OR a literal 0. All it cares
|
Commited your patch.. fixes #3610 |
Changelog-fixed: bcli now handles 0msat outputs in gettxout. Co-authored-by: Rusty Russell <rusty@rustcorp.com.au>
👍 Let’s get this merged? Seems to be quite a major issue, I’m not sure how it doesn’t show up more often. |
Because you don't often see 0-value channel outputs on mainnet...
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
Le mardi, mars 31, 2020 12:41 AM, Kirill Elagin <notifications@github.com> a écrit :
… 👍
Let’s get this merged? Seems to be quite a major issue, I’m not sure how it doesn’t show up more often.
—
You are receiving this because you authored the thread.
Reply to this email directly, [view it on GitHub](#3605 (comment)), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/AFLK3F6XFSOPJJ7G2AYGCFLRKENYXANCNFSM4LTMQYXA).
|
Btw, maybe not the best way to ask for progress. |
Oh yeah, we’ve been running it since yesterday, everything is good so far. It’s just that this fix is an obvious improvement in that it definitely does not make things worse, and, as I said, I think the issue is quite severe (a crash), so I don’t see reasons not to merge it right away. |
Thanks everyone! This was my thinko in the first place, of course! |
Calling
bitcoind_getutxo()
on testnet transaction https://blockstream.info/testnet/tx/eca4cefef2a98de5df67a6630c63af5a72ab57583e0f3bf066d976f28213f447?expand crashed my node.EDIT: found another one https://blockstream.info/testnet/tx/21f95a5dd990e9caba09cbafe73514d9322bd8d28d70204dd2b5cce5c9c3f2a8 ^^
Fixes #3610