mirror of
https://github.com/status-im/snt-gas-relay.git
synced 2025-01-28 23:24:54 +00:00
Closing process on heartbeat error
This commit is contained in:
parent
2f7ecaaec7
commit
79abda8091
@ -83,7 +83,10 @@ events.on('setup:complete', (settings) => {
|
|||||||
powTime: config.node.whisper.powTime,
|
powTime: config.node.whisper.powTime,
|
||||||
topic: web3.utils.toHex("relay-heartbeat-" + heartbeatPayload.symbol).slice(0, 10),
|
topic: web3.utils.toHex("relay-heartbeat-" + heartbeatPayload.symbol).slice(0, 10),
|
||||||
payload: web3.utils.toHex(JSON.stringify(heartbeatPayload))
|
payload: web3.utils.toHex(JSON.stringify(heartbeatPayload))
|
||||||
}).catch(console.error);
|
}).catch((err) => {
|
||||||
|
console.error(err);
|
||||||
|
process.exit(-1);
|
||||||
|
});
|
||||||
}, 60000);
|
}, 60000);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user