Skip to content

Commit 1159002

Browse files
committed
opreturn: ignore non-utf8 payloads
The new behaviour is actually stated in the helper text of the subcommand.
1 parent e52e9c2 commit 1159002

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ anyhow = "1.0.72"
1414
bitcoin = "0.30.1"
1515
clap = { version = "4.3.21", features = [ "cargo" ] }
1616
dirs = "5.0.1"
17-
hex = "0.4.3"
1817
rusty-leveldb = "2.0.0"
1918
tracing = { version = "0.1.37", default-features = false }
2019
tracing-subscriber = { version = "0.3.17", features = [ "env-filter", "fmt", "ansi", "tracing-log" ], default-features = false }
2120

2221
[dev-dependencies]
22+
hex = "0.4.3"
2323
once_cell = "1.18.0"
2424
tempfile = "3.7.0"

src/callbacks/opreturn.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,6 @@ impl Callback for OpReturn {
3535
&tx.txid(),
3636
s
3737
);
38-
} else {
39-
println!(
40-
"height: {: <9} txid: {} data: {}",
41-
block_height,
42-
&tx.txid(),
43-
hex::encode(data.as_bytes())
44-
);
4538
}
4639
}
4740
}

0 commit comments

Comments
 (0)