Skip to content

Commit

Permalink
Some changes to ease zebrad integration
Browse files Browse the repository at this point in the history
- Switch from `log` to `tracing` for `warn!`,
- Export `SignedOutputs`, which is needed to create a `HashType`, and
- Upgrade zcash_primitives to the same version used by zebrad.
  • Loading branch information
sellout committed Dec 5, 2024
1 parent e0fabfa commit 7e16a5f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

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

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,13 @@ test-dependencies = []
bitflags = "2.5"
enum_primitive = "0.1"
libfuzzer-sys = "0.4"
log = "0.4"
proptest = "0.9"
ripemd = "0.1"
secp256k1 = "0.29"
sha-1 = "0.10"
sha2 = "0.10"
zcash_primitives = "0.17"
tracing = "0.1.39"
zcash_primitives = "0.19"

[build-dependencies]
# The `bindgen` dependency should automatically upgrade to match the version used by zebra-state's `rocksdb` dependency in:
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ mod zcash_script;

use std::os::raw::{c_int, c_uint, c_void};

use log::warn;
use tracing::warn;
use zcash_primitives::transaction::TxVersion;

pub use cxx::*;
pub use interpreter::{HashType, SighashCalculator, VerificationFlags};
pub use interpreter::{HashType, SighashCalculator, SignedOutputs, VerificationFlags};
pub use zcash_script::*;

/// A tag to indicate that the C++ implementation of zcash_script should be used.
Expand Down

0 comments on commit 7e16a5f

Please sign in to comment.