public int getParentTransactionDepthInBlocks ( ) { if ( getParentTransaction ( ) != null ) { TransactionConfidence confidence = getParentTransaction ( ) . getConfidence ( ) ; if ( confidence . getConfidenceType ( ) == TransactionConfidence . ConfidenceType . BUILDING ) { return confidence . getDepthInBlocks ( ) ; } } return - 1 ; }
Returns the depth in blocks of the parent tx .