From b68c6dc5cc85223538bc83edfe9ccf88ece1ec1f Mon Sep 17 00:00:00 2001 From: ETY001 Date: Mon, 30 Dec 2019 02:54:51 +0800 Subject: [PATCH] fix transfer to new user bug --- server/libs/ChainApi.js | 2 ++ server/routes/api.js | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/server/libs/ChainApi.js b/server/libs/ChainApi.js index dd03291..56b5e85 100644 --- a/server/libs/ChainApi.js +++ b/server/libs/ChainApi.js @@ -126,6 +126,7 @@ class ChainApi { tr.add_signer(this.pKey); console.log("serialized transaction:", tr.serialize()); tr.broadcast(); + btsJs.ChainStore.clearCache(); return true; }); }).catch((err) => { @@ -190,6 +191,7 @@ class ChainApi { tr.add_signer(this.pKey); console.log("serialized transaction:", tr.serialize()); tr.broadcast(); + btsJs.ChainStore.clearCache(); return true; }); }).catch((err) => { diff --git a/server/routes/api.js b/server/routes/api.js index cff4952..f44b606 100644 --- a/server/routes/api.js +++ b/server/routes/api.js @@ -22,7 +22,6 @@ router.post('/create_user', function(req, res) { })); } ChainApi.checkUsername(data.username).then((account) => { - console.log(account); if (account !== null) { return res.send(JSON.stringify({ status: false,