Kagome
Polkadot Runtime Engine in C++17
tagged_transaction_queue.cpp
Go to the documentation of this file.
1 
7 
10 
11 namespace kagome::runtime {
12 
14  std::shared_ptr<Executor> executor)
15  : executor_{std::move(executor)},
16  logger_{log::createLogger("TaggedTransactionQueue", "runtime")} {
17  BOOST_ASSERT(executor_);
18  }
19 
21  std::shared_ptr<blockchain::BlockTree> block_tree) {
22  block_tree_ = std::move(block_tree);
23  }
24 
25  outcome::result<primitives::TransactionValidity>
28  BOOST_ASSERT(block_tree_);
29  auto hash = block_tree_->deepestLeaf().hash;
30  SL_TRACE(logger_, "Validate transaction called at {}", hash.toHex());
32  hash, "TaggedTransactionQueue_validate_transaction", source, ext, hash);
33  }
34 
35 } // namespace kagome::runtime
outcome::result< primitives::TransactionValidity > validate_transaction(primitives::TransactionSource source, const primitives::Extrinsic &ext) override
TaggedTransactionQueueImpl(std::shared_ptr< Executor > executor)
std::shared_ptr< blockchain::BlockTree > block_tree_
void setBlockTree(std::shared_ptr< blockchain::BlockTree > block_tree)
boost::variant< ValidTransaction, TransactionValidityError > TransactionValidity
Extrinsic class represents extrinsic.
Definition: extrinsic.hpp:24
Logger createLogger(const std::string &tag)
Definition: logger.cpp:112