File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -373,7 +373,7 @@ fn post_accumulator_attestation(
373
373
}
374
374
375
375
pub fn update_v2 ( bank : & Bank ) -> std:: result:: Result < ( ) , AccumulatorUpdateErrorV1 > {
376
- let accounts = bank
376
+ let accounts: Vec < ( Pubkey , AccountSharedData ) > = bank
377
377
. get_program_accounts ( & ORACLE_PUBKEY , & ScanConfig :: new ( true ) )
378
378
. map_err ( AccumulatorUpdateErrorV1 :: GetProgramAccounts ) ?;
379
379
@@ -421,10 +421,9 @@ pub fn compute_publisher_stake_caps(
421
421
. iter ( )
422
422
. map ( |( _, account) | account. data ( ) . borrow ( ) )
423
423
. 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) ;
425
425
426
426
if is_active {
427
- info ! ( "Adding publisher stake caps to the accumulator" ) ;
428
427
messages. push ( message) ;
429
428
}
430
429
}
You can’t perform that action at this time.
0 commit comments