Ethereum Blockchain fully Sync status recognized

This commit is contained in:
Luis Fernando Molina committed 2020-11-17 13:58:13 +01:00
1 parent dff8fc1e18
commit 9bf8c2eed6
16 files changed
+59 -40

No files matched your search

+1
View File
@@ -68,6 +68,7 @@ exports.newWeb3Server = function newWeb3Server() {
let status = {}
status.isSyncing = await web3.eth.isSyncing()
status.chainId = await web3.eth.getChainId()
status.currentBlockNumber = await web3.eth.getBlockNumber()
status.result = 'Ok'
return status
}