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

Method HasKey

src/wallet/sqlite.cpp:557–568  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

555}
556
557bool SQLiteBatch::HasKey(DataStream&& key)
558{
559 if (!m_database.m_db) return false;
560 assert(m_read_stmt);
561
562 // Bind: leftmost parameter in statement is index 1
563 if (!BindBlobToStatement(m_read_stmt, 1, key, "key")) return false;
564 int res = sqlite3_step(m_read_stmt);
565 sqlite3_clear_bindings(m_read_stmt);
566 sqlite3_reset(m_read_stmt);
567 return res == SQLITE_ROW;
568}
569
570DatabaseCursor::Status SQLiteCursor::Next(DataStream& key, DataStream& value)
571{

Callers

nothing calls this directly

Calls 1

BindBlobToStatementFunction · 0.85

Tested by

no test coverage detected