CatapultServer
v0.5.0.1 (Elephant)
|
Namespaces | |
catapult | |
catapult::observers | |
Functions | |
catapult::observers::DEFINE_OBSERVER (TransactionHash, model::TransactionNotification, [](const auto ¬ification, const ObserverContext &context) { auto timestampedHash=state::TimestampedHash(notification.Deadline, notification.TransactionHash);auto &cache=context.Cache.sub< cache::HashCache >();if(NotifyMode::Commit==context.Mode) cache.insert(timestampedHash);else cache.remove(timestampedHash);}) | |