diff --git a/src/node/chain.c b/src/node/chain.c index 37968d6..839b225 100644 --- a/src/node/chain.c +++ b/src/node/chain.c @@ -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; diff --git a/src/regtest.c b/src/regtest.c index 78f5fce..4c0752b 100644 --- a/src/regtest.c +++ b/src/regtest.c @@ -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,