Skip to content

Commit 7069b0c

Browse files
authored
add a logic to clear coin supply in fa processor as it's deprecated (#479)
1 parent f21d965 commit 7069b0c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

rust/processor/src/processors/fungible_asset_processor.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ impl ProcessorTrait for FungibleAssetProcessor {
365365
mut fungible_asset_balances,
366366
mut current_fungible_asset_balances,
367367
current_unified_fungible_asset_balances,
368-
coin_supply,
368+
mut coin_supply,
369369
) = parse_v2_coin(&transactions).await;
370370

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

392+
if self.deprecated_tables.contains(TableFlags::COIN_SUPPLY) {
393+
coin_supply.clear();
394+
}
395+
392396
let tx_result = insert_to_db(
393397
self.get_pool(),
394398
self.name(),

0 commit comments

Comments
 (0)