mirror of
https://github.com/lnbits/lnbits.git
synced 2025-09-20 13:04:23 +02:00
fakewallet: set tag of description_hash invoice correctly (#1901)
This commit is contained in:
@@ -62,7 +62,7 @@ class FakeWallet(Wallet):
|
|||||||
data["tags_set"] = ["h"]
|
data["tags_set"] = ["h"]
|
||||||
data["description_hash"] = description_hash
|
data["description_hash"] = description_hash
|
||||||
elif unhashed_description:
|
elif unhashed_description:
|
||||||
data["tags_set"] = ["d"]
|
data["tags_set"] = ["h"]
|
||||||
data["description_hash"] = hashlib.sha256(unhashed_description).digest()
|
data["description_hash"] = hashlib.sha256(unhashed_description).digest()
|
||||||
else:
|
else:
|
||||||
data["tags_set"] = ["d"]
|
data["tags_set"] = ["d"]
|
||||||
|
Reference in New Issue
Block a user