💬 maflcko commented on pull request "fuzz: Generate with random libFuzzer settings":
(https://github.com/bitcoin/bitcoin/pull/28178#discussion_r1478436472)
(removed max_len randomization for now)
(https://github.com/bitcoin/bitcoin/pull/28178#discussion_r1478436472)
(removed max_len randomization for now)
💬 maflcko commented on pull request "fuzz: Generate with random libFuzzer settings":
(https://github.com/bitcoin/bitcoin/pull/28178#discussion_r1478438572)
mutate_depth was dropped from this pull, for now
(https://github.com/bitcoin/bitcoin/pull/28178#discussion_r1478438572)
mutate_depth was dropped from this pull, for now
💬 maflcko commented on pull request "fuzz: Generate with random libFuzzer settings":
(https://github.com/bitcoin/bitcoin/pull/28178#issuecomment-1927264262)
cc @dergoegge are you still unconvinced about this? Is there more references or data I can provide?
(https://github.com/bitcoin/bitcoin/pull/28178#issuecomment-1927264262)
cc @dergoegge are you still unconvinced about this? Is there more references or data I can provide?
💬 maflcko commented on pull request "util: check for errors after close and read in AutoFile":
(https://github.com/bitcoin/bitcoin/pull/29307#issuecomment-1927271889)
AutoFile holds a file, which will be nullptr when it is closed. So if the file is nullptr, then it can be assumed to be flushed.
(https://github.com/bitcoin/bitcoin/pull/29307#issuecomment-1927271889)
AutoFile holds a file, which will be nullptr when it is closed. So if the file is nullptr, then it can be assumed to be flushed.
💬 edilmedeiros commented on pull request "test: Add makefile target for running unit tests":
(https://github.com/bitcoin/bitcoin/pull/29377#issuecomment-1927295459)
Tested ACK
`make -C src check-unit` does execute the same unit tests as `make check`.
I tried to include as many things as possible:
```
Options used to compile and link:
external signer = yes
multiprocess = no
with libs = yes
with wallet = yes
with sqlite = yes
with bdb = yes
with gui / qt = yes
with qr = yes
with zmq = yes
with test = yes
with fuzz binary = yes
with bench = yes
with upnp
...
(https://github.com/bitcoin/bitcoin/pull/29377#issuecomment-1927295459)
Tested ACK
`make -C src check-unit` does execute the same unit tests as `make check`.
I tried to include as many things as possible:
```
Options used to compile and link:
external signer = yes
multiprocess = no
with libs = yes
with wallet = yes
with sqlite = yes
with bdb = yes
with gui / qt = yes
with qr = yes
with zmq = yes
with test = yes
with fuzz binary = yes
with bench = yes
with upnp
...
💬 josibake commented on pull request "CKey: add Serialize and Unserialize":
(https://github.com/bitcoin/bitcoin/pull/29295#issuecomment-1927304095)
> > It also seems strange to me that all of this care is being taken to keep the secret data secure in memory when you are reading writing it unencrypted to and from disk.
>
> That's literally what the wallet does by default. `CKey` provides extra security for free, so it's better to use it. The optional wallet encryption feature makes use of this security feature, by ensuring that once a wallet is (re)locked the key data is erased from memory.
https://github.com/bitcoin/bitcoin/blob/maste
...
(https://github.com/bitcoin/bitcoin/pull/29295#issuecomment-1927304095)
> > It also seems strange to me that all of this care is being taken to keep the secret data secure in memory when you are reading writing it unencrypted to and from disk.
>
> That's literally what the wallet does by default. `CKey` provides extra security for free, so it's better to use it. The optional wallet encryption feature makes use of this security feature, by ensuring that once a wallet is (re)locked the key data is erased from memory.
https://github.com/bitcoin/bitcoin/blob/maste
...
💬 aureleoules commented on pull request "serialization: c++20 endian/byteswap/clz modernization":
(https://github.com/bitcoin/bitcoin/pull/29263#issuecomment-1927311589)
@theuni yeah the `AddrManGetAddr` and `PrevectorDeserializeNontrivial` are known to be flaky. I'll filter them out from the UI while I find a better solution.
Some benchmarks depend on I/O or randomness so it's hard a have consistent results between runs.
You can see ignored benchmarks here in the meantime: https://github.com/corecheck/frontend/blob/master/src/routes/%5Bowner%5D/%5Brepo%5D/pulls/%5Bnumber%5D/Benchmarks.svelte#L334
(https://github.com/bitcoin/bitcoin/pull/29263#issuecomment-1927311589)
@theuni yeah the `AddrManGetAddr` and `PrevectorDeserializeNontrivial` are known to be flaky. I'll filter them out from the UI while I find a better solution.
Some benchmarks depend on I/O or randomness so it's hard a have consistent results between runs.
You can see ignored benchmarks here in the meantime: https://github.com/corecheck/frontend/blob/master/src/routes/%5Bowner%5D/%5Brepo%5D/pulls/%5Bnumber%5D/Benchmarks.svelte#L334
👍 dergoegge approved a pull request: "fuzz: Generate with random libFuzzer settings"
(https://github.com/bitcoin/bitcoin/pull/28178#pullrequestreview-1863171718)
utACK fa3a4102ef0ae06d8930d7a7b567759e2a5b5fde
(https://github.com/bitcoin/bitcoin/pull/28178#pullrequestreview-1863171718)
utACK fa3a4102ef0ae06d8930d7a7b567759e2a5b5fde
💬 Sjors commented on pull request "Stratum v2 Template Provider (take 2)":
(https://github.com/bitcoin/bitcoin/pull/28983#issuecomment-1927349134)
Added to `2024/02/sv2-poll-ellswift`: we now hold on to templates for 10 seconds after a new block arrives, in a case a miner was still working on it. The resulting block still wouldn't get broadcast.
(https://github.com/bitcoin/bitcoin/pull/28983#issuecomment-1927349134)
Added to `2024/02/sv2-poll-ellswift`: we now hold on to templates for 10 seconds after a new block arrives, in a case a miner was still working on it. The resulting block still wouldn't get broadcast.
💬 aureleoules commented on pull request "rpc: Optimize serialization disk space of dumptxoutset":
(https://github.com/bitcoin/bitcoin/pull/26045#issuecomment-1927351585)
Rebased. I had to change the offset again in `feature_assumeutxo.py`.
(https://github.com/bitcoin/bitcoin/pull/26045#issuecomment-1927351585)
Rebased. I had to change the offset again in `feature_assumeutxo.py`.
💬 theuni commented on pull request "serialization: c++20 endian/byteswap/clz modernization":
(https://github.com/bitcoin/bitcoin/pull/29263#issuecomment-1927359849)
@aureleoules Thanks, that's helpful.
(https://github.com/bitcoin/bitcoin/pull/29263#issuecomment-1927359849)
@aureleoules Thanks, that's helpful.
💬 Sjors commented on pull request "CKey: add Serialize and Unserialize":
(https://github.com/bitcoin/bitcoin/pull/29295#issuecomment-1927368536)
> In your case, loss of a passphrase would simply mean regenerating a new key.
There is no passphrase for sv2 keys. It would make running a template provider much too complicated. It could be added an advanced feature later of course.
> 'd be more inclined if this PR was proposing a general refactor
I just need to store a key a disk, I'm not interested in a general refactor.
> You're not blocked on this PR being merged, and it seems we wont need this change if the other PRs don't pro
...
(https://github.com/bitcoin/bitcoin/pull/29295#issuecomment-1927368536)
> In your case, loss of a passphrase would simply mean regenerating a new key.
There is no passphrase for sv2 keys. It would make running a template provider much too complicated. It could be added an advanced feature later of course.
> 'd be more inclined if this PR was proposing a general refactor
I just need to store a key a disk, I'm not interested in a general refactor.
> You're not blocked on this PR being merged, and it seems we wont need this change if the other PRs don't pro
...
💬 glozow commented on pull request "v3 transaction policy for anti-pinning":
(https://github.com/bitcoin/bitcoin/pull/28948#issuecomment-1927418035)
Last push made all the debug strings include txid and wtxid of transactions - @sdaftuar pointed out it's more useful to have both.
(https://github.com/bitcoin/bitcoin/pull/28948#issuecomment-1927418035)
Last push made all the debug strings include txid and wtxid of transactions - @sdaftuar pointed out it's more useful to have both.
💬 vasild commented on pull request "util: check for errors after close and read in AutoFile":
(https://github.com/bitcoin/bitcoin/pull/29307#issuecomment-1927420896)
How/when would the file be closed?
(https://github.com/bitcoin/bitcoin/pull/29307#issuecomment-1927420896)
How/when would the file be closed?
👍 hernanmarino approved a pull request: "refactor: Add util::Result failure values, multiple error and warning messages"
(https://github.com/bitcoin/bitcoin/pull/25665#pullrequestreview-1863286073)
re ack f822ac9a24d684937f1258da89812e99c4b205ba
(https://github.com/bitcoin/bitcoin/pull/25665#pullrequestreview-1863286073)
re ack f822ac9a24d684937f1258da89812e99c4b205ba
👍 brunoerg approved a pull request: "Fuzz: extend CConnman tests"
(https://github.com/bitcoin/bitcoin/pull/28584#pullrequestreview-1863342508)
utACK 5e3c80da1473f90406b84c1ba14dc563ce4d2853
(https://github.com/bitcoin/bitcoin/pull/28584#pullrequestreview-1863342508)
utACK 5e3c80da1473f90406b84c1ba14dc563ce4d2853
💬 ryanofsky commented on pull request "assumeutxo: Get rid of faked nTx and nChainTx values":
(https://github.com/bitcoin/bitcoin/pull/29370#discussion_r1478561706)
re: https://github.com/bitcoin/bitcoin/pull/29370#discussion_r1477998490
> Any reason to change the sequence id? I think this isn't changed in `loadtxoutset` either?
I'll double check and add a comment. I think this might be needed to satisfy an assert that ensures nChainTx is set if nSequenceId is set, since these are both set when a block is received and all blocks before it have also been received.
(https://github.com/bitcoin/bitcoin/pull/29370#discussion_r1478561706)
re: https://github.com/bitcoin/bitcoin/pull/29370#discussion_r1477998490
> Any reason to change the sequence id? I think this isn't changed in `loadtxoutset` either?
I'll double check and add a comment. I think this might be needed to satisfy an assert that ensures nChainTx is set if nSequenceId is set, since these are both set when a block is received and all blocks before it have also been received.
💬 ryanofsky commented on pull request "assumeutxo: Get rid of faked nTx and nChainTx values":
(https://github.com/bitcoin/bitcoin/pull/29370#discussion_r1478549351)
re: https://github.com/bitcoin/bitcoin/pull/29370#discussion_r1477981888
> Any reason to touch this LOC?
No, will restore. I only meant to update the comments around it.
(https://github.com/bitcoin/bitcoin/pull/29370#discussion_r1478549351)
re: https://github.com/bitcoin/bitcoin/pull/29370#discussion_r1477981888
> Any reason to touch this LOC?
No, will restore. I only meant to update the comments around it.
💬 ryanofsky commented on pull request "assumeutxo: Get rid of faked nTx and nChainTx values":
(https://github.com/bitcoin/bitcoin/pull/29370#discussion_r1478567668)
re: https://github.com/bitcoin/bitcoin/pull/29370#discussion_r1477996772
> isn't this always true? Maybe you meant to type `-` instead of `<`?
>
> In any case, the test seems to be passing either way, so this is "dead" code, similar to a code comment.
I think it was supposed to be i < last_assumed_valid_idx - 1, to preserve nChainTx in the snapshot block, and only set nChainTx to 0 before the snapshot block, so the test matches what happens in reality. But it does seem like this is not
...
(https://github.com/bitcoin/bitcoin/pull/29370#discussion_r1478567668)
re: https://github.com/bitcoin/bitcoin/pull/29370#discussion_r1477996772
> isn't this always true? Maybe you meant to type `-` instead of `<`?
>
> In any case, the test seems to be passing either way, so this is "dead" code, similar to a code comment.
I think it was supposed to be i < last_assumed_valid_idx - 1, to preserve nChainTx in the snapshot block, and only set nChainTx to 0 before the snapshot block, so the test matches what happens in reality. But it does seem like this is not
...
🤔 ryanofsky reviewed a pull request: "assumeutxo: Get rid of faked nTx and nChainTx values"
(https://github.com/bitcoin/bitcoin/pull/29370#pullrequestreview-1863282117)
Thanks for the close review! Will work on your suggestions
(https://github.com/bitcoin/bitcoin/pull/29370#pullrequestreview-1863282117)
Thanks for the close review! Will work on your suggestions