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

Method db_commit

src/Core/WalletState.cpp:146–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144}
145
146void WalletState::db_commit() {
147 if (m_wallet.is_amethyst()) {
148 m_db.put("$address_count", seria::to_binary(m_wallet.get_actual_records_count()), false);
149 m_db.put("$oldest_timestamp", seria::to_binary(m_wallet.get_oldest_timestamp()), false);
150 }
151 WalletStateBasic::db_commit();
152}
153
154void WalletState::wallet_addresses_updated() {
155 if (m_wallet.is_amethyst())

Callers

nothing calls this directly

Calls 5

to_binaryFunction · 0.85
is_amethystMethod · 0.45
putMethod · 0.45
get_oldest_timestampMethod · 0.45

Tested by

no test coverage detected