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

Method HasActiveTxn

src/wallet/sqlite.cpp:389–393  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

387}
388
389bool SQLiteDatabase::HasActiveTxn()
390{
391 // 'sqlite3_get_autocommit' returns true by default, and false if a transaction has begun and not been committed or rolled back.
392 return m_db && sqlite3_get_autocommit(m_db) == 0;
393}
394
395int SQliteExecHandler::Exec(SQLiteDatabase& database, const std::string& statement)
396{

Callers 6

TxnBeginMethod · 0.45
TxnCommitMethod · 0.45
TxnAbortMethod · 0.45
RemoveTxsMethod · 0.45
RegisterTxnListenerMethod · 0.45
BOOST_AUTO_TEST_CASEFunction · 0.45

Calls

no outgoing calls

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.36