fakewallet: set tag of description_hash invoice correctly (#1901)

This commit is contained in:
callebtc 2023-08-28 12:02:58 +02:00 committed by GitHub
parent 2623e9247a
commit 172c277c2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -62,7 +62,7 @@ class FakeWallet(Wallet):
data["tags_set"] = ["h"]
data["description_hash"] = description_hash
elif unhashed_description:
data["tags_set"] = ["d"]
data["tags_set"] = ["h"]
data["description_hash"] = hashlib.sha256(unhashed_description).digest()
else:
data["tags_set"] = ["d"]