aboutsummaryrefslogtreecommitdiffstats
path: root/jsre/ethereum_js.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2016-05-09 16:59:43 +0800
committerPéter Szilágyi <peterke@gmail.com>2016-05-09 16:59:59 +0800
commit1d42061e2c8c1f657d56b606057df537e11abf8a (patch)
tree6884a688332c3bc2ea46a8233a893f9d2672ab98 /jsre/ethereum_js.go
parentb6135a72dd01deb9ac68ee5fbcc92b61565dc9e6 (diff)
downloadgo-tangerine-1d42061e2c8c1f657d56b606057df537e11abf8a.tar
go-tangerine-1d42061e2c8c1f657d56b606057df537e11abf8a.tar.gz
go-tangerine-1d42061e2c8c1f657d56b606057df537e11abf8a.tar.bz2
go-tangerine-1d42061e2c8c1f657d56b606057df537e11abf8a.tar.lz
go-tangerine-1d42061e2c8c1f657d56b606057df537e11abf8a.tar.xz
go-tangerine-1d42061e2c8c1f657d56b606057df537e11abf8a.tar.zst
go-tangerine-1d42061e2c8c1f657d56b606057df537e11abf8a.zip
jsre: hotfix web3 for the console eth.syncing formatting
Diffstat (limited to 'jsre/ethereum_js.go')
-rw-r--r--jsre/ethereum_js.go7
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;
};