Ethereum Blockchain fully Sync status recognized
This commit is contained in:
1 parent
dff8fc1e18
commit
9bf8c2eed6
16 files changed
+59
-40
No files matched your search
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user