Skip to content

Commit 194bf65

Browse files
committed
fixed upcomming typo
1 parent 960e8e5 commit 194bf65

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

crates/ethcore/src/engines/hbbft/hbbft_network_fork_manager.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,10 @@ impl HbbftFork {
8282
/// It allows cheap queries to see if a Fork is pending,
8383
/// and stores information about a fork that is finished.
8484
pub struct HbbftNetworkForkManager {
85-
/// a ordered list with upcomming forks.
85+
/// a ordered list with upcoming forks.
8686
finished_forks: VecDeque<HbbftFork>,
8787

88-
/// a ordered list with upcomming forks, including a fork that is in progress.
88+
/// a ordered list with upcoming forks, including a fork that is in progress.
8989
/// see @is_currently_forking for more information.
9090
pending_forks: VecDeque<HbbftFork>,
9191

@@ -271,12 +271,12 @@ impl HbbftNetworkForkManager {
271271
}
272272

273273
let fork = HbbftFork::from_definition(fork_def);
274-
debug!(target: "engine", "hbbft-hardfork: added upcomming fork - add block {:?}", fork.start_block);
274+
debug!(target: "engine", "hbbft-hardfork: added upcoming fork - add block {:?}", fork.start_block);
275275

276276
self.pending_forks.push_back(fork);
277277
} else if fork_def.block_number_start >= startup_block_number {
278278
let fork = HbbftFork::from_definition(fork_def);
279-
debug!(target: "engine", "hbbft-hardfork: added upcomming fork - add block {:?}", fork.start_block);
279+
debug!(target: "engine", "hbbft-hardfork: added upcoming fork - add block {:?}", fork.start_block);
280280

281281
self.pending_forks.push_back(fork);
282282
}

crates/ethcore/src/engines/hbbft/hbbft_peers_management.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ impl HbbftPeersManagement {
256256
/// if we drop out as a current validator,
257257
/// as well a pending validator, we should drop
258258
/// all reserved connections.
259-
/// in later addition, we will keep the Partner Node Connections here. (upcomming feature)
259+
/// in later addition, we will keep the Partner Node Connections here. (upcoming feature)
260260
pub fn disconnect_all_validators(&mut self, client_arc: &Arc<dyn EngineClient>) {
261261
// we safely can disconnect even in situation where we are syncing.
262262

crates/ethcore/src/engines/hbbft/keygen_transactions.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ pub struct ServiceTransactionMemory {
4545
/// Nonce of the transaction it was send with.
4646
//pub nonce: U256,
4747

48-
/// Block number, at wich this transaction was "sent",
48+
/// Block number, at which this transaction was "sent",
4949
/// in the meaning of prepared to be propagated.
5050
pub block_sent: u64,
5151
// It would be good to know if the Service Transaction got included.
@@ -96,7 +96,7 @@ impl KeygenTransactionSender {
9696
client: &dyn EngineClient,
9797
mining_address: &Address,
9898
mode_to_check: KeyGenMode,
99-
upcomming_epoch: &U256,
99+
upcoming_epoch: &U256,
100100
current_round: &U256,
101101
) -> Result<ShouldSendKeyAnswer, CallError> {
102102
let keygen_mode = get_pending_validator_key_generation_mode(client, mining_address)?;
@@ -105,12 +105,12 @@ impl KeygenTransactionSender {
105105
Some(last_sent) => {
106106
match &last_sent.transaction_type {
107107
ServiceTransactionType::KeyGenTransaction(
108-
historic_upcomming_epoch,
108+
historic_upcoming_epoch,
109109
historic_round,
110110
historic_key_gen_mode,
111111
) => {
112112
if *historic_key_gen_mode != keygen_mode
113-
|| *historic_upcomming_epoch != upcomming_epoch.as_u64()
113+
|| *historic_upcoming_epoch != upcoming_epoch.as_u64()
114114
|| *historic_round != current_round.as_u64()
115115
{
116116
// other key gen mode, we need to send.
@@ -163,14 +163,14 @@ impl KeygenTransactionSender {
163163
&mut self,
164164
client: &dyn EngineClient,
165165
mining_address: &Address,
166-
upcomming_epoch: &U256,
166+
upcoming_epoch: &U256,
167167
current_round: &U256,
168168
) -> Result<ShouldSendKeyAnswer, CallError> {
169169
self.should_send(
170170
client,
171171
mining_address,
172172
KeyGenMode::WritePart,
173-
upcomming_epoch,
173+
upcoming_epoch,
174174
current_round,
175175
)
176176
}
@@ -179,14 +179,14 @@ impl KeygenTransactionSender {
179179
&mut self,
180180
client: &dyn EngineClient,
181181
mining_address: &Address,
182-
upcomming_epoch: &U256,
182+
upcoming_epoch: &U256,
183183
current_round: &U256,
184184
) -> Result<ShouldSendKeyAnswer, CallError> {
185185
self.should_send(
186186
client,
187187
mining_address,
188188
KeyGenMode::WriteAck,
189-
upcomming_epoch,
189+
upcoming_epoch,
190190
current_round,
191191
)
192192
}

0 commit comments

Comments
 (0)