-
Notifications
You must be signed in to change notification settings - Fork 105
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
trustedcoin: 0.7.0 -> 0.8.0 #717
trustedcoin: 0.7.0 -> 0.8.0 #717
Conversation
CC: @jonasnick @erikarvstedt , should be ready for review |
Thanks @seberm. I get the following error:
|
The pkg build works when applied on top of #718 (
|
Hello @erikarvstedt , The strange error is the missing python3 binary for the wss-proxy plugin:
Support for the wss-proxy plugin was merged in CLN v24.05, and it has its own extra dependencies. Perhaps we should try to fix this error in the CLN upstream first (@prusnak)? Then, we can add support for the wss-proxy configuration into the I am not sure whether the wss-proxy error could be related to the second error in any way:
@fiatjaf, could you please help investigate whether this might be a bug in trustedcoin? Thanks |
@1ma do you understand this? |
Yes, looks like a bug in trustedcoin, I'll try to fix it. It should never be sending |
Pushed a fix and released as v0.8.1. What is this In any case if there is no bitcoind configured and you can't reach any of the hardcoded Esplora servers everything will crash, there is no other way. Do you have an idea on why all the calls to Esploras failed in the test? |
Yes, I think the problem is in this line. https://github.com/nbd-wtf/trustedcoin/blob/726f07e6dbf684e0219b6615b4ceb169877ee802/main.go#L136 The plugin returns the serialization of an empty EstimatedFees struct. Since all its fields are bcli.c has a predefined response for when it fails to fetch estimates, trustedcoin should also do that. https://github.com/ElementsProject/lightning/blob/1e1d072b65a343d4818e92bb83e2f73b849f050f/plugins/bcli.c#L490 Btw, issue tracked here nbd-wtf/trustedcoin#29 |
@fiatjaf ok, seen the hotfix. Changing the definition of the struct fields from When fees are not available the plugin should answer |
@seberm The If the Python interpreter is not installed (or the dependencies they need) the plugins don't initialize, but this has nothing to do with trustedcoin, which is a native binary written in Golang. You can read this Dockerfile to understand how to set up python so that these plugins can run (it only prepares |
It won't happen because we check first if the values were correctly returned from bitcoind and otherwise fallback to Esplora. Also returning
No, it should not, returning a known wrong value will just cause channels to close like crazy. Is this weird recommendation written somewhere? |
I understand this is what the normal |
The empty EstimatedFees struct in main.go is precisely for the case when the Esplora fetch fails. And I believe Esplora queries are failing more often than they should right now because the This would be a different bug. |
Nice catch, I've pushed a fix, but the error on the log above was different, it was the error message that happens when the full loop has been completed. |
Hello @fiatjaf , could you please push the new trustedcoin release tags? From your commits I suppose you have released Thanks! |
Oh, sorry, I thought I had done that. |
a63d80b
to
e5dfa05
Compare
Hello @erikarvstedt , to problem seems to be fixed with trustedcoin
Thanks. |
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 e5dfa05
No description provided.