Skip to content

Commit 7a665aa

Browse files
committed
Make pub_keypool_oldest optional
* Issue Currently, get_wallet_info() fails when used with descriptor wallets. * Cause Bitcoin Core's getwalletinfo command produces a result which sometimes includes a field called "keypoololdest". Currently, default wallets have the key but descriptor wallets do not. * Solution Making keypool_oldest optional allows this create to produce the correct results when operating with descriptor wallets.
1 parent 9bbca7f commit 7a665aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

json/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ pub struct GetWalletInfoResult {
146146
#[serde(rename = "txcount")]
147147
pub tx_count: usize,
148148
#[serde(rename = "keypoololdest")]
149-
pub keypool_oldest: usize,
149+
pub keypool_oldest: Option<usize>,
150150
#[serde(rename = "keypoolsize")]
151151
pub keypool_size: usize,
152152
#[serde(rename = "keypoolsize_hd_internal")]

0 commit comments

Comments
 (0)