Browse Source

Calling UnregisterAllWallets() instead of UnregisterWallet(pwalletMain) in init.cpp

pull/145/head
Eric Lombrozo 12 years ago
parent
commit
e6fe8e77fb
  1. 2
      src/init.cpp
  2. 2
      src/main.h

2
src/init.cpp

@ -119,7 +119,7 @@ void Shutdown()
}
bitdb.Flush(true);
boost::filesystem::remove(GetPidFile());
UnregisterWallet(pwalletMain);
UnregisterAllWallets();
delete pwalletMain;
}

2
src/main.h

@ -119,6 +119,8 @@ struct CBlockTemplate;
void RegisterWallet(CWallet* pwalletIn);
/** Unregister a wallet from core */
void UnregisterWallet(CWallet* pwalletIn);
/** Unregister all wallets from core */
void UnregisterAllWallets();
/** Push an updated transaction to all registered wallets */
void SyncWithWallets(const uint256 &hash, const CTransaction& tx, const CBlock* pblock = NULL, bool fUpdate = false);

Loading…
Cancel
Save