Allow blank senders for first attempts
This commit is contained in:
parent
94429d0aaa
commit
6a130592b6
|
@ -222,6 +222,8 @@ class Transactions(util.Base):
|
|||
"""
|
||||
key = f"namemap.{platform}.{platform_buyer}"
|
||||
senders = r.smembers(key)
|
||||
if not senders:
|
||||
return None
|
||||
senders = util.convert(senders)
|
||||
return senders
|
||||
|
||||
|
@ -238,6 +240,9 @@ class Transactions(util.Base):
|
|||
:rtype: bool
|
||||
"""
|
||||
senders = self.get_previous_senders(platform, platform_buyer)
|
||||
if senders is None: # no senders yet, assume it's valid
|
||||
print("Senders is none, assuming its a valid TX!")
|
||||
return True
|
||||
if platform_buyer in senders:
|
||||
print("Platform buyer is in senders!")
|
||||
return True
|
||||
|
|
Loading…
Reference in New Issue