diff options
author | Péter Szilágyi <peterke@gmail.com> | 2016-05-09 17:46:48 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2016-05-09 17:46:48 +0800 |
commit | dc7f202ecd39db925c2d425fea36084efcda5ecc (patch) | |
tree | 6884a688332c3bc2ea46a8233a893f9d2672ab98 | |
parent | b6135a72dd01deb9ac68ee5fbcc92b61565dc9e6 (diff) | |
parent | 1d42061e2c8c1f657d56b606057df537e11abf8a (diff) | |
download | dexon-dc7f202ecd39db925c2d425fea36084efcda5ecc.tar dexon-dc7f202ecd39db925c2d425fea36084efcda5ecc.tar.gz dexon-dc7f202ecd39db925c2d425fea36084efcda5ecc.tar.bz2 dexon-dc7f202ecd39db925c2d425fea36084efcda5ecc.tar.lz dexon-dc7f202ecd39db925c2d425fea36084efcda5ecc.tar.xz dexon-dc7f202ecd39db925c2d425fea36084efcda5ecc.tar.zst dexon-dc7f202ecd39db925c2d425fea36084efcda5ecc.zip |
Merge pull request #2528 from karalabe/fix-web3-eth_syncing
jsre: hotfix web3 for the console eth.syncing formatting
-rw-r--r-- | jsre/ethereum_js.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/jsre/ethereum_js.go b/jsre/ethereum_js.go index dfdedeb11..79ce1d2e2 100644 --- a/jsre/ethereum_js.go +++ b/jsre/ethereum_js.go @@ -3911,7 +3911,12 @@ var outputSyncingFormatter = function(result) { result.startingBlock = utils.toDecimal(result.startingBlock); result.currentBlock = utils.toDecimal(result.currentBlock); result.highestBlock = utils.toDecimal(result.highestBlock); - + if (result.knownStates !== undefined) { + result.knownStates = utils.toDecimal(result.knownStates); + } + if (result.pulledStates !== undefined) { + result.pulledStates = utils.toDecimal(result.pulledStates); + } return result; }; |