Skip to content

Commit

Permalink
fix transfer to new user bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ETY001 committed Dec 29, 2019
1 parent 635a5a9 commit b68c6dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions server/libs/ChainApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down Expand Up @@ -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) => {
Expand Down
1 change: 0 additions & 1 deletion server/routes/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit b68c6dc

Please sign in to comment.