mirror of
https://github.com/wownero/tippero.git
synced 2026-10-17 15:51:33 +02:00
Create accounts on linking if they do not exist
This can happen if someone tries to link to another account before doing any other action that creates an account.
This commit is contained in:
+2
-2
@@ -349,8 +349,8 @@ def LinkCore(link,other_identity):
|
||||
if links:
|
||||
if identity in links.split(chr(0)):
|
||||
# we have both
|
||||
account=redis_hget('accounts',identity)
|
||||
other_account=redis_hget('accounts',other_identity)
|
||||
account=GetAccount(identity)
|
||||
other_account=GetAccount(other_identity)
|
||||
if account==other_account:
|
||||
log_info('%s and %s already have the same account: %s' % (identity,other_identity,account))
|
||||
return True, "same-account"
|
||||
|
||||
Reference in New Issue
Block a user