(v interface{})
| 119 | } |
| 120 | } |
| 121 | func 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 | } |
no test coverage detected