From 62e040e9f2820c780ff5f99403d2eb13e3771ac7 Mon Sep 17 00:00:00 2001 From: Dean <44520474+kona3266@users.noreply.github.com> Date: Wed, 14 Jun 2023 22:00:45 +0800 Subject: [PATCH] Update cli.go fix nodeaddess empty when send coins. --- cli.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cli.go b/cli.go index b597b4c..ae43776 100644 --- a/cli.go +++ b/cli.go @@ -39,6 +39,7 @@ func (cli *CLI) Run() { fmt.Printf("NODE_ID env. var is not set!") os.Exit(1) } + nodeAddress = fmt.Sprintf("localhost:%s", nodeID) getBalanceCmd := flag.NewFlagSet("getbalance", flag.ExitOnError) createBlockchainCmd := flag.NewFlagSet("createblockchain", flag.ExitOnError)