prevent posting if wallet account is being reused

revamp
lza_menace 3 years ago
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…
Cancel
Save