Skip to content

Commit 39d2a2e

Browse files
starknet_os: test that the most recent virtual os program hash is
allowed
1 parent 0d7b8bd commit 39d2a2e

File tree

11 files changed

+33
-11
lines changed

11 files changed

+33
-11
lines changed

crates/apollo_consensus_orchestrator/resources/central_invoke_tx_client_side_proving.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"proof_facts": [
3636
"0x50524f4f4630",
3737
"0x5649525455414c5f534e4f53",
38-
"0x130206a40921880628605041292e995870334451179c63090221210893986a2",
38+
"0x56cb82807b5af2736cee1da0919bc265b499836623bd32265eacc8c8dc98421",
3939
"0x5649525455414c5f534e4f5330",
4040
"0x7a0",
4141
"0x2fa80",

crates/apollo_consensus_orchestrator/resources/central_preconfirmed_block.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
"proof_facts": [
6161
"0x50524f4f4630",
6262
"0x5649525455414c5f534e4f53",
63-
"0x130206a40921880628605041292e995870334451179c63090221210893986a2",
63+
"0x56cb82807b5af2736cee1da0919bc265b499836623bd32265eacc8c8dc98421",
6464
"0x5649525455414c5f534e4f5330",
6565
"0x7a0",
6666
"0x2fa80",

crates/apollo_http_server/resources/deprecated_gateway/invoke_tx_client_side_proving.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"proof_facts": [
3030
"0x50524f4f4630",
3131
"0x5649525455414c5f534e4f53",
32-
"0x130206a40921880628605041292e995870334451179c63090221210893986a2",
32+
"0x56cb82807b5af2736cee1da0919bc265b499836623bd32265eacc8c8dc98421",
3333
"0x5649525455414c5f534e4f5330",
3434
"0x7a0",
3535
"0x2fa80",

crates/apollo_starknet_client/resources/reader/invoke_v3_client_side_proving.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"proof_facts": [
3636
"0x50524f4f4630",
3737
"0x5649525455414c5f534e4f53",
38-
"0x130206a40921880628605041292e995870334451179c63090221210893986a2",
38+
"0x56cb82807b5af2736cee1da0919bc265b499836623bd32265eacc8c8dc98421",
3939
"0x5649525455414c5f534e4f5330",
4040
"0x7a0",
4141
"0x2fa80",

crates/apollo_starknet_os_program/src/cairo/starkware/starknet/core/os/constants.cairo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ const STORED_BLOCK_HASH_BUFFER = 10;
6666

6767
// Allowed virtual OS program hashes for client-side proving.
6868
const ALLOWED_VIRTUAL_OS_PROGRAM_HASHES_0 = (
69-
0x0130206a40921880628605041292e995870334451179c63090221210893986a2
69+
0x056cb82807b5af2736cee1da0919bc265b499836623bd32265eacc8c8dc98421
7070
);
7171
const ALLOWED_VIRTUAL_OS_PROGRAM_HASHES_LEN = 1;
7272

crates/apollo_starknet_os_program/src/program_hash.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"os": "0x1f6ae914829a65d7714150b8443e176e5856f1f21decafdd3e7fcc943ebd2c3",
2+
"os": "0x65dfb0432c7c59c63cdee238eef7cfe5116799eaf4bdc479ef840e627d500b0",
33
"virtual_os": "0x56cb82807b5af2736cee1da0919bc265b499836623bd32265eacc8c8dc98421",
44
"aggregator": "0x4a50066445fdceb87b7ed1211dbff1f544ad4fa879a678a79355ed812dea346",
55
"aggregator_with_prefix": "0x5af6c0904619be30798f335358f96ba742a8f23c7b0df1080d0c24e2224c6f6"

crates/blockifier/resources/blockifier_versioned_constants_0_14_2.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
"segment_arena_cells": false,
7272
"os_constants": {
7373
"allowed_virtual_os_program_hashes": [
74-
"0x130206a40921880628605041292e995870334451179c63090221210893986a2"
74+
"0x56cb82807b5af2736cee1da0919bc265b499836623bd32265eacc8c8dc98421"
7575
],
7676
"constructor_entry_point_selector": "0x28ffe4ff0f226a9107253e17a904099aa4f63a02a5621de0576e5aa71bc5194",
7777
"default_entry_point_selector": "0x0",

crates/blockifier/resources/versioned_constants_diff_regression/0.14.1_0.14.2.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
~ /deprecated_l2_resource_gas_costs/gas_per_proof/0: 1000000000
33
~ /enable_casm_hash_migration: false
44
~ /gateway/max_proof_size: 90000
5-
+ /os_constants/allowed_virtual_os_program_hashes/0: "0x130206a40921880628605041292e995870334451179c63090221210893986a2"
5+
+ /os_constants/allowed_virtual_os_program_hashes/0: "0x56cb82807b5af2736cee1da0919bc265b499836623bd32265eacc8c8dc98421"

crates/blockifier/src/blockifier_versioned_constants.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ pub struct RawVersionedConstants {
9999
#[serde(deny_unknown_fields)]
100100
pub struct RawOsConstants {
101101
// Allowed virtual OS program hashes for client-side proving.
102-
// TODO(Meshi): Add a test that the latest virtual OS program hash is in this list.
103102
pub allowed_virtual_os_program_hashes: Vec<StarkHash>,
104103

105104
// Selectors.

crates/starknet_api/src/test_utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ pub const MAX_FEE: Fee = DEFAULT_L1_GAS_AMOUNT.nonzero_saturating_mul(DEFAULT_ET
232232
// Virtual OS program hash for testing. Should match one of the allowed virtual OS program hashes in
233233
// the current versioned constants.
234234
pub const VIRTUAL_OS_PROGRAM_HASH: StarkHash = StarkHash::from_hex_unchecked(
235-
"0x130206a40921880628605041292e995870334451179c63090221210893986a2",
235+
"0x56cb82807b5af2736cee1da0919bc265b499836623bd32265eacc8c8dc98421",
236236
);
237237

238238
/// Computes a deterministic block hash for testing purposes.

0 commit comments

Comments
 (0)