6 #ifndef IROHA_PROTO_BATCH_META_HPP 7 #define IROHA_PROTO_BATCH_META_HPP 11 #include <boost/range/adaptor/transformed.hpp> 14 #include "transaction.pb.h" 21 iroha::protocol::Transaction::Payload::BatchMeta &batch_meta)
22 : batch_meta_{batch_meta},
24 unsigned which = batch_meta_.GetDescriptor()
25 ->FindFieldByName(
"type")
27 ->FindValueByNumber(batch_meta_.type())
31 reduced_hashes_{boost::copy_range<ReducedHashesType>(
32 batch_meta.reduced_hashes()
33 | boost::adaptors::transformed([](
const auto &
hash) {
42 return reduced_hashes_;
46 const iroha::protocol::Transaction::Payload::BatchMeta &batch_meta_;
54 #endif // IROHA_PROTO_BATCH_META_HPP
hash256_t hash(const T &pb)
Definition: pb_common.hpp:43
BatchType
Definition: types.hpp:104
Definition: command_executor.hpp:13
static Hash fromHexString(const std::string &hex)
Definition: hash.cpp:22