docs: public ConnectionResult connect(Map<Sha256Hash, Transaction> transactions, ConnectMode mode) {
          Transaction tx = transactions.get(outpoint.getHash());
          if (tx == null) {
              return TransactionInput.ConnectionResult.NO_SUCH_TX;
          }
          return connect(tx, mode);
      }