()
| 129 | } |
| 130 | |
| 131 | func InitBlockController() { |
| 132 | rpcClient := wshclient.GetBareRpcClient() |
| 133 | rpcClient.EventListener.On(wps.Event_BlockClose, handleBlockCloseEvent) |
| 134 | wshclient.EventSubCommand(rpcClient, wps.SubscriptionRequest{ |
| 135 | Event: wps.Event_BlockClose, |
| 136 | AllScopes: true, |
| 137 | }, nil) |
| 138 | } |
| 139 | |
| 140 | func handleBlockCloseEvent(event *wps.WaveEvent) { |
| 141 | blockId, ok := event.Data.(string) |
no test coverage detected