Skip to content

Commit 89b6c22

Browse files
committed
go
1 parent 3b3bd39 commit 89b6c22

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

runtime/src/bank/pyth_accumulator.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ fn post_accumulator_attestation(
373373
}
374374

375375
pub fn update_v2(bank: &Bank) -> std::result::Result<(), AccumulatorUpdateErrorV1> {
376-
let accounts = bank
376+
let accounts: Vec<(Pubkey, AccountSharedData)> = bank
377377
.get_program_accounts(&ORACLE_PUBKEY, &ScanConfig::new(true))
378378
.map_err(AccumulatorUpdateErrorV1::GetProgramAccounts)?;
379379

@@ -421,10 +421,9 @@ pub fn compute_publisher_stake_caps(
421421
.iter()
422422
.map(|(_, account)| account.data().borrow())
423423
.collect();
424-
let message = pyth_oracle::validator::compute_publisher_stake_caps(account_datas, timestamp);
424+
let message = pyth_oracle::validator::compute_publisher_caps(account_datas, timestamp);
425425

426426
if is_active {
427-
info!("Adding publisher stake caps to the accumulator");
428427
messages.push(message);
429428
}
430429
}

0 commit comments

Comments
 (0)