| 507 | } |
| 508 | |
| 509 | Hash cn::get_transaction_prefix_hash(const TransactionPrefix &tx) { |
| 510 | BinaryArray ba = seria::to_binary(tx); |
| 511 | // std::cout << "get_transaction_prefix_hash body=" << common::to_hex(ba) << std::endl; |
| 512 | return crypto::cn_fast_hash(ba.data(), ba.size()); |
| 513 | } |
| 514 | |
| 515 | Hash cn::get_transaction_hash(const Transaction &tx) { |
| 516 | if (tx.version >= parameters::TRANSACTION_VERSION_AMETHYST) { |
nothing calls this directly
no test coverage detected