def set_payment_status(self, payment_hash: bytes, status: int) -> None:
    info = self.get_payment_info(payment_hash)
    if (info is None):
        return
    info = info._replace(status=status)
    self.save_payment_info(info)
def set_payment_status(self, payment_hash: bytes, status: int) -> None:
    info = self.get_payment_info(payment_hash)
    if (info is None):
        return
    info = info._replace(status=status)
    self.save_payment_info(info)