src/main/Node.java
private boolean isTransactionOnBlockchain(Transaction tx){
        if(currentBlockchain.containsTransaction(tx)){
            return true;
        }
        return false;
    }
// Check if transaction is valid by looking at inputs and outputs
Check if transaction is valid by looking at inputs and outputs
Check if transaction is valid by looking at inputs and outputs
private boolean isTransactionOnBlockchain(Transaction tx){
        if(currentBlockchain.containsTransaction(tx)){
            return true;
        }
        return false;
    }
private boolean isTransactionOnBlockchain ( Transaction tx ) { if ( currentBlockchain . containsTransaction ( tx ) ) { return true ; } return false ; }
Check if transaction is valid by looking at inputs and outputs
Check if transaction is valid by looking at inputs and outputs