src/main/Wallet.java
public float updateBalance(){
		float total = 0;	
        for (Map.Entry<String, TransactionOutput> item: currentBlockchain.UTXOs.entrySet()){
        	TransactionOutput UTXO = item.getValue();
            if(UTXO.isMine(publicKey) && !walletUTXOs.containsKey(UTXO.id)) { // if output belongs to me ( if coins belong to me )
            	walletUTXOs.put(UTXO.id,UTXO); // add it to our list of unspent transactions.
            	total += UTXO.value ; 
            }
		}
		return total;
	}
// Then returns the sum of the values for these UTXOs
Then returns the sum of the values for these UTXOs
Then returns the sum of the values for these UTXOs
public float updateBalance(){
		float total = 0;	
        for (Map.Entry<String, TransactionOutput> item: currentBlockchain.UTXOs.entrySet()){
        	TransactionOutput UTXO = item.getValue();
            if(UTXO.isMine(publicKey) && !walletUTXOs.containsKey(UTXO.id)) { 
            	walletUTXOs.put(UTXO.id,UTXO); 
            	total += UTXO.value ; 
            }
		}
		return total;
	}
public float updateBalance ( ) { float total = 0 ; for ( Map . Entry < String , TransactionOutput > item : currentBlockchain . UTXOs . entrySet ( ) ) { TransactionOutput UTXO = item . getValue ( ) ; if ( UTXO . isMine ( publicKey ) && ! walletUTXOs . containsKey ( UTXO . id ) ) { walletUTXOs . put ( UTXO . id , UTXO ) ; total += UTXO . value ; } } return total ; }
Then returns the sum of the values for these UTXOs
Then returns the sum of the values for these UTXOs
// if output belongs to me ( if coins belong to me ) // add it to our list of unspent transactions.