Skip to content

Commit

Permalink
fix: increase activity count when etching (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelcr authored Jul 5, 2024
1 parent 98f56bd commit e797fc3
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/db/cache/index_cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,18 @@ impl IndexCache {
self.db_cache.ledger_entries.extend(entries.clone());
for entry in entries.iter() {
match entry.operation {
DbLedgerOperation::Etching => {}
DbLedgerOperation::Etching => {
self.db_cache
.supply_changes
.entry(entry.rune_id.clone())
.and_modify(|i| {
i.total_operations += 1;
})
.or_insert(DbSupplyChange::from_operation(
entry.rune_id.clone(),
entry.block_height.clone(),
));
}
DbLedgerOperation::Mint => {
self.db_cache
.supply_changes
Expand Down

0 comments on commit e797fc3

Please sign in to comment.