src/main/Blockchain.java
public boolean containsTransaction(Transaction tx){
        for(Block block : blockChain){
            if(block.transactions.contains(tx)){
                return true;
            }
        }
        return false;
    }
// Report if a transaction is contained on the blockchain
Report if a transaction is contained on the blockchain
Report if a transaction is contained on the blockchain
public boolean containsTransaction(Transaction tx){
        for(Block block : blockChain){
            if(block.transactions.contains(tx)){
                return true;
            }
        }
        return false;
    }
public boolean containsTransaction ( Transaction tx ) { for ( Block block : blockChain ) { if ( block . transactions . contains ( tx ) ) { return true ; } } return false ; }
Report if a transaction is contained on the blockchain
Report if a transaction is contained on the blockchain