Skip to content

Commit

Permalink
Patch 0.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyenphuminh authored Jan 4, 2022
1 parent 8edb37f commit 8530501
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions jecoin.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ server.on("connection", async (socket, req) => {
if (!finished) {
tempChain.chain.push(block);
} else {
tempChain.chain.push(block);
if (Blockchain.isValid(tempChain)) {
JeChain.chain = tempChain.chain;
}
Expand All @@ -151,10 +152,10 @@ server.on("connection", async (socket, req) => {
break;

case "TYPE_REQUEST_INFO":
opened.filter(node => node.address === _message.data)[0].socket.send(
opened.filter(node => node.address === _message.data)[0].socket.send(JSON.stringify(produceMessage(
"TYPE_SEND_INFO",
[JeChain.difficulty, JeChain.transactions, JeChain.state]
);
)));

break;

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jecoin",
"version": "0.3.0",
"version": "0.3.1",
"description": "",
"main": "jecoin.js",
"scripts": {
Expand Down

0 comments on commit 8530501

Please sign in to comment.