💬 darosior commented on pull request "descriptors: do not return top-level only funcs as sub descriptors":
(https://github.com/bitcoin/bitcoin/pull/28067#discussion_r1269418215)
This is unnecessary? It would be returned as such at the end of the function. And not as `raw()` as in your test, but as an actual address.
(https://github.com/bitcoin/bitcoin/pull/28067#discussion_r1269418215)
This is unnecessary? It would be returned as such at the end of the function. And not as `raw()` as in your test, but as an actual address.
💬 vasild commented on pull request "test: add end-to-end tests for CConnman and PeerManager":
(https://github.com/bitcoin/bitcoin/pull/26812#issuecomment-1643919170)
`612ba17fca...55c84c2d3b`: rebase due to conflicts plus reduce the changes to `DebugLogHelper`: https://github.com/bitcoin/bitcoin/pull/26812#discussion_r1263332063.
(https://github.com/bitcoin/bitcoin/pull/26812#issuecomment-1643919170)
`612ba17fca...55c84c2d3b`: rebase due to conflicts plus reduce the changes to `DebugLogHelper`: https://github.com/bitcoin/bitcoin/pull/26812#discussion_r1263332063.
📝 darosior opened a pull request: "descriptor: do not parse from script unspendable Miniscript descriptors"
(https://github.com/bitcoin/bitcoin/pull/28112)
https://github.com/bitcoin/bitcoin/pull/27997 but for Script parsing.
I've added a test demonstrating the behaviour despite the descriptor parsing also currently being incorrect (`wsh(raw())`, see #28067). I guess whichever comes after the other between this PR and #28067 would be trivial to rebase on to fix it.
(https://github.com/bitcoin/bitcoin/pull/28112)
https://github.com/bitcoin/bitcoin/pull/27997 but for Script parsing.
I've added a test demonstrating the behaviour despite the descriptor parsing also currently being incorrect (`wsh(raw())`, see #28067). I guess whichever comes after the other between this PR and #28067 would be trivial to rebase on to fix it.
💬 darosior commented on pull request "descriptor: do not parse from script unspendable Miniscript descriptors":
(https://github.com/bitcoin/bitcoin/pull/28112#issuecomment-1643924292)
Actually i'm not even sure we'd like to do this, as i don't see how it could be a footgun for a user.
(https://github.com/bitcoin/bitcoin/pull/28112#issuecomment-1643924292)
Actually i'm not even sure we'd like to do this, as i don't see how it could be a footgun for a user.
💬 vasild commented on pull request "test: add end-to-end tests for CConnman and PeerManager":
(https://github.com/bitcoin/bitcoin/pull/26812#discussion_r1269461760)
Changed to use `std::abort()` in the destructor. Reverted to the original interface:
```cpp
{
ASSERT_DEBUG_LOG("expected message");
produce log messages;
}
```
The change was necessary in order to pass the timeout to the "final check or abort" function which was the destructor and there is no way to pass parameters to the destructor. Anyway, now I pass the timeout to the constructor, save it in a member variable and use it in the destructor. With the wait it is now:
```cpp
...
(https://github.com/bitcoin/bitcoin/pull/26812#discussion_r1269461760)
Changed to use `std::abort()` in the destructor. Reverted to the original interface:
```cpp
{
ASSERT_DEBUG_LOG("expected message");
produce log messages;
}
```
The change was necessary in order to pass the timeout to the "final check or abort" function which was the destructor and there is no way to pass parameters to the destructor. Anyway, now I pass the timeout to the constructor, save it in a member variable and use it in the destructor. With the wait it is now:
```cpp
...
💬 theuni commented on issue "build: Windows debug cross-build fails with `-O0`":
(https://github.com/bitcoin/bitcoin/issues/28109#issuecomment-1643929479)
Ping @achow101.
Being unable to build with `-O0` is not a big deal.
However, that means we're relying on compiler optimizations to reduce the code size first in order for tools to be able to process them with sane defaults. Breaking up `wallet.cpp` somewhat is prudent, imo.
(https://github.com/bitcoin/bitcoin/issues/28109#issuecomment-1643929479)
Ping @achow101.
Being unable to build with `-O0` is not a big deal.
However, that means we're relying on compiler optimizations to reduce the code size first in order for tools to be able to process them with sane defaults. Breaking up `wallet.cpp` somewhat is prudent, imo.
💬 hebasto commented on pull request "Use `int32_t` type for most transaction size/weight values":
(https://github.com/bitcoin/bitcoin/pull/23962#issuecomment-1643930500)
> This causes warnings when compiling for 32 bit?
> > This causes warnings when compiling for 32 bit?
>
> @hebasto did you end up looking into this?
I apologise for forgetting to mention that #28059 addresses that warnings.
(https://github.com/bitcoin/bitcoin/pull/23962#issuecomment-1643930500)
> This causes warnings when compiling for 32 bit?
> > This causes warnings when compiling for 32 bit?
>
> @hebasto did you end up looking into this?
I apologise for forgetting to mention that #28059 addresses that warnings.
💬 darosior commented on pull request "descriptor: do not parse from script unspendable Miniscript descriptors":
(https://github.com/bitcoin/bitcoin/pull/28112#issuecomment-1643932769)
Closing this, sorry for the noise. I don't think it is useful to forbid parsing a Miniscript descriptor from Script since it cannot be a footgun for end user and it's always better to parse a Miniscript, even though unspendable, than a raw Script to be displayed in some utilities (such as `decodescript` for instance).
(https://github.com/bitcoin/bitcoin/pull/28112#issuecomment-1643932769)
Closing this, sorry for the noise. I don't think it is useful to forbid parsing a Miniscript descriptor from Script since it cannot be a footgun for end user and it's always better to parse a Miniscript, even though unspendable, than a raw Script to be displayed in some utilities (such as `decodescript` for instance).
✅ darosior closed a pull request: "descriptor: do not parse from script unspendable Miniscript descriptors"
(https://github.com/bitcoin/bitcoin/pull/28112)
(https://github.com/bitcoin/bitcoin/pull/28112)
💬 hebasto commented on pull request "refactor: Make more transaction size variables `int32_t`":
(https://github.com/bitcoin/bitcoin/pull/28059#issuecomment-1643933181)
> Not sure. The other types are 64 bit, so this will overflow eventually
> Are you still working on this?
Since the recent push the `totalSizeWithAncestors` is `int64_t`.
(https://github.com/bitcoin/bitcoin/pull/28059#issuecomment-1643933181)
> Not sure. The other types are 64 bit, so this will overflow eventually
> Are you still working on this?
Since the recent push the `totalSizeWithAncestors` is `int64_t`.
💬 darosior commented on pull request "Wallet: estimate the size of signed inputs using descriptors":
(https://github.com/bitcoin/bitcoin/pull/26567#discussion_r1269467464)
This is not true if the Miniscript descriptor was parsed from Script. I'll update this.
(https://github.com/bitcoin/bitcoin/pull/26567#discussion_r1269467464)
This is not true if the Miniscript descriptor was parsed from Script. I'll update this.
💬 furszy commented on pull request "bumpfee: Allow the user to choose which output is change":
(https://github.com/bitcoin/bitcoin/pull/26467#discussion_r1269467782)
@whitslack yes. That would be an ugly outcome. We could have fixed the RPC docs here.
Would say to work towards #27601 to fix this scenario (and others) properly.
This issue comes from a workaround code that avoids the dup change outputs bug. Basically, the change output is manually discarded from the recipients list and expected to be re-added later, with the new fees subtracted, by the inner transaction creation process logic.
With #27601, we will be able to specify the output to reduce
...
(https://github.com/bitcoin/bitcoin/pull/26467#discussion_r1269467782)
@whitslack yes. That would be an ugly outcome. We could have fixed the RPC docs here.
Would say to work towards #27601 to fix this scenario (and others) properly.
This issue comes from a workaround code that avoids the dup change outputs bug. Basically, the change output is manually discarded from the recipients list and expected to be re-added later, with the new fees subtracted, by the inner transaction creation process logic.
With #27601, we will be able to specify the output to reduce
...
💬 pinheadmz commented on pull request "test: Add unit & functional test coverage for blockstore":
(https://github.com/bitcoin/bitcoin/pull/27850#issuecomment-1643935993)
@MarcoFalke @furszy @ryanofsky thanks for the reviews, latest push addresses all comments except where noted.
(https://github.com/bitcoin/bitcoin/pull/27850#issuecomment-1643935993)
@MarcoFalke @furszy @ryanofsky thanks for the reviews, latest push addresses all comments except where noted.
👍 ryanofsky approved a pull request: "wallet: Filter-out "send" addresses from `listreceivedby*`"
(https://github.com/bitcoin/bitcoin/pull/25973#pullrequestreview-1539294064)
Code review ACK 62880a9bb167bc0569175d597a865e6baccce71b, but this needs to be rebased due to a silent conflict with #27217. This seems like a helpful fix and the test cleanup is also nice.
Another suggestion if you feel like it would be to add the new test before making the code change and have it verify the previous behavior. Then fix the bug and update the test in the same commit, so it is easier to see how behavior changes in the diff.
(https://github.com/bitcoin/bitcoin/pull/25973#pullrequestreview-1539294064)
Code review ACK 62880a9bb167bc0569175d597a865e6baccce71b, but this needs to be rebased due to a silent conflict with #27217. This seems like a helpful fix and the test cleanup is also nice.
Another suggestion if you feel like it would be to add the new test before making the code change and have it verify the previous behavior. Then fix the bug and update the test in the same commit, so it is easier to see how behavior changes in the diff.
💬 ryanofsky commented on pull request "wallet: Filter-out "send" addresses from `listreceivedby*`":
(https://github.com/bitcoin/bitcoin/pull/25973#discussion_r1269477246)
In commit "wallet: Filter-out "send" addresses from `listreceivedby*`" (ce7fc736576664701b09bea811d77113948c38bb)
It like it would be better to call IsMine here instead of relying on the purpose field. The PR description says this fix only covers the include_empty=true, include_watchonly=true case, not the include_watchonly=false case, so maybe you could fix both cases by using the `isminetype` result returned by `IsMine` instead of purpose == "send".
Also, I'm not 100% sure about this, an
...
(https://github.com/bitcoin/bitcoin/pull/25973#discussion_r1269477246)
In commit "wallet: Filter-out "send" addresses from `listreceivedby*`" (ce7fc736576664701b09bea811d77113948c38bb)
It like it would be better to call IsMine here instead of relying on the purpose field. The PR description says this fix only covers the include_empty=true, include_watchonly=true case, not the include_watchonly=false case, so maybe you could fix both cases by using the `isminetype` result returned by `IsMine` instead of purpose == "send".
Also, I'm not 100% sure about this, an
...
👍 ryanofsky approved a pull request: "test: miner: add coverage for `-blockmintxfee` setting"
(https://github.com/bitcoin/bitcoin/pull/27620#pullrequestreview-1539327933)
Code review ACK bbbb89d238e9bdaa9f426d55b0a3b714dac1d39b, nice test
(https://github.com/bitcoin/bitcoin/pull/27620#pullrequestreview-1539327933)
Code review ACK bbbb89d238e9bdaa9f426d55b0a3b714dac1d39b, nice test
👍 brunoerg approved a pull request: "test: miner: add coverage for `-blockmintxfee` setting"
(https://github.com/bitcoin/bitcoin/pull/27620#pullrequestreview-1539355512)
reACK bbbb89d238e9bdaa9f426d55b0a3b714dac1d39b
changes since my last review looks good!
(https://github.com/bitcoin/bitcoin/pull/27620#pullrequestreview-1539355512)
reACK bbbb89d238e9bdaa9f426d55b0a3b714dac1d39b
changes since my last review looks good!
📝 TheCharlatan opened a pull request: "kernel: Remove UniValue from kernel library"
(https://github.com/bitcoin/bitcoin/pull/28113)
Besides the build system changes, this is a move-only change for moving the few UniValue-related functions out of kernel files.
UniValue is not required by any of the kernel components and a JSON library should not need to be part of a consensus library.
(https://github.com/bitcoin/bitcoin/pull/28113)
Besides the build system changes, this is a move-only change for moving the few UniValue-related functions out of kernel files.
UniValue is not required by any of the kernel components and a JSON library should not need to be part of a consensus library.
🤔 glozow reviewed a pull request: "test: miner: add coverage for `-blockmintxfee` setting"
(https://github.com/bitcoin/bitcoin/pull/27620#pullrequestreview-1539358558)
ACK bbbb89d238e9bdaa9f426d55b0a3b714dac1d39b, sorry for the late re-review!
(https://github.com/bitcoin/bitcoin/pull/27620#pullrequestreview-1539358558)
ACK bbbb89d238e9bdaa9f426d55b0a3b714dac1d39b, sorry for the late re-review!
💬 hebasto commented on pull request "kernel: Remove UniValue from kernel library":
(https://github.com/bitcoin/bitcoin/pull/28113#issuecomment-1643996052)
Concept ACK.
(https://github.com/bitcoin/bitcoin/pull/28113#issuecomment-1643996052)
Concept ACK.