💬 maflcko commented on pull request "rpc: fix getrawtransaction segfault":
(https://github.com/bitcoin/bitcoin/pull/29003#issuecomment-1841418135)
lgtm ACK 494a926d05df44b60b3bc1145ad2a64acf96f61b
A test wouldn't hurt, I'd say.
(https://github.com/bitcoin/bitcoin/pull/29003#issuecomment-1841418135)
lgtm ACK 494a926d05df44b60b3bc1145ad2a64acf96f61b
A test wouldn't hurt, I'd say.
💬 maflcko commented on pull request "rpc: fix getrawtransaction segfault":
(https://github.com/bitcoin/bitcoin/pull/29003#issuecomment-1841426498)
I guess this was introduced in https://github.com/bitcoin/bitcoin/commit/f86697163e5cdbc3bc4a65cfb7dbaa3d9eb602a9
(https://github.com/bitcoin/bitcoin/pull/29003#issuecomment-1841426498)
I guess this was introduced in https://github.com/bitcoin/bitcoin/commit/f86697163e5cdbc3bc4a65cfb7dbaa3d9eb602a9
💬 nogamike76 commented on pull request "rpc: fix getrawtransaction segfault":
(https://github.com/bitcoin/bitcoin/pull/29003#issuecomment-1841429818)
No it wouldn’t. What needs to be done
May God guide us and may we all, including myself find happiness, love and
forgiveness. Be kind to someone, help someone with something that would
help them. Make sure you tel your family you love them. May the kings be
protected and may our King, Jesus Christ, always be the divine and glory,
in honor of our father, the almighty one, God.
Spirit Leader
Michael Noga jr.
Descendant of King David
Nogah, son of David
T8<3
$€£¥
On Tue, Dec 5, 20
...
(https://github.com/bitcoin/bitcoin/pull/29003#issuecomment-1841429818)
No it wouldn’t. What needs to be done
May God guide us and may we all, including myself find happiness, love and
forgiveness. Be kind to someone, help someone with something that would
help them. Make sure you tel your family you love them. May the kings be
protected and may our King, Jesus Christ, always be the divine and glory,
in honor of our father, the almighty one, God.
Spirit Leader
Michael Noga jr.
Descendant of King David
Nogah, son of David
T8<3
$€£¥
On Tue, Dec 5, 20
...
💬 maflcko commented on pull request "rpc: fix getrawtransaction segfault":
(https://github.com/bitcoin/bitcoin/pull/29003#discussion_r1416148547)
unrelated: I don't understand the silent fallback to verbose=1, when verbose=2 is not available. Either this should be documented, or an error should be thrown (same below).
Though, this is unrelated.
(https://github.com/bitcoin/bitcoin/pull/29003#discussion_r1416148547)
unrelated: I don't understand the silent fallback to verbose=1, when verbose=2 is not available. Either this should be documented, or an error should be thrown (same below).
Though, this is unrelated.
💬 maflcko commented on pull request "rpc: fix getrawtransaction segfault":
(https://github.com/bitcoin/bitcoin/pull/29003#issuecomment-1841435462)
> We might also want to change `IsBlockPruned()` so it doesn't crash when called with a `nullptr`, but I didn't do that here.
I think we should avoid the use of pointers when they are assumed to not be null. In C++, references exit. However, this can be done in a follow-up.
(https://github.com/bitcoin/bitcoin/pull/29003#issuecomment-1841435462)
> We might also want to change `IsBlockPruned()` so it doesn't crash when called with a `nullptr`, but I didn't do that here.
I think we should avoid the use of pointers when they are assumed to not be null. In C++, references exit. However, this can be done in a follow-up.
💬 aureleoules commented on pull request "[POC] C++20 `std::endian`":
(https://github.com/bitcoin/bitcoin/pull/28674#issuecomment-1841445584)
Here is the output of the configure script of the corecheck job if this helps:
```
1701686294337,checking for pkg-config... /usr/bin/pkg-config
1701686294338,checking pkg-config is at least version 0.9.0... yes
1701686294378,checking build system type... aarch64-unknown-linux-gnu
1701686294379,checking host system type... aarch64-unknown-linux-gnu
1701686294384,checking for a BSD-compatible install... /usr/bin/install -c
1701686294387,checking whether build environment is sane... yes
1
...
(https://github.com/bitcoin/bitcoin/pull/28674#issuecomment-1841445584)
Here is the output of the configure script of the corecheck job if this helps:
```
1701686294337,checking for pkg-config... /usr/bin/pkg-config
1701686294338,checking pkg-config is at least version 0.9.0... yes
1701686294378,checking build system type... aarch64-unknown-linux-gnu
1701686294379,checking host system type... aarch64-unknown-linux-gnu
1701686294384,checking for a BSD-compatible install... /usr/bin/install -c
1701686294387,checking whether build environment is sane... yes
1
...
💬 maflcko commented on pull request "[POC] C++20 `std::endian`":
(https://github.com/bitcoin/bitcoin/pull/28674#issuecomment-1841445629)
Same bench result here, compiling with `clang`, both master and this pull. My command:
```
$ grep 'make_bitcoin_core=' ~/.bashrc
alias make_bitcoin_core=" ./autogen.sh && CC=clang CXX=clang++ ./configure -q --enable-c++20 --enable-experimental-util-chainstate --with-experimental-kernel-lib && make clean && make -j $(nproc)"
(https://github.com/bitcoin/bitcoin/pull/28674#issuecomment-1841445629)
Same bench result here, compiling with `clang`, both master and this pull. My command:
```
$ grep 'make_bitcoin_core=' ~/.bashrc
alias make_bitcoin_core=" ./autogen.sh && CC=clang CXX=clang++ ./configure -q --enable-c++20 --enable-experimental-util-chainstate --with-experimental-kernel-lib && make clean && make -j $(nproc)"
👍 pablomartin4btc approved a pull request: "rpc: fix getrawtransaction segfault"
(https://github.com/bitcoin/bitcoin/pull/29003#pullrequestreview-1765919970)
tACK 494a926d05df44b60b3bc1145ad2a64acf96f61b
I've managed to reproduce the issue, this PR fixes it.
(https://github.com/bitcoin/bitcoin/pull/29003#pullrequestreview-1765919970)
tACK 494a926d05df44b60b3bc1145ad2a64acf96f61b
I've managed to reproduce the issue, this PR fixes it.
💬 mzumsande commented on pull request "rpc: fix getrawtransaction segfault":
(https://github.com/bitcoin/bitcoin/pull/29003#issuecomment-1841458226)
> A test wouldn't hurt, I'd say.
Will add one soon.
(https://github.com/bitcoin/bitcoin/pull/29003#issuecomment-1841458226)
> A test wouldn't hurt, I'd say.
Will add one soon.
💬 petertodd commented on pull request "policy: Enable full-rbf by default":
(https://github.com/bitcoin/bitcoin/pull/28132#issuecomment-1841458691)
You can see full-rbf replacements and their outcome on https://mempool.space/rbf#fullrbf
On December 5, 2023 1:43:28 PM EST, Kilian ***@***.***> wrote:
>Is there another source for up-to-date full-rbf pool adoption?
>
(https://github.com/bitcoin/bitcoin/pull/28132#issuecomment-1841458691)
You can see full-rbf replacements and their outcome on https://mempool.space/rbf#fullrbf
On December 5, 2023 1:43:28 PM EST, Kilian ***@***.***> wrote:
>Is there another source for up-to-date full-rbf pool adoption?
>
👍 ryanofsky approved a pull request: "wallet: Migrate entire address book entries to watchonly and solvables too"
(https://github.com/bitcoin/bitcoin/pull/28610#pullrequestreview-1765927605)
Code review ACK 406b71abcb72f234ddf9245a3f57e748343c774f. Just suggested change since last review
(https://github.com/bitcoin/bitcoin/pull/28610#pullrequestreview-1765927605)
Code review ACK 406b71abcb72f234ddf9245a3f57e748343c774f. Just suggested change since last review
💬 furszy commented on pull request "p2p: adaptive connections services flags":
(https://github.com/bitcoin/bitcoin/pull/28170#discussion_r1416195304)
ok cool. Updated per feedback.
(https://github.com/bitcoin/bitcoin/pull/28170#discussion_r1416195304)
ok cool. Updated per feedback.
💬 martinus commented on pull request "Don't empty dbcache on prune flushes: >30% faster IBD":
(https://github.com/bitcoin/bitcoin/pull/28280#issuecomment-1841506238)
> @martinus something similar was mentioned in [#15265 (comment)](https://github.com/bitcoin/bitcoin/pull/15265#issuecomment-457720636). However, with your approach every access would require 4 lookups.
Ha, of course; I didn't think about that at all.
(https://github.com/bitcoin/bitcoin/pull/28280#issuecomment-1841506238)
> @martinus something similar was mentioned in [#15265 (comment)](https://github.com/bitcoin/bitcoin/pull/15265#issuecomment-457720636). However, with your approach every access would require 4 lookups.
Ha, of course; I didn't think about that at all.
💬 furszy commented on pull request "p2p: adaptive connections services flags":
(https://github.com/bitcoin/bitcoin/pull/28170#issuecomment-1841506898)
Updated per feedback. Thanks @andrewtoth and @naumenkogs.
Tiny diff, only renamed `m_initial_sync_finished` to `m_is_close_to_tip` in a scripted-diff commit afc29b1.
(https://github.com/bitcoin/bitcoin/pull/28170#issuecomment-1841506898)
Updated per feedback. Thanks @andrewtoth and @naumenkogs.
Tiny diff, only renamed `m_initial_sync_finished` to `m_is_close_to_tip` in a scripted-diff commit afc29b1.
💬 furszy commented on pull request "rpc: encryptwallet help, mention HD seed rotation and backup requirement":
(https://github.com/bitcoin/bitcoin/pull/28980#discussion_r1416203917)
It seems that we commented at the same time and I missed https://github.com/bitcoin/bitcoin/pull/28980#discussion_r1414581640. Thanks for pointing it out.
Suggestions applied. Thanks.
(https://github.com/bitcoin/bitcoin/pull/28980#discussion_r1416203917)
It seems that we commented at the same time and I missed https://github.com/bitcoin/bitcoin/pull/28980#discussion_r1414581640. Thanks for pointing it out.
Suggestions applied. Thanks.
🤔 furszy reviewed a pull request: "rpc: encryptwallet help, mention HD seed rotation and backup requirement"
(https://github.com/bitcoin/bitcoin/pull/28980#pullrequestreview-1765987670)
Updated per feedback. Thanks.
Applied https://github.com/bitcoin/bitcoin/pull/28980#discussion_r1414836494 suggestions.
(https://github.com/bitcoin/bitcoin/pull/28980#pullrequestreview-1765987670)
Updated per feedback. Thanks.
Applied https://github.com/bitcoin/bitcoin/pull/28980#discussion_r1414836494 suggestions.
💬 pablomartin4btc commented on pull request "rpc: fix getrawtransaction segfault":
(https://github.com/bitcoin/bitcoin/pull/29003#issuecomment-1841519345)
> > We might also want to change `IsBlockPruned()` so it doesn't crash when called with a `nullptr`, but I didn't do that here.
>
> I think we should avoid the use of pointers when they are assumed to not be null. In C++, references exit. However, this can be done in a follow-up.
Sorry, why not fixing the issue directly here(?):
```diff
--- a/src/node/blockstorage.cpp
+++ b/src/node/blockstorage.cpp
@@ -585,7 +585,7 @@ const CBlockIndex* BlockManager::GetLastCheckpoint(const CCheckpoin
...
(https://github.com/bitcoin/bitcoin/pull/29003#issuecomment-1841519345)
> > We might also want to change `IsBlockPruned()` so it doesn't crash when called with a `nullptr`, but I didn't do that here.
>
> I think we should avoid the use of pointers when they are assumed to not be null. In C++, references exit. However, this can be done in a follow-up.
Sorry, why not fixing the issue directly here(?):
```diff
--- a/src/node/blockstorage.cpp
+++ b/src/node/blockstorage.cpp
@@ -585,7 +585,7 @@ const CBlockIndex* BlockManager::GetLastCheckpoint(const CCheckpoin
...
👍 pablomartin4btc approved a pull request: "rpc: encryptwallet help, mention HD seed rotation and backup requirement"
(https://github.com/bitcoin/bitcoin/pull/28980#pullrequestreview-1766001270)
reACK e6b9a6dba79144cbe77c59515541f9019d1db4b5
(https://github.com/bitcoin/bitcoin/pull/28980#pullrequestreview-1766001270)
reACK e6b9a6dba79144cbe77c59515541f9019d1db4b5
💬 mzumsande commented on pull request "rpc: fix getrawtransaction segfault":
(https://github.com/bitcoin/bitcoin/pull/29003#issuecomment-1841540970)
> Sorry, why not fixing the issue directly here(?):
I initially decided against this because
1) calling `IsBlockPruned()` doesn't make any sense in the first place when there is no block.
2) There were lots of refactors in the blockstorage module over the last year and I wasn't sure how cleanly this would backport.
I think that it's not one or the other, both changes make sense. However, to avoid the question if `IsBlockPruned()` should return true or false for a `nullptr`, it would prob
...
(https://github.com/bitcoin/bitcoin/pull/29003#issuecomment-1841540970)
> Sorry, why not fixing the issue directly here(?):
I initially decided against this because
1) calling `IsBlockPruned()` doesn't make any sense in the first place when there is no block.
2) There were lots of refactors in the blockstorage module over the last year and I wasn't sure how cleanly this would backport.
I think that it's not one or the other, both changes make sense. However, to avoid the question if `IsBlockPruned()` should return true or false for a `nullptr`, it would prob
...
💬 furszy commented on pull request "wallet: birth time update during tx scanning":
(https://github.com/bitcoin/bitcoin/pull/28920#discussion_r1416220032)
yeah, it could be `NO_KEY_TIME` or could also return an optional.
The issue that I see with the `NO_KEY_TIME` constant is where to place it. Because, if we place it at the wallet.h level, we would add a circular dependency wallet -> spkm -> wallet.
(https://github.com/bitcoin/bitcoin/pull/28920#discussion_r1416220032)
yeah, it could be `NO_KEY_TIME` or could also return an optional.
The issue that I see with the `NO_KEY_TIME` constant is where to place it. Because, if we place it at the wallet.h level, we would add a circular dependency wallet -> spkm -> wallet.