mirror of
https://github.com/lnbits/lnbits.git
synced 2025-03-26 17:51:53 +01:00
fakewallet: set tag of description_hash invoice correctly (#1901)
This commit is contained in:
parent
2623e9247a
commit
172c277c2d
@ -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"]
|
||||
|
Loading…
x
Reference in New Issue
Block a user