fakewallet: set tag of description_hash invoice correctly (#1901)
This commit is contained in:
parent
2623e9247a
commit
172c277c2d
1 changed files with 1 additions and 1 deletions
|
|
@ -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"]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue