public void clearInputs ( ) { unCache ( ) ; for ( TransactionInput input : inputs ) { input . setParent ( null ) ; } inputs . clear ( ) ; // You wanted to reserialize, right? this . length = this . unsafeBitcoinSerialize ( ) . length ; }
Removes all the inputs from this transaction . Note that this also invalidates the length attribute