def save_payment_info(self, info: PaymentInfo) -> None:
    key = info.payment_hash.hex()
    assert (info.status in SAVED_PR_STATUS)
    with self.lock:
        self.payments[key] = (info.amount_msat, info.direction, info.status)
    self.wallet.save_db()
def save_payment_info(self, info: PaymentInfo) -> None:
    key = info.payment_hash.hex()
    assert (info.status in SAVED_PR_STATUS)
    with self.lock:
        self.payments[key] = (info.amount_msat, info.direction, info.status)
    self.wallet.save_db()