Skip to content

Commit edc78bc

Browse files
committed
Add missing comments
1 parent 785b128 commit edc78bc

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

crates/iota-core/src/authority.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4333,6 +4333,9 @@ impl AuthorityState {
43334333
Some(res)
43344334
}
43354335

4336+
/// Returns the new protocol version and system packages that the network
4337+
/// has voted to upgrade to. If the proposed protocol version is not
4338+
/// supported, None is returned.
43364339
fn is_protocol_version_supported_v1(
43374340
current_protocol_version: ProtocolVersion,
43384341
proposed_protocol_version: ProtocolVersion,
@@ -4422,6 +4425,9 @@ impl AuthorityState {
44224425
})
44234426
}
44244427

4428+
/// Selects the highest supported protocol version and system packages that
4429+
/// the network has voted to upgrade to. If no upgrade is supported,
4430+
/// returns the current protocol version and system packages.
44254431
fn choose_protocol_version_and_system_packages_v1(
44264432
current_protocol_version: ProtocolVersion,
44274433
protocol_config: &ProtocolConfig,

0 commit comments

Comments
 (0)