code: public void connect(TransactionOutput out) {
          outpoint.fromTx = out.getParentTransaction();
          out.markAsSpent(this);
          value = out.getValue();
      }
docs: Internal use only: connects this TransactionInput to the given output (updates pointers and spent flags)