Skip to content

Commit

Permalink
add a logic to clear coin supply in fa processor as it's deprecated (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
yuunlimm authored Jul 31, 2024
1 parent f21d965 commit 7069b0c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion rust/processor/src/processors/fungible_asset_processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ impl ProcessorTrait for FungibleAssetProcessor {
mut fungible_asset_balances,
mut current_fungible_asset_balances,
current_unified_fungible_asset_balances,
coin_supply,
mut coin_supply,
) = parse_v2_coin(&transactions).await;

let processing_duration_in_secs = processing_start.elapsed().as_secs_f64();
Expand All @@ -389,6 +389,10 @@ impl ProcessorTrait for FungibleAssetProcessor {
current_fungible_asset_balances.clear();
}

if self.deprecated_tables.contains(TableFlags::COIN_SUPPLY) {
coin_supply.clear();
}

let tx_result = insert_to_db(
self.get_pool(),
self.name(),
Expand Down

0 comments on commit 7069b0c

Please sign in to comment.