prevent posting if wallet account is being reused
This commit is contained in:
parent
af87610e60
commit
8c546a07eb
|
@ -87,6 +87,10 @@ def create():
|
|||
try:
|
||||
wallet = wownero.Wallet()
|
||||
account_index = wallet.new_account()
|
||||
in_use = Post.select().where(Post.account_index == account_index).first()
|
||||
if in_use:
|
||||
flash("Suchwow wallet is fucked up! Try again later.", "is-danger")
|
||||
return redirect(request.url)
|
||||
except:
|
||||
flash("Suchwow wallet is fucked up! Try again later.", "is-danger")
|
||||
return redirect(request.url)
|
||||
|
|
Loading…
Reference in New Issue