mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2024-11-20 10:39:59 +01:00
Replaced rustys hashed for hash
This commit is contained in:
parent
31e300e05b
commit
615abffeb4
@ -134,8 +134,8 @@ def encode(options):
|
|||||||
|
|
||||||
if options.description:
|
if options.description:
|
||||||
addr.tags.append(("d", options.description))
|
addr.tags.append(("d", options.description))
|
||||||
if options.description_hashed:
|
if options.description_hash:
|
||||||
addr.tags.append(("h", options.description_hashed))
|
addr.tags.append(("h", options.description_hash))
|
||||||
if options.expires:
|
if options.expires:
|
||||||
addr.tags.append(("x", options.expires))
|
addr.tags.append(("x", options.expires))
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@ class FakeWallet(Wallet):
|
|||||||
self.paymenthash = ""
|
self.paymenthash = ""
|
||||||
self.privkey = getenv("FAKE_WALLET_KEY")
|
self.privkey = getenv("FAKE_WALLET_KEY")
|
||||||
self.memo = ""
|
self.memo = ""
|
||||||
self.description_hashed = ""
|
self.description_hash = ""
|
||||||
self.description = ""
|
self.description = ""
|
||||||
self.fallback = None
|
self.fallback = None
|
||||||
self.expires = None
|
self.expires = None
|
||||||
@ -48,7 +48,7 @@ class FakeWallet(Wallet):
|
|||||||
self.timestamp = datetime.now().timestamp()
|
self.timestamp = datetime.now().timestamp()
|
||||||
if description_hash:
|
if description_hash:
|
||||||
self.tags_set = {"h"}
|
self.tags_set = {"h"}
|
||||||
self.description_hashed = description_hash.hex()
|
self.description_hash = description_hash.hex()
|
||||||
else:
|
else:
|
||||||
self.tags_set = {"d"}
|
self.tags_set = {"d"}
|
||||||
self.memo = memo
|
self.memo = memo
|
||||||
|
Loading…
Reference in New Issue
Block a user