@@ -2422,6 +2422,7 @@ static RPCHelpMan getwalletinfo()
24222422 {
24232423 {RPCResult::Type::STR, " walletname" , " the wallet name" },
24242424 {RPCResult::Type::NUM, " walletversion" , " the wallet version" },
2425+ {RPCResult::Type::STR, " format" , " the database format (bdb or sqlite)" },
24252426 {RPCResult::Type::STR_AMOUNT, " balance" , " DEPRECATED. Identical to getbalances().mine.trusted" },
24262427 {RPCResult::Type::STR_AMOUNT, " unconfirmed_balance" , " DEPRECATED. Identical to getbalances().mine.untrusted_pending" },
24272428 {RPCResult::Type::STR_AMOUNT, " immature_balance" , " DEPRECATED. Identical to getbalances().mine.immature" },
@@ -2465,6 +2466,7 @@ static RPCHelpMan getwalletinfo()
24652466 int64_t kp_oldest = pwallet->GetOldestKeyPoolTime ();
24662467 obj.pushKV (" walletname" , pwallet->GetName ());
24672468 obj.pushKV (" walletversion" , pwallet->GetVersion ());
2469+ obj.pushKV (" format" , pwallet->GetDatabase ().Format ());
24682470 obj.pushKV (" balance" , ValueFromAmount (bal.m_mine_trusted ));
24692471 obj.pushKV (" unconfirmed_balance" , ValueFromAmount (bal.m_mine_untrusted_pending ));
24702472 obj.pushKV (" immature_balance" , ValueFromAmount (bal.m_mine_immature ));
0 commit comments