File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -1531,8 +1531,11 @@ UniValue getwalletpakinfo(const JSONRPCRequest& request)
15311531 ret.pushKV (" liquid_pak" , HexStr (pwallet->online_key ));
15321532 ret.pushKV (" liquid_pak_address" , EncodeDestination (PKHash (pwallet->online_key )));
15331533
1534+ // We know that the number is non-negative from earlier check
1535+ unsigned int counter = (unsigned int )pwallet->offline_counter ;
1536+
15341537 UniValue address_list (UniValue::VARR);
1535- for (unsigned int i = 0 ; i < 3 ; i++) {
1538+ for (unsigned int i = counter ; i < counter+ 3 ; i++) {
15361539 std::vector<CScript> scripts;
15371540 if (!desc->Expand (i, provider, scripts, provider)) {
15381541 throw JSONRPCError (RPC_WALLET_ERROR, " Could not generate lookahead addresses with descriptor. This is a bug." );
You can’t perform that action at this time.
0 commit comments