Skip to content

Commit 6c26ff1

Browse files
committed
[ETCM-135] Fix serialization issue in eth_syncing
1 parent 29ca2af commit 6c26ff1

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/main/scala/io/iohk/ethereum/jsonrpc/EthService.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -621,8 +621,8 @@ class EthService(
621621
startingBlock = startingBlockNumber,
622622
currentBlock = blocksProgress.current,
623623
highestBlock = blocksProgress.target,
624-
knownStates = stateNodesProgress.current,
625-
pulledStates = stateNodesProgress.target
624+
knownStates = stateNodesProgress.target,
625+
pulledStates = stateNodesProgress.current
626626
)
627627
)
628628
)

src/test/scala/io/iohk/ethereum/jsonrpc/EthServiceSpec.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -509,8 +509,8 @@ class EthServiceSpec
509509
startingBlock = 999,
510510
currentBlock = 200,
511511
highestBlock = 10000,
512-
knownStates = 100,
513-
pulledStates = 144
512+
knownStates = 144,
513+
pulledStates = 100
514514
)
515515
)
516516
)

src/test/scala/io/iohk/ethereum/jsonrpc/JsonRpcControllerEthSpec.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ class JsonRpcControllerEthSpec
8585
"startingBlock" -> "0x3e7",
8686
"currentBlock" -> "0xc8",
8787
"highestBlock" -> "0x2710",
88-
"knownStates" -> "0x64",
89-
"pulledStates" -> "0x90"
88+
"knownStates" -> "0x90",
89+
"pulledStates" -> "0x64"
9090
)
9191
}
9292

0 commit comments

Comments
 (0)