Skip to content

Commit 5df9d53

Browse files
committed
fix: don't aggregate if already aggregated in the program
1 parent db835e4 commit 5df9d53

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

runtime/src/bank/pyth_accumulator.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ pub fn update_v2(bank: &Bank) -> std::result::Result<(), AccumulatorUpdateErrorV
404404
}
405405
Err(err) => match err {
406406
AggregationError::NotPriceFeedAccount => {}
407-
AggregationError::V1AggregationMode => {
407+
AggregationError::V1AggregationMode | AggregationError::AlreadyAggregated => {
408408
any_v1_aggregations = true;
409409
}
410410
},

0 commit comments

Comments
 (0)