func (server *OpencxServer) StartChainhookHandlers(wallet *wallit.Wallit) {
	hook := wallet.ExportHook()

	server.hookMtx.Lock()
	server.HookMap[wallet.Param] = &hook
	server.hookMtx.Unlock()

	hookBlockChan := hook.NewRawBlocksChannel()
	currentHeightChan := hook.NewHeightChannel()

	logging.Infof("Successfully set up chainhook from wallet, starting handlers")
	go server.ChainHookHeightHandler(currentHeightChan, hookBlockChan, wallet.Param)

}
// StartChainhookHandlers gets the channels from the wallet's chainhook and starts a handler.
StartChainhookHandlers gets the channels from the wallet's chainhook and starts a handler.
// StartChainhookHandlers gets the channels from the wallet ' s chainhook and starts a handler .
func (server *OpencxServer) StartChainhookHandlers(wallet *wallit.Wallit) {
	hook := wallet.ExportHook()
	server.hookMtx.Lock()
	server.HookMap[wallet.Param] = &hook
	server.hookMtx.Unlock()
	hookBlockChan := hook.NewRawBlocksChannel()
	currentHeightChan := hook.NewHeightChannel()
	logging.Infof("Successfully set up chainhook from wallet, starting handlers")
	go server.ChainHookHeightHandler(currentHeightChan, hookBlockChan, wallet.Param)
}
func ( server * OpencxServer ) StartChainhookHandlers ( wallet * wallit . Wallit ) { hook := wallet . ExportHook ( ) server . hookMtx . Lock ( ) server . HookMap [ wallet . Param ] = & hook server . hookMtx . Unlock ( ) hookBlockChan := hook . NewRawBlocksChannel ( ) currentHeightChan := hook . NewHeightChannel ( ) logging . Infof ( " " ) go server . ChainHookHeightHandler ( currentHeightChan , hookBlockChan , wallet . Param ) }
StartChainhookHandlers gets the channels from the wallet's chainhook and starts a handler.
StartChainhookHandlers gets the channels from the wallet ' s chainhook and starts a handler .