6 #ifndef KAGOME_EXTRINSIC_EVENT_KEY_REPOSITORY_HPP 7 #define KAGOME_EXTRINSIC_EVENT_KEY_REPOSITORY_HPP 22 if (
auto it =
keys_.find(hash); it !=
keys_.end()) {
27 SL_DEBUG(
logger_,
"Registered tx {}, key is {}", hash, key);
32 return keys_.erase(hash) > 0;
35 std::optional<ExtrinsicKey>
get(
37 if (
auto it =
keys_.find(hash); it !=
keys_.end()) {
45 std::unordered_map<primitives::Transaction::Hash, ExtrinsicKey>
keys_;
51 #endif // KAGOME_EXTRINSIC_EVENT_KEY_REPOSITORY_HPP uint32_t SubscribedExtrinsicId
ExtrinsicEventKeyRepository()
std::unordered_map< primitives::Transaction::Hash, ExtrinsicKey > keys_
std::shared_ptr< soralog::Logger > Logger
Logger createLogger(const std::string &tag)
primitives::events::SubscribedExtrinsicId ExtrinsicKey
std::atomic< ExtrinsicKey > last_key_
ExtrinsicKey add(const primitives::Transaction::Hash &hash) noexcept