Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions metadata/v1.31/enable_block_epilogue.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"title": "enable block epilogue",
"description": "Generate BlockEpilogue transaction instead of StateCheckpoint transaction.",
"source_code_url": "https://github.com/aptos-labs/aptos-core/pull/11298",
"discussion_url": "https://github.com/aptos-foundation/AIPs/blob/main/aips/aip-88.md"
}
40 changes: 40 additions & 0 deletions sources/v1.31/enable_block_epilogue/0-execution-config.move
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
// Script hash: a8e09f52
// Execution config upgrade proposal

// config: V4(
// ExecutionConfigV4 {
// transaction_shuffler_type: UseCaseAware {
// sender_spread_factor: 32,
// platform_use_case_spread_factor: 0,
// user_use_case_spread_factor: 4,
// },
// block_gas_limit_type: ComplexLimitV1 {
// effective_block_gas_limit: 30000,
// execution_gas_effective_multiplier: 1,
// io_gas_effective_multiplier: 1,
// conflict_penalty_window: 9,
// use_granular_resource_group_conflicts: false,
// use_module_publishing_block_conflict: true,
// block_output_limit: Some(
// 5242880,
// ),
// include_user_txn_size_in_block_output: true,
// add_block_limit_outcome_onchain: true,
// },
// transaction_deduper_type: TxnHashAndAuthenticatorV1,
// },
// )

script {
use aptos_framework::aptos_governance;
use aptos_framework::execution_config;

fun main(proposal_id: u64) {
let framework_signer = aptos_governance::resolve_multi_step_proposal(proposal_id, @0x1, x"");

let execution_blob: vector<u8> = x"040420000000000000000000000000000000040000000000000002307500000000000001000000000000000100000000000000090000000001010000500000000000010101";

execution_config::set_for_next_epoch(&framework_signer, execution_blob);
aptos_governance::reconfigure(&framework_signer);
}
}