| 248 | } |
| 249 | |
| 250 | void LegacyBlockChainWriter::write_block(const RawBlock &raw_block) { |
| 251 | BinaryArray ba = seria::to_binary(raw_block); |
| 252 | m_items_file.write(ba.data(), ba.size()); |
| 253 | uint32_t si = static_cast<uint32_t>(ba.size()); |
| 254 | m_indexes_file.write(&si, sizeof si); |
| 255 | } |
| 256 | |
| 257 | bool LegacyBlockChainWriter::export_blockchain2(const std::string &index_file_name, const std::string &item_file_name, |
| 258 | const BlockChainState &block_chain, Height max_height) { |
no test coverage detected