@@ -3476,7 +3476,7 @@ void CWallet::LoadActiveScriptPubKeyMan(uint256 id, OutputType type, bool intern
3476
3476
// Legacy wallets have only one ScriptPubKeyManager and it's active for all output and change types.
3477
3477
Assert (IsWalletFlagSet (WALLET_FLAG_DESCRIPTORS));
3478
3478
3479
- WalletLogPrintf (" Setting spkMan to active: id = %s, type = %d , internal = %d \n " , id.ToString (), static_cast < int > (type), static_cast < int >( internal) );
3479
+ WalletLogPrintf (" Setting spkMan to active: id = %s, type = %s , internal = %s \n " , id.ToString (), FormatOutputType (type), internal ? " true " : " false " );
3480
3480
auto & spk_mans = internal ? m_internal_spk_managers : m_external_spk_managers;
3481
3481
auto & spk_mans_other = internal ? m_external_spk_managers : m_internal_spk_managers;
3482
3482
auto spk_man = m_spk_managers.at (id).get ();
@@ -3494,7 +3494,7 @@ void CWallet::DeactivateScriptPubKeyMan(uint256 id, OutputType type, bool intern
3494
3494
{
3495
3495
auto spk_man = GetScriptPubKeyMan (type, internal);
3496
3496
if (spk_man != nullptr && spk_man->GetID () == id) {
3497
- WalletLogPrintf (" Deactivate spkMan: id = %s, type = %d , internal = %d \n " , id.ToString (), static_cast < int > (type), static_cast < int >( internal) );
3497
+ WalletLogPrintf (" Deactivate spkMan: id = %s, type = %s , internal = %s \n " , id.ToString (), FormatOutputType (type), internal ? " true " : " false " );
3498
3498
WalletBatch batch (GetDatabase ());
3499
3499
if (!batch.EraseActiveScriptPubKeyMan (static_cast <uint8_t >(type), internal)) {
3500
3500
throw std::runtime_error (std::string (__func__) + " : erasing active ScriptPubKeyMan id failed" );
0 commit comments