Skip to content

Commit

Permalink
fix missing script_agg
Browse files Browse the repository at this point in the history
  • Loading branch information
canonbrother committed Dec 18, 2024
1 parent 4c58253 commit ada8b8c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/ain-ocean/src/indexer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ fn index_script(services: &Arc<Services>, ctx: &Context, txs: &[Transaction]) ->

let Some(vout) = find_tx_vout(services, &vin, txs)? else {
if is_skipped_tx(&vin.txid) {
return Ok(());
continue;
};

return Err(Error::NotFoundIndex {
Expand All @@ -312,7 +312,7 @@ fn index_script(services: &Arc<Services>, ctx: &Context, txs: &[Transaction]) ->
index_script_unspent_vout(services, vout, ctx)?;

if vout.script_pub_key.hex.starts_with(&[0x6a]) {
return Ok(());
continue;
}

index_script_activity_vout(services, vout, ctx)?;
Expand All @@ -322,7 +322,7 @@ fn index_script(services: &Arc<Services>, ctx: &Context, txs: &[Transaction]) ->
}

// index_script_aggregation
for (_, mut aggregation) in record.clone() {
for (_, mut aggregation) in record {
let repo = &services.script_aggregation;
let latest = repo
.by_id
Expand Down

0 comments on commit ada8b8c

Please sign in to comment.