CatapultServer  v0.5.0.1 (Elephant)
ModifyMultisigCosignersObserver.cpp File Reference
Include dependency graph for ModifyMultisigCosignersObserver.cpp:

Namespaces

 catapult
 
 catapult::observers
 

Functions

 catapult::observers::DEFINE_OBSERVER (ModifyMultisigCosigners, Notification, [](const auto &notification, const ObserverContext &context) { auto &multisigCache=context.Cache.sub< cache::MultisigCache >();MultisigAccountFacade multisigAccountFacade(multisigCache, notification.Signer);const auto *pModifications=notification.ModificationsPtr;for(auto i=0u;i< notification.ModificationsCount;++i) { auto isNotificationAdd=model::CosignatoryModificationType::Add==pModifications[i].ModificationType;auto isNotificationForward=NotifyMode::Commit==context.Mode;if(isNotificationAdd==isNotificationForward) multisigAccountFacade.addCosignatory(pModifications[i].CosignatoryPublicKey);else multisigAccountFacade.removeCosignatory(pModifications[i].CosignatoryPublicKey);} })
 

Variable Documentation

◆ m_multisigAccountKey

const Key& m_multisigAccountKey
private

◆ m_multisigCache

cache::MultisigCacheDelta& m_multisigCache
private

◆ m_multisigEntry

state::MultisigEntry& m_multisigEntry
private

◆ m_multisigIter

cache::MultisigCacheDelta::iterator m_multisigIter
private