MCPcopy Create free account
hub / github.com/DNAProject/DNA / SaveNotify

Function SaveNotify

core/store/ledgerstore/tx_handler.go:131–140  ·  view source on GitHub ↗
(eventStore scommon.EventStore, txHash common.Uint256, notify *event.ExecuteNotify)

Source from the content-addressed store, hash-verified

129}
130
131func SaveNotify(eventStore scommon.EventStore, txHash common.Uint256, notify *event.ExecuteNotify) error {
132 if !sysconfig.DefConfig.Common.EnableEventLog {
133 return nil
134 }
135 if err := eventStore.SaveEventNotifyByTx(txHash, notify); err != nil {
136 return fmt.Errorf("SaveEventNotifyByTx error %s", err)
137 }
138 event.PushSmartCodeEvent(txHash, 0, event.EVENT_NOTIFY, notify)
139 return nil
140}
141
142func refreshGlobalParam(config *smartcontract.Config, cache *storage.CacheDB, store store.LedgerStore) error {
143 sink := common.NewZeroCopySink(nil)

Callers 1

saveBlockToStateStoreMethod · 0.85

Calls 3

PushSmartCodeEventFunction · 0.92
ErrorfMethod · 0.80
SaveEventNotifyByTxMethod · 0.65

Tested by

no test coverage detected