-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
chanfunding: improve sanityCheckFee error message for clarity #9219
chanfunding: improve sanityCheckFee error message for clarity #9219
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.
Argh, it looks like some unit tests match on the error message:
--- FAIL: TestCoinSelectUpToAmount (0.00s)
--- FAIL: TestCoinSelectUpToAmount/high_fee (0.00s)
coin_select_test.go:887:
Error Trace: /home/runner/work/lnd/lnd/lnwallet/chanfunding/coin_select_test.go:887
Error: Error message not equal:
expected: "fee 0.00000192 BTC on total output value 0.00000768 BTC"
actual : "fee (0.00000192 BTC) exceeds 20% of total output (0.00000768 BTC)"
Test: TestCoinSelectUpToAmount/high_fee
Perhaps we should instead focus on #8600, which also makes this fraction configurable?
Haha ok, I was briefly looking at the test, but didn't see that. Well, you are right with focusing on #8600. Since I have no idea how long that takes, let me know if a quick/dirty fix for the test is wanted. |
Yeah, a quick fix to lnd/lnwallet/chanfunding/coin_select_test.go Line 414 in e99e666
make unit pkg=lnwallet/chanfunding to test, since that was the only package that failed).
|
Important Review skippedAuto reviews are limited to specific labels. 🏷️ Labels to auto review (1)
Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Alright, should be good to go now. (sry for so many commits, doing this on github webinterface 😂 and it cant amend commits in here...) |
Approved CI run. But we usually don't merge with squash. So would be great if you could squash the commits into one using the command line (or something else than the UI). |
cb397c3
to
16c0ce4
Compare
Linter failing. You can check locally with |
b482894
to
60e7ac9
Compare
…ate coin_select_test accordingly
60e7ac9
to
7b5b92f
Compare
Alright, now I understand the indentation logic, I misunderstood the "8 char" info I read somewhere... Linter passes now. |
I was confused about this error msg, so I suggest this rewording.