Bitcoin Core Github
44 subscribers
120K links
Download Telegram
πŸ’¬ polespinasa commented on pull request "wallet, rpc: Settxfeerate":
(https://github.com/bitcoin/bitcoin/pull/31278#discussion_r1838754885)
Avoid incompatibility problems with programs actually using this RPC call.
πŸ’¬ polespinasa commented on pull request "wallet, rpc: Settxfeerate":
(https://github.com/bitcoin/bitcoin/pull/31278#discussion_r1838755718)
it's what it's suggested on https://github.com/bitcoin/bitcoin/issues/31088
πŸ’¬ polespinasa commented on pull request "wallet, rpc: Settxfeerate":
(https://github.com/bitcoin/bitcoin/pull/31278#discussion_r1838756057)
copy paste for a template, I will update it
πŸ’¬ ismaelsadeeq commented on pull request "Refactor BnB tests":
(https://github.com/bitcoin/bitcoin/pull/29532#discussion_r1838735560)
After this PR, we will have two coin selection test files. Is there a reason why?
Wouldn't it be better to add a commit that renames `coinselector_tests` to `coinselection_tests` and modify the test name to `coinselection_tests`?
πŸ’¬ ismaelsadeeq commented on pull request "Refactor BnB tests":
(https://github.com/bitcoin/bitcoin/pull/29532#discussion_r1838729200)
In a8bf940ae20ed5a03a1cc328212fcac3c3462b43
A comment explaining why you selected these magic numbers would be helpful.
similar to `tx_noinputs_size` or an indication if they are just random.

but in initializing CSP, and some defaults in `MakeCoin`
πŸ’¬ ismaelsadeeq commented on pull request "Refactor BnB tests":
(https://github.com/bitcoin/bitcoin/pull/29532#discussion_r1838770918)
Since we are checking for Value equivalence, this can just be
`CheckValueEquivalence` for clarity
πŸ’¬ ismaelsadeeq commented on pull request "Refactor BnB tests":
(https://github.com/bitcoin/bitcoin/pull/29532#discussion_r1838771982)
```suggestion
auto ret = std::mismatch(a_amts.begin(), a_amts.end(), b_amts.begin());
```
πŸ’¬ ismaelsadeeq commented on pull request "cluster mempool: Implement changeset interface for mempool":
(https://github.com/bitcoin/bitcoin/pull/31122#discussion_r1838790179)
Ahh Makes sense
πŸ’¬ polespinasa commented on pull request "wallet, rpc: Settxfeerate":
(https://github.com/bitcoin/bitcoin/pull/31278#issuecomment-2471614064)
> Did you try to follow the approach suggested here: [#31088 (comment)](https://github.com/bitcoin/bitcoin/issues/31088#issuecomment-2413394142)? If not, can you say why it didn't work?

I would have to look deeper on how to do that.
But I don't see why it would be better than this approach. Deprecating here is easy and there will not be the need to modify code other than deleting the actual function.
πŸ€” ismaelsadeeq reviewed a pull request: "doc: mention `descriptorprocesspsbt` in psbt.md"
(https://github.com/bitcoin/bitcoin/pull/31277#pullrequestreview-2430761369)
Nice docs
ACK ebb6cd82baf8406454b18afcb8ccb4e1dde0d43e
πŸ€” ismaelsadeeq reviewed a pull request: "wallet, rpc: Settxfeerate"
(https://github.com/bitcoin/bitcoin/pull/31278#pullrequestreview-2430770541)
Nice fixing the ambiguity.

But generally, I’m rate Concept ~0 on setting static feerate for wallet transaction as a whole because of the current dynamic fee environment, it’s just a footgun.
It will make a transaction either pay too high or too low.

Feerate estimate from fee estimation algorithm should be used in most cases, and when that algorithm is deem inaccurate by users should they should pass the fee rate for each individual transaction.

We should lean towards deprecating this R
...
πŸ’¬ ismaelsadeeq commented on pull request "wallet, rpc: Settxfeerate":
(https://github.com/bitcoin/bitcoin/pull/31278#discussion_r1838822782)
Its weird that you change this line to s/vb in previous commit and then revert it back to `s/kvB` here.
πŸ’¬ ismaelsadeeq commented on pull request "wallet, rpc: Settxfeerate":
(https://github.com/bitcoin/bitcoin/pull/31278#discussion_r1838819668)
Should probably add a test for the utility of this, not just edge cases; i.e., set a fee rate, create a transaction, and verify that the fee rate matches.
πŸ’¬ ismaelsadeeq commented on pull request "wallet, rpc: Settxfeerate":
(https://github.com/bitcoin/bitcoin/pull/31278#discussion_r1838824308)
fix-ups should be squashed according to `contributing.md` guidelines.
πŸ’¬ polespinasa commented on pull request "wallet, rpc: Settxfeerate":
(https://github.com/bitcoin/bitcoin/pull/31278#discussion_r1838902865)
That was a mistake in the previous commit, as it's the ``settxfee`` function and not ``settxfeerate``.
πŸ’¬ kevkevinpal commented on pull request "test: create assert_not_equal util":
(https://github.com/bitcoin/bitcoin/pull/29500#issuecomment-2471793963)
rebased to [6590b26](https://github.com/bitcoin/bitcoin/pull/29500/commits/6590b267015ad094dfcbacad521c30207fe199bd)

and I can address your latest comments soon
πŸ’¬ polespinasa commented on pull request "wallet, rpc: Settxfeerate":
(https://github.com/bitcoin/bitcoin/pull/31278#issuecomment-2471842227)
> Feerate estimate from fee estimation algorithm should be used in most cases, and when that algorithm is deem inaccurate by users should they should pass the fee rate for each individual transaction.

I agree that the algorithm should be used in most cases, and actually that's how it's working according to the RPC call definition. By default it uses the dynamic fee so this is only an extra option to set a static fee in case anyone needs too.
https://github.com/bitcoin/bitcoin/blob/b96cfae733
...
πŸ’¬ polespinasa commented on pull request "wallet, rpc: Settxfeerate":
(https://github.com/bitcoin/bitcoin/pull/31278#discussion_r1839061111)
Good point, added!
πŸ’¬ fjahr commented on pull request "wallet, rpc: Settxfeerate":
(https://github.com/bitcoin/bitcoin/pull/31278#discussion_r1839068782)
That's what we have the `-deprecatedrpc` parameter for
πŸ’¬ fjahr commented on pull request "wallet, rpc: Settxfeerate":
(https://github.com/bitcoin/bitcoin/pull/31278#discussion_r1839069865)
This file didn't exist before 2024, so it should just say 2024