💬 jonatack commented on pull request "include verbose "debug-message" field in testmempoolaccept response":
(https://github.com/bitcoin/bitcoin/pull/28121#discussion_r1604146476)
d2917e7e0b342509d50325cf7f00da15d81b3c65
```suggestion
The RPC `testmempoolaccept` response now includes a "reject-details" field in some cases
```
(https://github.com/bitcoin/bitcoin/pull/28121#discussion_r1604146476)
d2917e7e0b342509d50325cf7f00da15d81b3c65
```suggestion
The RPC `testmempoolaccept` response now includes a "reject-details" field in some cases
```
💬 jonatack commented on pull request "include verbose "debug-message" field in testmempoolaccept response":
(https://github.com/bitcoin/bitcoin/pull/28121#discussion_r1604141675)
https://github.com/bitcoin/bitcoin/commit/c1be9d40f8c3044587d1d3480ccbedfc427951fe while touching the next line, `string` here might be a relic from when the field type wasn't auto-generated in the help, ISTM `reason` would be clearer
```suggestion
{RPCResult::Type::STR, "reject-reason", /*optional=*/true, "Rejection reason (only present when 'allowed' is false)"},
```
(https://github.com/bitcoin/bitcoin/pull/28121#discussion_r1604141675)
https://github.com/bitcoin/bitcoin/commit/c1be9d40f8c3044587d1d3480ccbedfc427951fe while touching the next line, `string` here might be a relic from when the field type wasn't auto-generated in the help, ISTM `reason` would be clearer
```suggestion
{RPCResult::Type::STR, "reject-reason", /*optional=*/true, "Rejection reason (only present when 'allowed' is false)"},
```
💬 jonatack commented on pull request "include verbose "debug-message" field in testmempoolaccept response":
(https://github.com/bitcoin/bitcoin/pull/28121#discussion_r1604145031)
d2917e7e0b342509d50325cf7f00da15d81b3c65 Not sure if `Updated RPCs` would be better here
(https://github.com/bitcoin/bitcoin/pull/28121#discussion_r1604145031)
d2917e7e0b342509d50325cf7f00da15d81b3c65 Not sure if `Updated RPCs` would be better here
🤔 pablomartin4btc reviewed a pull request: "refactor: interfaces, make 'createTransaction' less error-prone "
(https://github.com/bitcoin-core/gui/pull/807#pullrequestreview-2062071072)
re-ACK 4d941b5ff43e6e7efa83913ded8cd5806ef92dbe
- Changes from my last review: `CreatedTransactionResult` struct moved as [suggested](https://github.com/bitcoin-core/gui/pull/807#discussion_r1598730244) by @ryanofsky [explaining](https://github.com/bitcoin/bitcoin/pull/29415#discussion_r1543379055) reasoning behind the convention. I like the idea of keeping the namespace, not only for [consistency](https://github.com/bitcoin/bitcoin/pull/29015#discussion_r1424337693) but for clarity and makin
...
(https://github.com/bitcoin-core/gui/pull/807#pullrequestreview-2062071072)
re-ACK 4d941b5ff43e6e7efa83913ded8cd5806ef92dbe
- Changes from my last review: `CreatedTransactionResult` struct moved as [suggested](https://github.com/bitcoin-core/gui/pull/807#discussion_r1598730244) by @ryanofsky [explaining](https://github.com/bitcoin/bitcoin/pull/29415#discussion_r1543379055) reasoning behind the convention. I like the idea of keeping the namespace, not only for [consistency](https://github.com/bitcoin/bitcoin/pull/29015#discussion_r1424337693) but for clarity and makin
...
⚠️ ygcool opened an issue: "dumpprivkey error"
(https://github.com/bitcoin/bitcoin/issues/30129)
bitcoin-core version:27.0
execute:
`bitcoin-cli createwallet "wallet1" false false pass`
`bitcoin-cli getnewaddress`
`bitcoin-cli walletpassphrase pass 100`
`bitcoin-cli dumpprivkey "address"`
dumpprivkey Return error:
```
error code: -4
error message:
Only legacy wallets are supported by this command
```
Is there any solution to export the private key of the address?
If I must use dumpprivkey which version of bitcoin core should I use?
thanks
(https://github.com/bitcoin/bitcoin/issues/30129)
bitcoin-core version:27.0
execute:
`bitcoin-cli createwallet "wallet1" false false pass`
`bitcoin-cli getnewaddress`
`bitcoin-cli walletpassphrase pass 100`
`bitcoin-cli dumpprivkey "address"`
dumpprivkey Return error:
```
error code: -4
error message:
Only legacy wallets are supported by this command
```
Is there any solution to export the private key of the address?
If I must use dumpprivkey which version of bitcoin core should I use?
thanks
💬 furszy commented on pull request "refactor: interfaces, make 'createTransaction' less error-prone ":
(https://github.com/bitcoin-core/gui/pull/807#issuecomment-2116475460)
> nit: on 2nd. commit (https://github.com/bitcoin-core/gui/commit/95aaaa4f023c6a6b629c36cfb9d8abd4bab1cb66), you forgot to remove the change from the makefile as it's not longer needed.
Removed. Thanks.
(https://github.com/bitcoin-core/gui/pull/807#issuecomment-2116475460)
> nit: on 2nd. commit (https://github.com/bitcoin-core/gui/commit/95aaaa4f023c6a6b629c36cfb9d8abd4bab1cb66), you forgot to remove the change from the makefile as it's not longer needed.
Removed. Thanks.
💬 ryanofsky commented on pull request "kernel: Streamline util library":
(https://github.com/bitcoin/bitcoin/pull/29015#issuecomment-2116484602)
> There seems to be a conflict with #30098. Maybe rebase?
Thanks! Rebased now.
> If other reviewers or maintainers are not happy with introducing a bash script, I could volunteer some time to translate it.
Yes this could be a good idea. The script started out just being a few lines of bash listing symbols exported by one library and imported by another one. But then it grew as it was extended to support multiple libraries and suppress known errors. So now it's no longer a small script,
...
(https://github.com/bitcoin/bitcoin/pull/29015#issuecomment-2116484602)
> There seems to be a conflict with #30098. Maybe rebase?
Thanks! Rebased now.
> If other reviewers or maintainers are not happy with introducing a bash script, I could volunteer some time to translate it.
Yes this could be a good idea. The script started out just being a few lines of bash listing symbols exported by one library and imported by another one. But then it grew as it was extended to support multiple libraries and suppress known errors. So now it's no longer a small script,
...
💬 edilmedeiros commented on issue "dumpprivkey error":
(https://github.com/bitcoin/bitcoin/issues/30129#issuecomment-2116495430)
Newer version of bitcoin core use [descriptor wallets](https://github.com/bitcoin/bitcoin/blob/master/doc/descriptors.md).
You can see them using:
```
bitcoin-cli listdescriptors true
```
The `true` argument mean to export the private descriptors, the equivalent of private keys.
I usually use the tool `jq` to extract them to an environment variable like so:
```
DESCRIPTORS=$(bitcoin-cli listdescriptors true | jq -r .descriptors)
```
I import the descriptors to my wallet with:
```
bitcoin-cl
...
(https://github.com/bitcoin/bitcoin/issues/30129#issuecomment-2116495430)
Newer version of bitcoin core use [descriptor wallets](https://github.com/bitcoin/bitcoin/blob/master/doc/descriptors.md).
You can see them using:
```
bitcoin-cli listdescriptors true
```
The `true` argument mean to export the private descriptors, the equivalent of private keys.
I usually use the tool `jq` to extract them to an environment variable like so:
```
DESCRIPTORS=$(bitcoin-cli listdescriptors true | jq -r .descriptors)
```
I import the descriptors to my wallet with:
```
bitcoin-cl
...
💬 pablomartin4btc commented on pull request "assumeutxo, rpc: Improve EOF error when reading snapshot metadata in loadtxoutset":
(https://github.com/bitcoin/bitcoin/pull/28670#discussion_r1604259198)
done!
(https://github.com/bitcoin/bitcoin/pull/28670#discussion_r1604259198)
done!
💬 pablomartin4btc commented on pull request "assumeutxo, rpc: Improve EOF error when reading snapshot metadata in loadtxoutset":
(https://github.com/bitcoin/bitcoin/pull/28670#discussion_r1604259301)
done!
(https://github.com/bitcoin/bitcoin/pull/28670#discussion_r1604259301)
done!
💬 ygcool commented on issue "dumpprivkey error":
(https://github.com/bitcoin/bitcoin/issues/30129#issuecomment-2116520822)
@edilmedeiros Hi, I tried and it still doesn't work, which version of bitcoin core still works with dumpprivkey?
(https://github.com/bitcoin/bitcoin/issues/30129#issuecomment-2116520822)
@edilmedeiros Hi, I tried and it still doesn't work, which version of bitcoin core still works with dumpprivkey?
💬 edilmedeiros commented on issue "dumpprivkey error":
(https://github.com/bitcoin/bitcoin/issues/30129#issuecomment-2116524820)
V27 works with `dumpprivkey`.
The problem is that you are creating a newer descriptor wallet and are trying to use an rpc which is compatible with legacy wallets only.
Can you be more specific about what you tried?
(https://github.com/bitcoin/bitcoin/issues/30129#issuecomment-2116524820)
V27 works with `dumpprivkey`.
The problem is that you are creating a newer descriptor wallet and are trying to use an rpc which is compatible with legacy wallets only.
Can you be more specific about what you tried?
💬 pablomartin4btc commented on pull request "assumeutxo, rpc: Improve EOF error when reading snapshot metadata in loadtxoutset":
(https://github.com/bitcoin/bitcoin/pull/28670#issuecomment-2116530496)
Updates:
- Addressed [feedback](https://github.com/bitcoin/bitcoin/pull/28670#discussion_r1566860922) from @fjahr by amending the logging info description.
- Addressed [feedback](https://github.com/bitcoin/bitcoin/pull/28670#discussion_r1597147718) from @furszy by using a better RPC error code (`RPC_DESERIALIZATION_ERROR` instead of `RPC_INTERNAL_ERROR`).
(https://github.com/bitcoin/bitcoin/pull/28670#issuecomment-2116530496)
Updates:
- Addressed [feedback](https://github.com/bitcoin/bitcoin/pull/28670#discussion_r1566860922) from @fjahr by amending the logging info description.
- Addressed [feedback](https://github.com/bitcoin/bitcoin/pull/28670#discussion_r1597147718) from @furszy by using a better RPC error code (`RPC_DESERIALIZATION_ERROR` instead of `RPC_INTERNAL_ERROR`).
✅ achow101 closed an issue: "dumpprivkey error"
(https://github.com/bitcoin/bitcoin/issues/30129)
(https://github.com/bitcoin/bitcoin/issues/30129)
💬 achow101 commented on issue "dumpprivkey error":
(https://github.com/bitcoin/bitcoin/issues/30129#issuecomment-2116532819)
As the error message says, your wallet is not compatible with the `dumpprivkey` command. @edilmedeiros has already laid out your alternatives, but there is no way to make your specific wallet work with `dumpprivkey`.
(https://github.com/bitcoin/bitcoin/issues/30129#issuecomment-2116532819)
As the error message says, your wallet is not compatible with the `dumpprivkey` command. @edilmedeiros has already laid out your alternatives, but there is no way to make your specific wallet work with `dumpprivkey`.
💬 ygcool commented on issue "dumpprivkey error":
(https://github.com/bitcoin/bitcoin/issues/30129#issuecomment-2116537647)
thank.
Solved it:
`bitcoind -deprecatedrpc=create_bdb -daemon`
`bitcoin-cli -named createwallet "walletname" descriptors=false`
`bitcoin-cli getnewaddress`
`bitcoin-cli dumpprivkey "address"`
(https://github.com/bitcoin/bitcoin/issues/30129#issuecomment-2116537647)
thank.
Solved it:
`bitcoind -deprecatedrpc=create_bdb -daemon`
`bitcoin-cli -named createwallet "walletname" descriptors=false`
`bitcoin-cli getnewaddress`
`bitcoin-cli dumpprivkey "address"`
🤔 tdb3 reviewed a pull request: "rpc: introduce getversion RPC"
(https://github.com/bitcoin/bitcoin/pull/30112#pullrequestreview-2062178448)
Concept ACK.
Great work. This seems like an improvement over whitelisting `getnetworkinfo` and reduces exposed info.
https://github.com/bitcoin/bitcoin/pull/30112#issuecomment-2114646750
> getrpcversion maybe? The reason i bring it up is that it needs to be restrictive enough in scope to just the RPC interface version, not wallet version, not P2P versions, etc.
I generally agree with this comment that the scope of this new RPC should be constrained where it makes sense. A more specif
...
(https://github.com/bitcoin/bitcoin/pull/30112#pullrequestreview-2062178448)
Concept ACK.
Great work. This seems like an improvement over whitelisting `getnetworkinfo` and reduces exposed info.
https://github.com/bitcoin/bitcoin/pull/30112#issuecomment-2114646750
> getrpcversion maybe? The reason i bring it up is that it needs to be restrictive enough in scope to just the RPC interface version, not wallet version, not P2P versions, etc.
I generally agree with this comment that the scope of this new RPC should be constrained where it makes sense. A more specif
...
💬 tdb3 commented on pull request "rpc: introduce getversion RPC":
(https://github.com/bitcoin/bitcoin/pull/30112#discussion_r1604241946)
Thinking out loud about this one: Are there instances where `long` would be insufficient for determining if the client/node is a release? In the examples provided in the opening post, it seems like this could be determined by lack of commit hash and rc designation. It definitely would be convenient for the RPC user to have a bool provided (and prevents burdening the user with extra parsing or interpretation), so I see value in keeping this field.
(https://github.com/bitcoin/bitcoin/pull/30112#discussion_r1604241946)
Thinking out loud about this one: Are there instances where `long` would be insufficient for determining if the client/node is a release? In the examples provided in the opening post, it seems like this could be determined by lack of commit hash and rc designation. It definitely would be convenient for the RPC user to have a bool provided (and prevents burdening the user with extra parsing or interpretation), so I see value in keeping this field.
💬 stratospher commented on pull request "test/BIP324: disconnection scenarios during v2 handshake":
(https://github.com/bitcoin/bitcoin/pull/29431#issuecomment-2116717090)
> I think it'd be better to have multiple classes that build from v2_p2p and modify what's needed, even if the file gets larger.
that's a great suggestion @sr-gi! it's possible to design those classes in such a way that it avoids code duplication and the file is almost the same size!
> Turns out if you removed both changes, the tests still passes, but I'm not sure why.
because we don't send a version message to ensure that the disconnection happens in the v2 handshake phase. in your ca
...
(https://github.com/bitcoin/bitcoin/pull/29431#issuecomment-2116717090)
> I think it'd be better to have multiple classes that build from v2_p2p and modify what's needed, even if the file gets larger.
that's a great suggestion @sr-gi! it's possible to design those classes in such a way that it avoids code duplication and the file is almost the same size!
> Turns out if you removed both changes, the tests still passes, but I'm not sure why.
because we don't send a version message to ensure that the disconnection happens in the v2 handshake phase. in your ca
...
💬 josibake commented on pull request "wallet: Implement independent BDB parser":
(https://github.com/bitcoin/bitcoin/pull/26606#issuecomment-2116882706)
reACK https://github.com/bitcoin/bitcoin/commit/d51fbab4b32d56765e8faab6ad01245fb259b0ca
(https://github.com/bitcoin/bitcoin/pull/26606#issuecomment-2116882706)
reACK https://github.com/bitcoin/bitcoin/commit/d51fbab4b32d56765e8faab6ad01245fb259b0ca