bugfix: regtest segwit start time 0

The deployments are written to and read
from a database and the start time is
a U32. Changing the value to -1 will cause
the value to be read incorrectly and cause
the tests to fail.
This commit is contained in:
Mark Tyneway 2019-01-24 20:46:49 -08:00
parent 70886c33e2
commit b10aea8f3d
No known key found for this signature in database
GPG Key ID: C54371E96096D987
2 changed files with 1 additions and 4 deletions

View File

@ -2389,9 +2389,6 @@ 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: -1,
startTime: 0,
timeout: 0xffffffff,
threshold: -1,
window: -1,