Kagome
Polkadot Runtime Engine in C++17
tagged_transaction_queue.hpp
Go to the documentation of this file.
1 
6 #ifndef KAGOME_RUNTIME_IMPL_TAGGED_TRANSACTION_QUEUE_HPP
7 #define KAGOME_RUNTIME_IMPL_TAGGED_TRANSACTION_QUEUE_HPP
8 
10 
11 #include "log/logger.hpp"
12 
13 namespace kagome::blockchain {
14  class BlockTree;
15 }
16 
17 namespace kagome::runtime {
18 
19  class Executor;
20 
22  public:
23  explicit TaggedTransactionQueueImpl(std::shared_ptr<Executor> executor);
24 
25  void setBlockTree(std::shared_ptr<blockchain::BlockTree> block_tree);
26 
27  outcome::result<primitives::TransactionValidity> validate_transaction(
29  const primitives::Extrinsic &ext) override;
30 
31  private:
32  std::shared_ptr<Executor> executor_;
33  std::shared_ptr<blockchain::BlockTree> block_tree_;
35  };
36 
37 } // namespace kagome::runtime
38 
39 #endif // KAGOME_TAGGED_TRANSACTION_QUEUE_HPP
std::shared_ptr< blockchain::BlockTree > block_tree_
std::shared_ptr< soralog::Logger > Logger
Definition: logger.hpp:23
Extrinsic class represents extrinsic.
Definition: extrinsic.hpp:24