Skip to content

Commit 9948d6d

Browse files
authored
[Move] Add poseidon base cost (#24445)
## Description Update poseidon_bn254_cost_base. ## Test plan N/A --- ## Release notes Check each box that your changes affect. If none of the boxes relate to your changes, release notes aren't required. For each box you select, include information after the relevant heading that describes the impact of your changes that a user might notice and any actions they must take to implement updates. - [ ] Protocol: - [ ] Nodes (Validators and Full nodes): - [ ] gRPC: - [ ] JSON-RPC: - [ ] GraphQL: - [ ] CLI: - [ ] Rust SDK: - [ ] Indexing Framework:
1 parent 93959cc commit 9948d6d

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

crates/sui-protocol-config/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4263,6 +4263,8 @@ impl ProtocolConfig {
42634263
cfg.dynamic_field_borrow_child_object_child_ref_cost_per_byte = Some(1);
42644264
cfg.dynamic_field_remove_child_object_child_cost_per_byte = Some(1);
42654265
cfg.feature_flags.enable_ptb_execution_v2 = true;
4266+
4267+
cfg.poseidon_bn254_cost_base = Some(260);
42664268
}
42674269
// Use this template when making changes:
42684270
//

crates/sui-protocol-config/src/snapshots/sui_protocol_config__test__Mainnet_version_104.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,7 @@ hash_blake2b256_data_cost_per_block: 2
320320
hash_keccak256_cost_base: 10
321321
hash_keccak256_data_cost_per_byte: 2
322322
hash_keccak256_data_cost_per_block: 2
323+
poseidon_bn254_cost_base: 260
323324
poseidon_bn254_cost_per_block: 388
324325
group_ops_bls12381_decode_scalar_cost: 7
325326
group_ops_bls12381_decode_g1_cost: 2848

crates/sui-protocol-config/src/snapshots/sui_protocol_config__test__Testnet_version_104.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,7 @@ hash_blake2b256_data_cost_per_block: 2
321321
hash_keccak256_cost_base: 10
322322
hash_keccak256_data_cost_per_byte: 2
323323
hash_keccak256_data_cost_per_block: 2
324+
poseidon_bn254_cost_base: 260
324325
poseidon_bn254_cost_per_block: 388
325326
group_ops_bls12381_decode_scalar_cost: 7
326327
group_ops_bls12381_decode_g1_cost: 2848

0 commit comments

Comments
 (0)