networks: always activate segwit for regtest

This commit is contained in:
Javed Khan 2018-10-22 20:05:32 +05:30 committed by Mark Tyneway
parent 48f38a4a65
commit 53a09b0a02
No known key found for this signature in database
GPG Key ID: C54371E96096D987
2 changed files with 4 additions and 1 deletions

View File

@ -2389,6 +2389,9 @@ class Chain extends AsyncEmitter {
async getState(prev, deployment) {
const bit = deployment.bit;
if (deployment.startTime === -1)
return thresholdStates.ACTIVE;
let window = this.network.minerWindow;
let threshold = this.network.activationThreshold;

View File

@ -801,7 +801,7 @@ regtest.deployments = {
segwit: {
name: 'segwit',
bit: 1,
startTime: 0,
startTime: -1,
timeout: 0xffffffff,
threshold: -1,
window: -1,