Skip to content

Commit 794d398

Browse files
committed
[ETCM-135] Fix serialization issue in eth_syncing
1 parent 60cfdc2 commit 794d398

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
@@ -506,8 +506,8 @@ class EthServiceSpec
506506
startingBlock = 999,
507507
currentBlock = 200,
508508
highestBlock = 10000,
509-
knownStates = 100,
510-
pulledStates = 144
509+
knownStates = 144,
510+
pulledStates = 100
511511
)
512512
)
513513
)

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)