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

Method AppendTxHash

http/websocket/session/session.go:126–130  ·  view source on GitHub ↗

append transaction hash

(txhash string)

Source from the content-addressed store, hash-verified

124
125//append transaction hash
126func (self *Session) AppendTxHash(txhash string) {
127 self.Lock()
128 defer self.Unlock()
129 self.TxHashArr = append(self.TxHashArr, TxHashInfo{txhash, time.Now().Unix()})
130}

Callers 1

OnDataHandleMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected