Skip to content
Open
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
3 changes: 3 additions & 0 deletions src/node/chain.c
Original file line number Diff line number Diff line change
Expand Up @@ -780,6 +780,9 @@ btc_chain_get_state(btc_chain_t *chain,
int i, state, cached;
int64_t time;

if (deployment->start_time == -1)
return BTC_STATE_ACTIVE;

if (deployment->threshold != -1)
threshold = deployment->threshold;

Expand Down
2 changes: 1 addition & 1 deletion src/regtest.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ static const btc_deployment_t regtest_deployments[] = {
{
/* .name = */ "segwit",
/* .bit = */ 1,
/* .start_time = */ 0,
/* .start_time = */ -1,
/* .timeout = */ 0xffffffff,
/* .threshold = */ -1,
/* .window = */ -1,
Expand Down