@@ -274,16 +274,6 @@ bool LegacyScriptPubKeyMan::GetReservedDestination(const OutputType type, bool i
274
274
return true ;
275
275
}
276
276
277
- void LegacyScriptPubKeyMan::KeepDestination (int64_t index)
278
- {
279
- KeepKey (index);
280
- }
281
-
282
- void LegacyScriptPubKeyMan::ReturnDestination (int64_t index, bool internal, const CPubKey& pubkey)
283
- {
284
- ReturnKey (index, internal, pubkey);
285
- }
286
-
287
277
void LegacyScriptPubKeyMan::MarkUnusedAddresses (const CScript& script)
288
278
{
289
279
AssertLockHeld (cs_wallet);
@@ -1096,15 +1086,15 @@ void LegacyScriptPubKeyMan::AddKeypoolPubkeyWithDB(const CPubKey& pubkey, const
1096
1086
m_pool_key_to_index[pubkey.GetID ()] = index;
1097
1087
}
1098
1088
1099
- void LegacyScriptPubKeyMan::KeepKey (int64_t nIndex)
1089
+ void LegacyScriptPubKeyMan::KeepDestination (int64_t nIndex)
1100
1090
{
1101
1091
// Remove from key pool
1102
1092
WalletBatch batch (m_storage.GetDatabase ());
1103
1093
batch.ErasePool (nIndex);
1104
1094
WalletLogPrintf (" keypool keep %d\n " , nIndex);
1105
1095
}
1106
1096
1107
- void LegacyScriptPubKeyMan::ReturnKey (int64_t nIndex, bool fInternal , const CPubKey& pubkey)
1097
+ void LegacyScriptPubKeyMan::ReturnDestination (int64_t nIndex, bool fInternal , const CPubKey& pubkey)
1108
1098
{
1109
1099
// Return to key pool
1110
1100
{
@@ -1138,7 +1128,7 @@ bool LegacyScriptPubKeyMan::GetKeyFromPool(CPubKey& result, bool internal)
1138
1128
result = GenerateNewKey (batch, internal);
1139
1129
return true ;
1140
1130
}
1141
- KeepKey (nIndex);
1131
+ KeepDestination (nIndex);
1142
1132
result = keypool.vchPubKey ;
1143
1133
}
1144
1134
return true ;
0 commit comments