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

Method get_latest_checkpoints

src/Core/BlockChain.cpp:1036–1043  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1034}
1035
1036std::vector<SignedCheckpoint> BlockChain::get_latest_checkpoints() const {
1037 std::vector<SignedCheckpoint> result;
1038 for (DB::Cursor cur = m_db.begin(CHECKPOINT_PREFIX_LATEST); !cur.end(); cur.next()) {
1039 result.push_back(SignedCheckpoint{});
1040 seria::from_binary(result.back(), cur.get_value_array());
1041 }
1042 return result;
1043}
1044
1045std::vector<SignedCheckpoint> BlockChain::get_stable_checkpoints() const {
1046 std::vector<SignedCheckpoint> result;

Callers 1

after_handshakeMethod · 0.80

Calls 5

from_binaryFunction · 0.85
beginMethod · 0.45
endMethod · 0.45
nextMethod · 0.45
get_value_arrayMethod · 0.45

Tested by

no test coverage detected