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:
parent
70886c33e2
commit
b10aea8f3d
@ -2389,9 +2389,6 @@ 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: -1,
|
startTime: 0,
|
||||||
timeout: 0xffffffff,
|
timeout: 0xffffffff,
|
||||||
threshold: -1,
|
threshold: -1,
|
||||||
window: -1,
|
window: -1,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user