Closed Riateche closed 2 months ago
I think there might be an edgecase where the price stops aggregating (both v1 and v2). In a given slot:
upd_price
: aggregation is unsuccessful therefore message_sent_ == 1
PriceAccountFlags::MESSAGE_BUFFER_CLEARED
is falseNext slot:
upd_price
no longer triggers an aggregation because PriceAccountFlags::ACCUMULATOR_V2
is truePriceAccountFlags::MESSAGE_BUFFER_CLEARED
is falseAnd so on... let me know if you agree
I think there might be an edgecase where the price stops aggregating (both v1 and v2).
Good catch! I've changed the code so that the MESSAGE_BUFFER_CLEARED
is set regardless of the message_sent_
flag. I think this should fix the issue.