public synchronized boolean isSettlementTransaction ( Transaction tx ) { try { tx . verify ( ) ; tx . getInput ( 0 ) . verify ( getContractInternal ( ) . getOutput ( 0 ) ) ; return true ; } catch ( VerificationException e ) { return false ; } }
Returns true if the tx is a valid settlement transaction .