MCPcopy Create free account
hub / github.com/bcndev/bytecoin / put_is_hardware

Method put_is_hardware

src/Core/WalletHDsqlite.cpp:279–286  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

277}
278
279void WalletHDsqlite::put_is_hardware(bool ha) {
280 sqlite::Stmt stmt_update;
281 if (ha)
282 stmt_update.prepare(m_db_dbi, "REPLACE INTO unencrypted (key, value) VALUES ('is_hardware', 1)");
283 else
284 stmt_update.prepare(m_db_dbi, "DELETE FROM unencrypted WHERE key = 'is_hardware'");
285 invariant(!stmt_update.step(), "");
286}
287
288bool WalletHDsqlite::get_is_hardware() const {
289 sqlite::Stmt stmt_get;

Callers

nothing calls this directly

Calls 2

stepMethod · 0.80
prepareMethod · 0.45

Tested by

no test coverage detected