| 1034 | } |
| 1035 | |
| 1036 | std::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 | |
| 1045 | std::vector<SignedCheckpoint> BlockChain::get_stable_checkpoints() const { |
| 1046 | std::vector<SignedCheckpoint> result; |
no test coverage detected