Kagome
Polkadot Runtime Engine in C++17
extrinsic_observer_impl.cpp
Go to the documentation of this file.
1 
7 
10 
11 namespace kagome::network {
12 
14  std::shared_ptr<kagome::transaction_pool::TransactionPool> pool)
15  : pool_(std::move(pool)) {
16  BOOST_ASSERT(pool_);
17  }
18 
19  outcome::result<common::Hash256> ExtrinsicObserverImpl::onTxMessage(
20  const primitives::Extrinsic &extrinsic) {
21  return pool_->submitExtrinsic(primitives::TransactionSource::External,
22  extrinsic);
23  }
24 
25 } // namespace kagome::network
ExtrinsicObserverImpl(std::shared_ptr< kagome::transaction_pool::TransactionPool > pool)
STL namespace.
outcome::result< common::Hash256 > onTxMessage(const primitives::Extrinsic &extrinsic) override
std::shared_ptr< kagome::transaction_pool::TransactionPool > pool_
Extrinsic class represents extrinsic.
Definition: extrinsic.hpp:24