⚠️ Sjors opened an issue: "Make -stopatheight work with background sync"
(https://github.com/bitcoin/bitcoin/issues/28809)
### Please describe the feature you'd like to see added.
When a background chainstate is present and `-stopatheight` is set below the assumeutxo height, stop when the background sync reaches that height.
### Is your feature related to a problem, if so please describe it.
Currently the node will stop as soon as the tip grows, because of `m_stop_at_height && index.nHeight >= m_stop_at_height`.
### Describe the solution you'd like
_No response_
### Describe any alternatives you've considered
...
(https://github.com/bitcoin/bitcoin/issues/28809)
### Please describe the feature you'd like to see added.
When a background chainstate is present and `-stopatheight` is set below the assumeutxo height, stop when the background sync reaches that height.
### Is your feature related to a problem, if so please describe it.
Currently the node will stop as soon as the tip grows, because of `m_stop_at_height && index.nHeight >= m_stop_at_height`.
### Describe the solution you'd like
_No response_
### Describe any alternatives you've considered
...
⚠️ jamesob opened an issue: "Wallet won't load in 26.x"
(https://github.com/bitcoin/bitcoin/issues/28810)
### Is there an existing issue for this?
- [X] I have searched the existing issues
### Current behaviour
I have a wallet that (I guess) is berkeleydb format that as of 26.x (or master) refuses to load. I get the following message on `loadwallet`:
```
"Wallet file verification failed. Failed to open database path '/home/james/.bitcoin/wallet-name'. Build does not support Berkeley DB database format." code: -18
```
I suppose I somehow have to upgrade this old wallet to sqlite, but I'm no
...
(https://github.com/bitcoin/bitcoin/issues/28810)
### Is there an existing issue for this?
- [X] I have searched the existing issues
### Current behaviour
I have a wallet that (I guess) is berkeleydb format that as of 26.x (or master) refuses to load. I get the following message on `loadwallet`:
```
"Wallet file verification failed. Failed to open database path '/home/james/.bitcoin/wallet-name'. Build does not support Berkeley DB database format." code: -18
```
I suppose I somehow have to upgrade this old wallet to sqlite, but I'm no
...
✅ jamesob closed an issue: "Wallet won't load in 26.x"
(https://github.com/bitcoin/bitcoin/issues/28810)
(https://github.com/bitcoin/bitcoin/issues/28810)
💬 jamesob commented on issue "Wallet won't load in 26.x":
(https://github.com/bitcoin/bitcoin/issues/28810#issuecomment-1797920978)
Oops, nevermind - looks like my bdb inclusion started failing for some reason during my configure step.
(https://github.com/bitcoin/bitcoin/issues/28810#issuecomment-1797920978)
Oops, nevermind - looks like my bdb inclusion started failing for some reason during my configure step.
💬 Riahiamirreza commented on pull request "rpc: show P2(W)SH redeemScript in getrawtransaction #27637":
(https://github.com/bitcoin/bitcoin/pull/27638#issuecomment-1797931541)
@Sjors Do you have any suggestion to make the code more cleaner? I think it's not a convenient way to call `txin.scriptSig.GetOp(pc, opcode, vch);` three times.
(https://github.com/bitcoin/bitcoin/pull/27638#issuecomment-1797931541)
@Sjors Do you have any suggestion to make the code more cleaner? I think it's not a convenient way to call `txin.scriptSig.GetOp(pc, opcode, vch);` three times.
💬 naumenkogs commented on pull request "p2p: Allow whitelisting outgoing connections":
(https://github.com/bitcoin/bitcoin/pull/27114#discussion_r1384521390)
perhaps two separate lists (or a mapping to bool) could be added when it's needed, and not now that it's unused?
(https://github.com/bitcoin/bitcoin/pull/27114#discussion_r1384521390)
perhaps two separate lists (or a mapping to bool) could be added when it's needed, and not now that it's unused?
💬 naumenkogs commented on pull request "p2p: Allow whitelisting outgoing connections":
(https://github.com/bitcoin/bitcoin/pull/27114#discussion_r1384523820)
This could yield false positives: sometimes we need just this flags for a different reason than speeding up, right? I also don't think we can reliably expect a test code reader to figure out his answer ("why noban") is in the test framework.
(https://github.com/bitcoin/bitcoin/pull/27114#discussion_r1384523820)
This could yield false positives: sometimes we need just this flags for a different reason than speeding up, right? I also don't think we can reliably expect a test code reader to figure out his answer ("why noban") is in the test framework.
💬 naumenkogs commented on pull request "p2p: adaptive connections services flags":
(https://github.com/bitcoin/bitcoin/pull/28170#discussion_r1384553675)
The word `initial` here is indeed confusing... Thinking about something happening only at node bootstrap, which is a more obvious version i think. Can we find a different word now that you're changing it to certainly not mean that?
(https://github.com/bitcoin/bitcoin/pull/28170#discussion_r1384553675)
The word `initial` here is indeed confusing... Thinking about something happening only at node bootstrap, which is a more obvious version i think. Can we find a different word now that you're changing it to certainly not mean that?
💬 naumenkogs commented on pull request "p2p: adaptive connections services flags":
(https://github.com/bitcoin/bitcoin/pull/28170#discussion_r1384550193)
I'm wondering, does it even make sense to keep such flag at this point? What it would take to adjust all code to going back-and-forth w.r.t. superstale?
(https://github.com/bitcoin/bitcoin/pull/28170#discussion_r1384550193)
I'm wondering, does it even make sense to keep such flag at this point? What it would take to adjust all code to going back-and-forth w.r.t. superstale?
💬 naumenkogs commented on pull request "p2p: adaptive connections services flags":
(https://github.com/bitcoin/bitcoin/pull/28170#discussion_r1384547974)
ef4a1a44dca1af20adcc8fb0c14e8a31683a9d99
nit: this enum could be better... First, `StalePast` also qualifies as `Stale` (just english-wise). Second, it's a negation (non-synced).
(https://github.com/bitcoin/bitcoin/pull/28170#discussion_r1384547974)
ef4a1a44dca1af20adcc8fb0c14e8a31683a9d99
nit: this enum could be better... First, `StalePast` also qualifies as `Stale` (just english-wise). Second, it's a negation (non-synced).
💬 maflcko commented on pull request "Show transactions as not fully confirmed during background validation":
(https://github.com/bitcoin/bitcoin/pull/28616#issuecomment-1798060231)
> I would expect that a wallet that connects to us over (untrusted) p2p will get the exact same info regardless of background validation progress.
assumeutxo allows blocks and the mempool to be based on top of the assumed utxo set, so transactions from those blocks and that mempool can be sent on p2p. I am pretty sure that this mempool does not have "the exact same info regardless of background validation progress."
(https://github.com/bitcoin/bitcoin/pull/28616#issuecomment-1798060231)
> I would expect that a wallet that connects to us over (untrusted) p2p will get the exact same info regardless of background validation progress.
assumeutxo allows blocks and the mempool to be based on top of the assumed utxo set, so transactions from those blocks and that mempool can be sent on p2p. I am pretty sure that this mempool does not have "the exact same info regardless of background validation progress."
🤔 maflcko reviewed a pull request: "rpc: Add script verification flags to getdeploymentinfo"
(https://github.com/bitcoin/bitcoin/pull/28806#pullrequestreview-1717157751)
left some nits/questions. Feel free to ignore.
(https://github.com/bitcoin/bitcoin/pull/28806#pullrequestreview-1717157751)
left some nits/questions. Feel free to ignore.
💬 maflcko commented on pull request "rpc: Add script verification flags to getdeploymentinfo":
(https://github.com/bitcoin/bitcoin/pull/28806#discussion_r1384586970)
```suggestion
#define FLAG_NAME(flag) {std::string{#flag}, uint32_t{SCRIPT_VERIFY_##flag}}
```
No need to cast, they are already unsigned, see fa621ededdf. Also, could omit the comma for clarity and to allow the use of clang-format on your code?
(https://github.com/bitcoin/bitcoin/pull/28806#discussion_r1384586970)
```suggestion
#define FLAG_NAME(flag) {std::string{#flag}, uint32_t{SCRIPT_VERIFY_##flag}}
```
No need to cast, they are already unsigned, see fa621ededdf. Also, could omit the comma for clarity and to allow the use of clang-format on your code?
💬 maflcko commented on pull request "rpc: Add script verification flags to getdeploymentinfo":
(https://github.com/bitcoin/bitcoin/pull/28806#discussion_r1384597041)
unrelated nit:
```
deploymentinfo.h should add these lines:
#include <cassert> // for assert
#include <cstdint> // for uint32_t
#include <string_view> // for string_view
```
```
(https://github.com/bitcoin/bitcoin/pull/28806#discussion_r1384597041)
unrelated nit:
```
deploymentinfo.h should add these lines:
#include <cassert> // for assert
#include <cstdint> // for uint32_t
#include <string_view> // for string_view
```
```
💬 maflcko commented on pull request "rpc: Add script verification flags to getdeploymentinfo":
(https://github.com/bitcoin/bitcoin/pull/28806#discussion_r1384589476)
Is this ever hit? If not, maybe it can be removed, as the remaining code should reach the same conclusion anyway in the rare case that this is hit?
(https://github.com/bitcoin/bitcoin/pull/28806#discussion_r1384589476)
Is this ever hit? If not, maybe it can be removed, as the remaining code should reach the same conclusion anyway in the rare case that this is hit?
💬 maflcko commented on pull request "rpc: Add script verification flags to getdeploymentinfo":
(https://github.com/bitcoin/bitcoin/pull/28806#discussion_r1384597514)
cc @aureleoules for the coverage report
(https://github.com/bitcoin/bitcoin/pull/28806#discussion_r1384597514)
cc @aureleoules for the coverage report
💬 maflcko commented on issue "macos: dmg not working on macOS Sonoma (14.x)":
(https://github.com/bitcoin/bitcoin/issues/28767#issuecomment-1798100327)
What is the shasum of the file you are trying to run?
(https://github.com/bitcoin/bitcoin/issues/28767#issuecomment-1798100327)
What is the shasum of the file you are trying to run?
💬 MarnixCroes commented on issue "getaddrmaninfo RPC: add Transport v1/v2 to `tried` for ipv4 & ipv6":
(https://github.com/bitcoin/bitcoin/issues/28807#issuecomment-1798134596)
@mzumsande OK.
Yes I was thinking maybe adding something like `gettransportinfo`/`getclearnettransportinfo` might be a good addition/alternative to this one.
Where detailed info, like you mentioned, could be shown.
(https://github.com/bitcoin/bitcoin/issues/28807#issuecomment-1798134596)
@mzumsande OK.
Yes I was thinking maybe adding something like `gettransportinfo`/`getclearnettransportinfo` might be a good addition/alternative to this one.
Where detailed info, like you mentioned, could be shown.
⚠️ dergoegge opened an issue: "fuzz: Left over tmp files when fuzzing with afl"
(https://github.com/bitcoin/bitcoin/issues/28811)
I frequently run out of disk space when fuzzing our targets with afl++ due to left over tmp files created by our `TestingSetup`s. Similar issues were previously reported (see #22572, #22472).
The tmp files are left over when test cases cause timeouts (or crashes) and the afl++ fork-server simply kills the process, leaving it no time to cleanup. Note: this is not a bug in afl++, they specifically advise against creating tmp files in fuzz tests. Increasing the timeout threshold sort of works bu
...
(https://github.com/bitcoin/bitcoin/issues/28811)
I frequently run out of disk space when fuzzing our targets with afl++ due to left over tmp files created by our `TestingSetup`s. Similar issues were previously reported (see #22572, #22472).
The tmp files are left over when test cases cause timeouts (or crashes) and the afl++ fork-server simply kills the process, leaving it no time to cleanup. Note: this is not a bug in afl++, they specifically advise against creating tmp files in fuzz tests. Increasing the timeout threshold sort of works bu
...
💬 maflcko commented on issue "fuzz: Left over tmp files when fuzzing with afl++":
(https://github.com/bitcoin/bitcoin/issues/28811#issuecomment-1798247265)
I am not sure how doable this is, as it requires every storage access to be mocked in all parts of the codebase?
I think it would be better to fix the underlying timeouts and crashes, and treat them as bugs.
(https://github.com/bitcoin/bitcoin/issues/28811#issuecomment-1798247265)
I am not sure how doable this is, as it requires every storage access to be mocked in all parts of the codebase?
I think it would be better to fix the underlying timeouts and crashes, and treat them as bugs.