Skip to content

Commit

Permalink
Merge pull request #248 from nomic-io/relayer-threshold
Browse files Browse the repository at this point in the history
Add signatory threshold in relayer /sigset response
  • Loading branch information
mappum authored Oct 28, 2023
2 parents 4792ee2 + 7a76e45 commit 852dfca
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 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
@@ -1,6 +1,6 @@
[package]
name = "nomic"
version = "6.6.0"
version = "6.6.1"
authors = ["The Nomic Team <[email protected]>"]
edition = "2021"
default-run = "nomic"
Expand Down Expand Up @@ -66,7 +66,7 @@ toml = { version = "0.7.2", features = ["parse"] }
semver = "1.0.18"

[features]
default = ["full", "feat-ibc", "testnet", "legacy-bin"]
default = ["full", "feat-ibc", "testnet"]
full = [
"bitcoincore-rpc-async",
"clap",
Expand Down
2 changes: 1 addition & 1 deletion rest/Cargo.lock

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

6 changes: 6 additions & 0 deletions src/bitcoin/relayer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -949,6 +949,7 @@ pub struct RawSignatorySet {
pub miner_fee_rate: f64,
#[serde(rename = "depositsEnabled")]
pub deposits_enabled: bool,
pub threshold: (u64, u64),
}

impl RawSignatorySet {
Expand All @@ -969,6 +970,11 @@ impl RawSignatorySet {
bridge_fee_rate,
miner_fee_rate,
deposits_enabled,
// TODO: get threshold from checkpoint once it is stored in state
#[cfg(feature = "testnet")]
threshold: (9, 10),
#[cfg(not(feature = "testnet"))]
threshold: (2, 3),
}
}
}
Expand Down

0 comments on commit 852dfca

Please sign in to comment.