-
Notifications
You must be signed in to change notification settings - Fork 902
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
Db code cleanups #6128
Db code cleanups #6128
Conversation
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.
ACK 2be271d
This broke bookkeeper under postgres it seems? @niftynei ? |
Does #6141 fix this? |
Also thanks for this, we definitely needed to be reporting errors... |
2be271d
to
8271b4c
Compare
I've pulled it in, let's find out! |
Looks like the io return the wrong reference? this is happening also with lnprototest sometimese
|
Yeah, this happens if you shut down CLN while it's still waiting for connectd to start up. It's actually a real bug, but it's ok since we're shutting down anyway. We just don't do it gracefully!! |
Reported-By: @rustyrussell Changelog-Fixed: Plugins: `bookkeeper` onchain fees calculation was incorrect with PostgresQL.
I couldn't figure out why my new SQL query was returning 0 rows, and it was because we were ignoring errors. Signed-off-by: Rusty Russell <[email protected]>
It calls db_fatal() if it fails anyway, so don't expect anyone to check. Signed-off-by: Rusty Russell <[email protected]>
Signed-off-by: Rusty Russell <[email protected]>
8271b4c
to
2f49be0
Compare
No code changes, just some cleanups.