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

Function pushBlockTransactions

http/websocket/server.go:121–131  ·  view source on GitHub ↗
(v interface{})

Source from the content-addressed store, hash-verified

119 }
120}
121func pushBlockTransactions(v interface{}) {
122 if ws == nil {
123 return
124 }
125 resp := rest.ResponsePack(Err.SUCCESS)
126 if block, ok := v.(types.Block); ok {
127 resp["Result"] = bcomn.GetBlockTransactions(&block)
128 resp["Action"] = "sendblocktxhashs"
129 ws.BroadcastToSubscribers(nil, websocket.WSTOPIC_TXHASHS, resp)
130 }
131}

Callers 1

sendBlock2WSclientFunction · 0.85

Calls 2

ResponsePackFunction · 0.92

Tested by

no test coverage detected