@@ -7,7 +7,7 @@ import scala.annotation.tailrec
7
7
import io .iohk .ethereum .db .dataSource .DataSourceBatchUpdate
8
8
import io .iohk .ethereum .db .storage ._
9
9
import io .iohk .ethereum .domain
10
- import io .iohk .ethereum .domain .appstate .BestBlockInfo
10
+ import io .iohk .ethereum .domain .appstate .BlockInfo
11
11
import io .iohk .ethereum .jsonrpc .ProofService .StorageProof
12
12
import io .iohk .ethereum .ledger .InMemoryWorldStateProxy
13
13
import io .iohk .ethereum .ledger .InMemoryWorldStateProxyStorage
@@ -144,15 +144,15 @@ class BlockchainImpl(
144
144
}
145
145
146
146
private def saveBestKnownBlock (bestBlockHash : ByteString , bestBlockNumber : BigInt ): Unit =
147
- appStateStorage.putBestBlockInfo(BestBlockInfo (bestBlockHash, bestBlockNumber)).commit()
147
+ appStateStorage.putBestBlockInfo(BlockInfo (bestBlockHash, bestBlockNumber)).commit()
148
148
149
149
private def saveBestKnownBlockAndLatestCheckpointNumber (
150
150
bestBlockHash : ByteString ,
151
151
number : BigInt ,
152
152
latestCheckpointNumber : BigInt
153
153
): Unit =
154
154
appStateStorage
155
- .putBestBlockInfo(BestBlockInfo (bestBlockHash, number))
155
+ .putBestBlockInfo(BlockInfo (bestBlockHash, number))
156
156
.and(appStateStorage.putLatestCheckpointBlockNumber(latestCheckpointNumber))
157
157
.commit()
158
158
@@ -201,7 +201,7 @@ class BlockchainImpl(
201
201
*/
202
202
val bestBlockNumberUpdates =
203
203
if (appStateStorage.getBestBlockNumber() > potentialNewBestBlockNumber)
204
- appStateStorage.putBestBlockInfo(BestBlockInfo (potentialNewBestBlockHash, potentialNewBestBlockNumber))
204
+ appStateStorage.putBestBlockInfo(BlockInfo (potentialNewBestBlockHash, potentialNewBestBlockNumber))
205
205
else appStateStorage.emptyBatchUpdate
206
206
val latestCheckpointNumberUpdates =
207
207
if (appStateStorage.getLatestCheckpointBlockNumber() > newLatestCheckpointNumber)
0 commit comments