public boolean isMature ( ) { if ( ! isCoinBase ( ) ) return true ; if ( getConfidence ( ) . getConfidenceType ( ) != ConfidenceType . BUILDING ) return false ; return getConfidence ( ) . getDepthInBlocks ( ) >= params . getSpendableCoinbaseDepth ( ) ; }
A transaction is mature if it is either a building coinbase tx that is as deep or deeper than the required coinbase depth or a non - coinbase tx .