Skip to content

Commit

Permalink
Small improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
gostkin committed Jan 29, 2024
1 parent 5710e7b commit 559c77d
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 16 deletions.
3 changes: 0 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion indexer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ ctrlc = { version = "3.2.4", features = ["termination"] }
dotenv = { version = "0.15.0" }
hex = { version = "0.4.3" }
oura = { git = "https://github.com/txpipe/oura.git", rev = "27fb7e876471b713841d96e292ede40101b151d7" }
pallas = { version = "0.18.2" }
serde = { version = "1.0.152", features = ["derive", "rc"] }
serde_json = { version = "1.0.92" }
serde_yaml = { version = "0.9.17" }
Expand Down
3 changes: 0 additions & 3 deletions indexer/tasks/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ edition = "2021"
name = "tasks"

[dependencies]
dcspark-core = { git = "https://github.com/dcSpark/dcspark-core.git", rev = "572af17e3e22101dee64e0999049a571aea26e0f" }
dcspark-blockchain-source = { git = "https://github.com/dcSpark/dcspark-core.git", rev = "572af17e3e22101dee64e0999049a571aea26e0f" }

# [local]
entity = { path = "../entity" }

Expand Down
10 changes: 1 addition & 9 deletions indexer/tasks/src/multiera/multiera_used_outputs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,20 +61,13 @@ async fn handle_output(
let outputs = tx_body.outputs();
if cardano_transaction.is_valid {
for (idx, output) in outputs.iter().enumerate() {
queue_output(
&mut queued_output,
tx_body,
cardano_transaction.id,
output,
idx,
);
queue_output(&mut queued_output, cardano_transaction.id, output, idx);
}
}
if !cardano_transaction.is_valid {
if let Some(output) = tx_body.collateral_return() {
queue_output(
&mut queued_output,
tx_body,
cardano_transaction.id,
&output,
// only one collateral output is allowed
Expand Down Expand Up @@ -102,7 +95,6 @@ async fn handle_output(

fn queue_output(
queued_output: &mut Vec<QueuedOutput>,
_tx_body: &MultiEraTransactionBody,
tx_id: i64,
output: &MultiEraTransactionOutput,
idx: usize,
Expand Down

0 comments on commit 559c77d

Please sign in to comment.