|
16 | 16 | byteorder::{ByteOrder, LittleEndian, ReadBytesExt},
|
17 | 17 | itertools::Itertools,
|
18 | 18 | pyth_oracle::{
|
19 |
| - solana_program::{account_info::AccountInfo}, |
20 |
| - PriceAccount, PriceAccountFlags, PythAccount, PythOracleSerialize, |
| 19 | + solana_program::account_info::AccountInfo, PriceAccount, PriceAccountFlags, PythAccount, |
| 20 | + PythOracleSerialize, |
21 | 21 | },
|
22 | 22 | pythnet_sdk::{
|
23 | 23 | accumulators::{merkle::MerkleAccumulator, Accumulator},
|
@@ -134,6 +134,10 @@ fn test_update_accumulator_sysvar() {
|
134 | 134 | .accounts
|
135 | 135 | .remove(&feature_set::move_accumulator_to_end_of_block::id())
|
136 | 136 | .unwrap();
|
| 137 | + genesis_config |
| 138 | + .accounts |
| 139 | + .remove(&feature_set::add_publisher_stake_caps_to_the_accumulator::id()) |
| 140 | + .unwrap(); |
137 | 141 |
|
138 | 142 | // Set epoch length to 32 so we can advance epochs quickly. We also skip past slot 0 here
|
139 | 143 | // due to slot 0 having special handling.
|
@@ -413,6 +417,10 @@ fn test_update_accumulator_end_of_block() {
|
413 | 417 | .accounts
|
414 | 418 | .remove(&feature_set::move_accumulator_to_end_of_block::id())
|
415 | 419 | .unwrap();
|
| 420 | + genesis_config |
| 421 | + .accounts |
| 422 | + .remove(&feature_set::add_publisher_stake_caps_to_the_accumulator::id()) |
| 423 | + .unwrap(); |
416 | 424 |
|
417 | 425 | // Set epoch length to 32 so we can advance epochs quickly. We also skip past slot 0 here
|
418 | 426 | // due to slot 0 having special handling.
|
@@ -1111,6 +1119,7 @@ fn test_get_accumulator_keys() {
|
1111 | 1119 | Pubkey::new_from_array(pythnet::ACCUMULATOR_SEQUENCE_ADDR),
|
1112 | 1120 | Pubkey::new_from_array(pythnet::WORMHOLE_PID),
|
1113 | 1121 | *ORACLE_PID,
|
| 1122 | + *STAKE_CAPS_PARAMETERS_ADDR, |
1114 | 1123 | ];
|
1115 | 1124 | assert_eq!(accumulator_keys, expected_pyth_keys);
|
1116 | 1125 | }
|
0 commit comments