Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,4 @@ circuits/*/*/*.bin.in

**/*.out
**/*/output.data*
proof-builder-rpc/*.ckpt

runner
proof-builder-rpc/*.ckpt
1 change: 1 addition & 0 deletions node/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -872,6 +872,7 @@ real graph raw data in the database.
| `GOAT_PRIVATE_KEY` | Conditional | GOAT chain private key (required for Committee) | - |
| `GOAT_ADDRESS` | Conditional | GOAT address (required for Operator/Verifier) | - |
| `ENABLE_RELAYER` | No | Enable relayer mode for Committee nodes | `false` |
| `ENABLE_BABE_SETUP_STATE_CLEANUP` | No | Enable scheduled BABE setup state cleanup for Operator/Verifier nodes | `false` |
| `BTC_CHAIN_URL` | No | Bitcoin Esplora API endpoint | Public Esplora |
| `MARA_SLIPSTREAM_API_URL` | No | MARA slipstream API base URL (used for non-standard tx broadcast) | mainnet: `https://slipstream.mara.com/api`; testnet4: `https://teststream.mara.com/api` |
| `GOAT_PROOF_BUILD_URL` | No | Proof Builder RPC endpoint | - |
Expand Down
2 changes: 1 addition & 1 deletion node/src/action.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ pub struct CutCircuits {
pub verifier_index: usize,
pub selected_circuit_indexes: Vec<usize>,
}
#[derive(Serialize, Deserialize, Clone)]
#[derive(Debug, Serialize, Deserialize, Clone, PartialEq, Eq)]
pub struct SolderingProofReady {
pub instance_id: Uuid,
pub graph_id: Uuid,
Expand Down
8 changes: 8 additions & 0 deletions node/src/env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ pub const ENV_GOAT_SEQUENCER_SET_MULTI_SIG_VERIFIER_ADDRESS: &str =
"ENV_GOAT_SEQUENCER_SET_MULTI_SIG_VERIFIER_ADDRESS";
pub const ENV_ENABLE_RELAYER: &str = "ENABLE_RELAYER";
pub const ENV_ENABLE_UPDATE_SPV_CONTRACT: &str = "ENABLE_UPDATE_SPV_CONTRACT";
pub const ENV_ENABLE_BABE_SETUP_STATE_CLEANUP: &str = "ENABLE_BABE_SETUP_STATE_CLEANUP";
pub const ENV_BTC_BLOCK_CONFIRMS: &str = "BTC_BLOCK_CONFIRMS";
pub const ENV_MARA_SLIPSTREAM_API_URL: &str = "MARA_SLIPSTREAM_API_URL";
pub const DEFAULT_MARA_SLIPSTREAM_MAINNET_API_URL: &str = "https://slipstream.mara.com/api";
Expand Down Expand Up @@ -241,6 +242,13 @@ pub fn is_enable_update_spv_contract() -> bool {
}
}

pub fn is_enable_babe_setup_state_cleanup() -> bool {
match std::env::var(ENV_ENABLE_BABE_SETUP_STATE_CLEANUP) {
Ok(value) => value.eq_ignore_ascii_case("true"),
Err(_) => false,
}
}

pub fn get_btc_block_confirms(network: Network) -> u32 {
std::env::var(ENV_BTC_BLOCK_CONFIRMS)
.ok()
Expand Down
Loading