| catapult::observers::DEFINE_OBSERVER (ModifyMultisigSettings, Notification, [](const Notification ¬ification, const ObserverContext &context) { auto &multisigCache=context.Cache.sub< cache::MultisigCache >();auto isNotContained=!multisigCache.contains(notification.Signer);if(isNotContained &&observers::NotifyMode::Commit==context.Mode) return;if(isNotContained) multisigCache.insert(state::MultisigEntry(notification.Signer));auto multisigIter=multisigCache.find(notification.Signer);auto &multisigEntry=multisigIter.get();int8_t direction=NotifyMode::Commit==context.Mode ? 1 :-1;multisigEntry.setMinApproval(AddDelta(multisigEntry.minApproval(), direction *notification.MinApprovalDelta));multisigEntry.setMinRemoval(AddDelta(multisigEntry.minRemoval(), direction *notification.MinRemovalDelta));}) |