Skip to content

Commit 2dda6d3

Browse files
Merge pull request #31 from nguyenphuminh/patch-0.14.2
Patch 0.14.2
2 parents 7a3212a + 29f24b4 commit 2dda6d3

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jechain",
3-
"version": "0.14.1",
3+
"version": "0.14.2",
44
"description": "Node for JeChain - an experimental smart contract blockchain network",
55
"main": "./index.js",
66
"scripts": {

‎src/node/server.js‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,14 @@ async function startServer(options) {
329329
}
330330

331331
if (ENABLE_CHAIN_REQUEST) {
332+
for (const key of (await stateDB.keys().all())) {
333+
await stateDB.del(key);
334+
}
335+
336+
for (const key of (await blockDB.keys().all())) {
337+
await blockDB.del(key);
338+
}
339+
332340
new Promise((resolve, reject) => {
333341
const timeout = setTimeout(() => {
334342
throw new Error(`LOG :: Timeout when connecting to ${SYNC_FROM} to sync.`);

0 commit comments

Comments
 (0)