| 546 | } |
| 547 | |
| 548 | BinaryArray cn::get_block_pow_hashing_data(const BlockHeader &bh, |
| 549 | const BlockBodyProxy &body_proxy, |
| 550 | const Hash &genesis_block_hash) { |
| 551 | common::BinaryArray result; |
| 552 | common::VectorOutputStream stream(result); |
| 553 | seria::BinaryOutputStream ba(stream); |
| 554 | ba.begin_object(); |
| 555 | ser_members(const_cast<BlockHeader &>(bh), ba, BlockSeriaType::LONG_BLOCKHASH, body_proxy, genesis_block_hash); |
| 556 | ba.end_object(); |
| 557 | return result; |
| 558 | } |