networks: always activate segwit for regtest
This commit is contained in:
parent
48f38a4a65
commit
53a09b0a02
@ -2389,6 +2389,9 @@ class Chain extends AsyncEmitter {
|
|||||||
async getState(prev, deployment) {
|
async getState(prev, deployment) {
|
||||||
const bit = deployment.bit;
|
const bit = deployment.bit;
|
||||||
|
|
||||||
|
if (deployment.startTime === -1)
|
||||||
|
return thresholdStates.ACTIVE;
|
||||||
|
|
||||||
let window = this.network.minerWindow;
|
let window = this.network.minerWindow;
|
||||||
let threshold = this.network.activationThreshold;
|
let threshold = this.network.activationThreshold;
|
||||||
|
|
||||||
|
|||||||
@ -801,7 +801,7 @@ regtest.deployments = {
|
|||||||
segwit: {
|
segwit: {
|
||||||
name: 'segwit',
|
name: 'segwit',
|
||||||
bit: 1,
|
bit: 1,
|
||||||
startTime: 0,
|
startTime: -1,
|
||||||
timeout: 0xffffffff,
|
timeout: 0xffffffff,
|
||||||
threshold: -1,
|
threshold: -1,
|
||||||
window: -1,
|
window: -1,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user