Skip to content

Commit

Permalink
Merge pull request #383 from hirosystems/fix/tweaks
Browse files Browse the repository at this point in the history
Quick tweaks
  • Loading branch information
Ludo Galabru authored Aug 15, 2023
2 parents d28d202 + b9ff1aa commit d688bcb
Show file tree
Hide file tree
Showing 13 changed files with 136 additions and 118 deletions.
8 changes: 4 additions & 4 deletions Cargo.lock

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

4 changes: 1 addition & 3 deletions components/chainhook-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ redis = "0.21.5"
serde-redis = "0.12.0"
hex = "0.4.3"
rand = "0.8.5"
# tikv-client = { git = "https://github.com/tikv/client-rust.git", rev = "8f54e6114227718e256027df2577bbacdf425f86" }
# raft-proto = { git = "https://github.com/tikv/raft-rs", rev="f73766712a538c2f6eb135b455297ad6c03fc58d", version = "0.7.0"}
chainhook-sdk = { version = "0.8.0", default-features = false, features = ["zeromq"], path = "../chainhook-sdk" }
chainhook-sdk = { version = "0.8.2", default-features = false, features = ["zeromq"], path = "../chainhook-sdk" }
clarinet-files = "1.0.1"
hiro-system-kit = "0.1.0"
# clarinet-files = { path = "../../../clarinet/components/clarinet-files" }
Expand Down
2 changes: 1 addition & 1 deletion components/chainhook-cli/src/scan/bitcoin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ pub async fn execute_predicates_action<'a>(
actions_triggered += 1;
match action {
BitcoinChainhookOccurrence::Http(request) => {
send_request(request, 3, 1, &ctx).await?
send_request(request, 10, 3, &ctx).await?
}
BitcoinChainhookOccurrence::File(path, bytes) => {
file_append(path, bytes, &ctx)?
Expand Down
2 changes: 1 addition & 1 deletion components/chainhook-cli/src/scan/stacks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ pub async fn scan_stacks_chainstate_via_csv_using_predicate(
occurrences_found += 1;
let res = match action {
StacksChainhookOccurrence::Http(request) => {
send_request(request, 3, 1, &ctx).await
send_request(request, 10, 3, &ctx).await
}
StacksChainhookOccurrence::File(path, bytes) => file_append(path, bytes, &ctx),
StacksChainhookOccurrence::Data(_payload) => unreachable!(),
Expand Down
2 changes: 1 addition & 1 deletion components/chainhook-cli/src/service/runloops.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ pub fn start_stacks_scan_runloop(
let last_block_scanned = match res {
Ok(last_block_scanned) => last_block_scanned,
Err(e) => {
error!(
warn!(
moved_ctx.expect_logger(),
"Unable to evaluate predicate on Stacks chainstate: {e}",
);
Expand Down
4 changes: 2 additions & 2 deletions components/chainhook-sdk/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "chainhook-sdk"
version = "0.8.0"
version = "0.8.2"
description = "Stateless Transaction Indexing Engine for Stacks and Bitcoin"
license = "GPL-3.0"
edition = "2021"
Expand All @@ -18,7 +18,7 @@ hiro-system-kit = "0.1.0"
# stacks-rpc-client = { version = "1", path = "../../../clarinet/components/stacks-rpc-client" }
# clarinet-utils = { version = "1", path = "../../../clarinet/components/clarinet-utils" }
# hiro-system-kit = { version = "0.1.0", path = "../../../clarinet/components/hiro-system-kit" }
chainhook-types = { version = "1.0.9", path = "../chainhook-types-rs" }
chainhook-types = { version = "1.0.11", path = "../chainhook-types-rs" }
rocket = { version = "=0.5.0-rc.3", features = ["json"] }
bitcoincore-rpc = "0.16.0"
bitcoincore-rpc-json = "0.16.0"
Expand Down
1 change: 0 additions & 1 deletion components/chainhook-sdk/src/chainhooks/bitcoin/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,6 @@ impl BitcoinPredicateType {
for op in tx.metadata.ordinal_operations.iter() {
match op {
OrdinalOperation::InscriptionRevealed(_)
| OrdinalOperation::CursedInscriptionRevealed(_)
| OrdinalOperation::InscriptionTransferred(_) => return true,
}
}
Expand Down
Loading

0 comments on commit d688bcb

Please sign in to comment.