func registerAddressMenu(btcClient *bitcoindwrapper.Bitcoind, lnClient *lndwrapper.Lnd) [4]byte {

	//Check if we should prompt the address to the user
	address := getValidAddressFromUser()
	hash, err := ldrlib.BroadcastNewAddressTx(btcClient, lnClient, address)
	if err != nil {
		log.Fatal(err)
	}
	log.Println("Registered '", address, "'. Tx Hash: ", hash)
	return address
}
//Registers a new address and if the address to be registered is set to nil prompts the user for it
Registers a new address and if the address to be registered is set to nil prompts the user for it
// Registers a new address and if the address to be registered is set to nil prompts the user for it
func registerAddressMenu(btcClient *bitcoindwrapper.Bitcoind, lnClient *lndwrapper.Lnd) [4]byte {
	address := getValidAddressFromUser()
	hash, err := ldrlib.BroadcastNewAddressTx(btcClient, lnClient, address)
	if err != nil {
		log.Fatal(err)
	}
	log.Println("Registered '", address, "'. Tx Hash: ", hash)
	return address
}
func registerAddressMenu ( btcClient * bitcoindwrapper . Bitcoind , lnClient * lndwrapper . Lnd ) [ 4 ] byte { address := getValidAddressFromUser ( ) hash , err := ldrlib . BroadcastNewAddressTx ( btcClient , lnClient , address ) if err != nil { log . Fatal ( err ) } log . Println ( " " , address , " " , hash ) return address }
Registers a new address and if the address to be registered is set to nil prompts the user for it
Registers a new address and if the address to be registered is set to nil prompts the user for it
//Check if we should prompt the address to the user