diff options
| author | Adam Soltys <[email protected]> | 2021-01-13 15:46:53 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2021-01-13 16:11:11 -0800 |
| commit | 5cd96cc027be811116b147e0614aca39ce164c6b (patch) | |
| tree | a9d7d9096bc4ea5bb7049500571e9641b50177d7 /lib/send.js | |
| parent | eb860d78b836d810f7c29d5587e17321adf20bef (diff) | |
| download | coinos-server-5cd96cc027be811116b147e0614aca39ce164c6b.tar.gz coinos-server-5cd96cc027be811116b147e0614aca39ce164c6b.zip | |
account locking mechanism
Diffstat (limited to 'lib/send.js')
| -rw-r--r-- | lib/send.js | 1 |
1 files changed, 1 insertions, 0 deletions
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 }); |
