MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / Close

Method Close

src/wallet/sqlite.cpp:380–387  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

378}
379
380void SQLiteDatabase::Close()
381{
382 int res = sqlite3_close(m_db);
383 if (res != SQLITE_OK) {
384 throw std::runtime_error(strprintf("SQLiteDatabase: Failed to close database: %s\n", sqlite3_errstr(res)));
385 }
386 m_db = nullptr;
387}
388
389bool SQLiteDatabase::HasActiveTxn()
390{

Callers 4

WalletToolReleaseWalletFunction · 0.45
ExecuteWalletToolFuncFunction · 0.45
WalletToolReleaseWalletFunction · 0.45
BOOST_AUTO_TEST_CASEFunction · 0.45

Calls 2

releaseMethod · 0.80
OpenMethod · 0.45

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.36