def METHOD_NAME(self, tx: BaseTransaction, partial: bool = True) -> None:
    validation = tx.get_metadata().validation
    if validation.is_fully_connected():
        # discover if new txs are ready because of this tx
        self._update_new_deps_ready(tx)
        # finally remove from rev deps
        self._del_from_deps_index(tx)
    elif not partial:
        raise ValueError('partial=False will only accept fully connected transactions')
    else:
        self._add_deps(tx)
        self._add_needed(tx)