| 39 | // We store cumulative_difficulty->bid for bids with no children |
| 40 | |
| 41 | Block::Block(const RawBlock &rb) { |
| 42 | BlockTemplate &bheader = header; |
| 43 | seria::from_binary(bheader, rb.block); |
| 44 | transactions.reserve(rb.transactions.size()); |
| 45 | for (auto &&raw_transaction : rb.transactions) { |
| 46 | Transaction transaction; |
| 47 | seria::from_binary(transaction, raw_transaction); |
| 48 | transactions.push_back(std::move(transaction)); |
| 49 | } |
| 50 | } |
| 51 | |
| 52 | PreparedBlock::PreparedBlock(BinaryArray &&ba, const Currency ¤cy, crypto::CryptoNightContext *context) |
| 53 | : block_data(std::move(ba)) { |
nothing calls this directly
no test coverage detected