Kagome
Polkadot Runtime Engine in C++17
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
extrinsic_observer_impl.cpp
Go to the documentation of this file.
1
6
#include "
network/impl/extrinsic_observer_impl.hpp
"
7
8
#include "
primitives/transaction_validity.hpp
"
9
#include "
transaction_pool/transaction_pool.hpp
"
10
11
namespace
kagome::network
{
12
13
ExtrinsicObserverImpl::ExtrinsicObserverImpl
(
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
kagome::network::ExtrinsicObserverImpl::ExtrinsicObserverImpl
ExtrinsicObserverImpl(std::shared_ptr< kagome::transaction_pool::TransactionPool > pool)
Definition:
extrinsic_observer_impl.cpp:13
std
STL namespace.
kagome::network::ExtrinsicObserverImpl::onTxMessage
outcome::result< common::Hash256 > onTxMessage(const primitives::Extrinsic &extrinsic) override
Definition:
extrinsic_observer_impl.cpp:19
kagome::network::ExtrinsicObserverImpl::pool_
std::shared_ptr< kagome::transaction_pool::TransactionPool > pool_
Definition:
extrinsic_observer_impl.hpp:28
kagome::primitives::TransactionSource::External
extrinsic_observer_impl.hpp
transaction_pool.hpp
kagome::primitives::Extrinsic
Extrinsic class represents extrinsic.
Definition:
extrinsic.hpp:24
kagome::network
Definition:
author_api_impl.hpp:37
transaction_validity.hpp
core
network
impl
extrinsic_observer_impl.cpp
Generated by
1.8.11