Skip to content

Commit 127d93a

Browse files
committed
fix: revert to set for next epoch.
1 parent 2be70e1 commit 127d93a

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

aptos-move/aptos-release-builder/src/components/gas.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ pub fn generate_gas_upgrade_proposal(
136136
},
137137
None => {
138138
let update_method = if is_testnet {
139-
"set_gas_schedule"
139+
"set_for_next_epoch"
140140
} else {
141141
"set_for_next_epoch"
142142
};

aptos-move/framework/aptos-framework/sources/chain_status.move

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,6 @@ module aptos_framework::chain_status {
4343

4444
/// Helper function to assert genesis state.
4545
public fun assert_genesis() {
46-
assert!(is_genesis(), error::invalid_state(ENOT_OPERATING));
46+
assert!(is_genesis(), error::invalid_state(ENOT_GENESIS));
4747
}
4848
}

crates/aptos-jwk-consensus/src/epoch_manager.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ impl<P: OnChainConfigProvider> EpochManager<P> {
148148
}
149149

150150
async fn start_new_epoch(&mut self, payload: OnChainConfigPayload<P>) {
151+
println!("Starting new epoch.");
151152
let validator_set: ValidatorSet = payload
152153
.get()
153154
.expect("failed to get ValidatorSet from payload");
@@ -239,6 +240,7 @@ impl<P: OnChainConfigProvider> EpochManager<P> {
239240
}
240241

241242
async fn on_new_epoch(&mut self, reconfig_notification: ReconfigNotification<P>) -> Result<()> {
243+
println!("EpochManager received new epoch notification.");
242244
self.shutdown_current_processor().await;
243245
self.start_new_epoch(reconfig_notification.on_chain_configs)
244246
.await;

dkg/src/epoch_manager.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ impl<P: OnChainConfigProvider> EpochManager<P> {
152152
}
153153

154154
async fn start_new_epoch(&mut self, payload: OnChainConfigPayload<P>) {
155+
println!("Starting new epoch.");
155156
let validator_set: ValidatorSet = payload
156157
.get()
157158
.expect("failed to get ValidatorSet from payload");
@@ -250,6 +251,7 @@ impl<P: OnChainConfigProvider> EpochManager<P> {
250251
}
251252

252253
async fn on_new_epoch(&mut self, reconfig_notification: ReconfigNotification<P>) -> Result<()> {
254+
println!("EpochManager received new epoch notification.");
253255
self.shutdown_current_processor().await;
254256
self.start_new_epoch(reconfig_notification.on_chain_configs)
255257
.await;

0 commit comments

Comments
 (0)