From 5cd96cc027be811116b147e0614aca39ce164c6b Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Wed, 13 Jan 2021 15:46:53 -0800 Subject: account locking mechanism --- lib/send.js | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/send.js') diff --git a/lib/send.js b/lib/send.js index 232d6054..b4fc9ac9 100644 --- a/lib/send.js +++ b/lib/send.js @@ -65,6 +65,7 @@ send = async (amount, memo, hash, user) => { total = parseInt(total); fee = parseInt(fee); + await new Promise((resolve) => setTimeout(resolve, 5000)); account.balance -= total; await account.save({ transaction }); -- cgit v1.2.3