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

Method db_commit

src/p2p/PeerDB.cpp:60–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60void PeerDB::db_commit() {
61 db.commit_db_txn();
62 commit_timer.once(float(config.db_commit_period_peers));
63}
64
65void PeerDB::read_db(const std::string &prefix, peers_indexed &list) {
66 list.clear();

Callers

nothing calls this directly

Calls 2

onceMethod · 0.80
commit_db_txnMethod · 0.45

Tested by

no test coverage detected