eth_syncing use best_block_hash instead of last_imported_block_number

This commit is contained in:
debris 2016-02-10 18:03:29 +01:00
parent 373f0da56a
commit a938ac67d1

View File

@ -60,7 +60,7 @@ impl Eth for EthClient {
SyncState::NotSynced | SyncState::Idle => SyncStatus::None,
SyncState::Waiting | SyncState::Blocks | SyncState::NewBlocks => SyncStatus::Info(SyncInfo {
starting_block: U256::from(status.start_block_number),
current_block: U256::from(status.last_imported_block_number.unwrap_or(status.start_block_number)),
current_block: U256::from(self.client.chain_info().best_block_number),
highest_block: U256::from(status.highest_block_number.unwrap_or(status.start_block_number))
})
};