Kagome
Polkadot Runtime Engine in C++17
extrinsic_observer_impl.hpp
Go to the documentation of this file.
1 
6 #ifndef KAGOME_CORE_NETWORK_IMPL_EXTRINSIC_OBSERVER_IMPL_HPP
7 #define KAGOME_CORE_NETWORK_IMPL_EXTRINSIC_OBSERVER_IMPL_HPP
8 
10 
11 #include "log/logger.hpp"
12 
13 namespace kagome::transaction_pool {
14  class TransactionPool;
15 }
16 
17 namespace kagome::network {
18 
20  public:
21  explicit ExtrinsicObserverImpl(
22  std::shared_ptr<kagome::transaction_pool::TransactionPool> pool);
23 
24  outcome::result<common::Hash256> onTxMessage(
25  const primitives::Extrinsic &extrinsic) override;
26 
27  private:
28  std::shared_ptr<kagome::transaction_pool::TransactionPool> pool_;
30  };
31 
32 } // namespace kagome::network
33 
34 #endif // KAGOME_CORE_NETWORK_IMPL_EXTRINSIC_OBSERVER_IMPL_HPP
std::shared_ptr< kagome::transaction_pool::TransactionPool > pool_
std::shared_ptr< soralog::Logger > Logger
Definition: logger.hpp:23
Extrinsic class represents extrinsic.
Definition: extrinsic.hpp:24