Skip to content

Commit

Permalink
feat: update pox default settings
Browse files Browse the repository at this point in the history
feat: update pox default settings
  • Loading branch information
hugocaillard authored Jun 27, 2024
2 parents f0bdfc5 + 320f716 commit 5f310af
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 22 deletions.
21 changes: 9 additions & 12 deletions Cargo.lock

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

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ members = [
default-members = ["components/chainhook-cli", "components/chainhook-sdk"]
resolver = "2"

# [patch.'https://github.com/hirosystems/clarinet.git']
[patch.crates-io]
stacks-codec = { git = "https://github.com/hirosystems/clarinet.git" }
# stacks-codec = { path = "../clarinet/components/stacks-codec" }
9 changes: 5 additions & 4 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.12.7"
version = "0.12.11"
description = "Stateless Transaction Indexing Engine for Stacks and Bitcoin"
license = "GPL-3.0"
edition = "2021"
Expand All @@ -12,10 +12,9 @@ serde = { version = "1", features = ["rc"] }
serde_json = { version = "1", features = ["arbitrary_precision"] }
serde-hex = "0.1.0"
serde_derive = "1"
stacks-codec = "2.4.1"
# hiro-system-kit = { version = "0.1.0", path = "../../../clarinet/components/hiro-system-kit" }
# stacks-codec = "2.5"
stacks-codec = { git = "https://github.com/hirosystems/clarinet.git" }
hiro-system-kit = { version = "0.3.4", optional = true }
chainhook-types = { version = "1.3.6", path = "../chainhook-types-rs" }
rocket = { version = "=0.5.0", features = ["json"] }
bitcoincore-rpc = "0.18.0"
bitcoincore-rpc-json = "0.18.0"
Expand All @@ -42,6 +41,8 @@ regex = "1.9.3"
miniscript = "11.0.0"
prometheus = "0.13.3"

chainhook-types = { path = "../chainhook-types-rs" }

[dev-dependencies]
test-case = "3.1.0"

Expand Down
4 changes: 2 additions & 2 deletions components/chainhook-sdk/src/chainhooks/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -624,8 +624,8 @@ const POX_CONFIG_TESTNET: PoxConfig = PoxConfig {

const POX_CONFIG_DEVNET: PoxConfig = PoxConfig {
genesis_block_height: 100,
prepare_phase_len: 4,
reward_phase_len: 10,
prepare_phase_len: 5,
reward_phase_len: 20,
rewarded_addresses_per_block: 2,
};

Expand Down
4 changes: 2 additions & 2 deletions components/chainhook-sdk/src/indexer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ impl Default for PoxConfig {
fn default() -> PoxConfig {
PoxConfig {
first_burnchain_block_height: 100,
prepare_phase_block_length: 4,
reward_phase_block_length: 6,
prepare_phase_block_length: 5,
reward_phase_block_length: 15,
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion components/chainhook-types-rs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "chainhook-types"
description = "Bitcoin and Stacks data schemas, based on the Rosetta specification"
license = "MIT"
version = "1.3.6"
version = "1.3.7"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down

0 comments on commit 5f310af

Please sign in to comment.