diff --git a/blockchain.go b/blockchain.go index 040f6ae..ccb5979 100644 --- a/blockchain.go +++ b/blockchain.go @@ -85,7 +85,6 @@ func (bc *Blockchain) FindUnspentTransactions(address string) []*Transaction { if out.CanBeUnlockedWith(address) { unspentTXs = append(unspentTXs, tx) - continue Outputs } } diff --git a/cli.go b/cli.go index d125686..fb407a0 100644 --- a/cli.go +++ b/cli.go @@ -22,7 +22,6 @@ func (cli *CLI) getBalance(address string) { defer bc.db.Close() balance := 0 - utxs := bc.FindUnspentTransactions(address) for _, tx := range utxs {