format
key in getwalletinfo
response, that can be bdb
or sqlite
.
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
Reviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.
Approach ACK 56e1b81ef8efdcfe26b6fe22fea5354952afcead
Mind making the new Format
member function const
?
Mind making the new
Format
member functionconst
? @ryanofsky fine by you?
Tested ACK modulo test coverage
RPC results
0$ ./src/bitcoin-cli -rpcwallet= getwalletinfo
1{
2 "walletname": "",
3 "walletversion": 169900,
4 "format": "bdb",
5...
0$ ./src/bitcoin-cli -rpcwallet=sqlite getwalletinfo
1{
2 "walletname": "sqlite",
3 "walletversion": 169900,
4 "format": "sqlite",
5...
help
0Result:
1{ (json object)
2 "walletname" : "str", (string) the wallet name
3 "walletversion" : n, (numeric) the wallet version
4 "format" : "str", (string) the database format (bdb or sqlite)
5...
ACK 624bab00dd2cc8e2ebd77dc0a669bc8d507c3721, tested on Linux Mint 20 (x86_64).
Tested in the GUI console :)
Mind making the new
Format
member functionconst
?@ryanofsky fine by you?
Didn’t get what are concerns. :smiley:
2465@@ -2465,6 +2466,7 @@ static RPCHelpMan getwalletinfo()
2466 int64_t kp_oldest = pwallet->GetOldestKeyPoolTime();
2467 obj.pushKV("walletname", pwallet->GetName());
2468 obj.pushKV("walletversion", pwallet->GetVersion());
2469+ obj.pushKV("format", pwallet->GetDatabase().Format());
No objection obviously.
doesn’t hurt ACK 624bab00dd2cc8e2ebd77dc0a669bc8d507c3721
promag
DrahtBot
achow101
hebasto
jonatack
laanwj
MarcoFalke
meshcollider
Labels
Wallet
Milestone
0.21.0