diff --git a/internal/handshake/protocol/network.go b/internal/handshake/protocol/network.go index 9d03c51..d1f229f 100644 --- a/internal/handshake/protocol/network.go +++ b/internal/handshake/protocol/network.go @@ -255,9 +255,13 @@ func testNet() *Network { CoinbaseMaturity: 100, POW: POWParams{ - Limit: bi("00000000ffff0000000000000000000000000000000000000000000000000000"), - Bits: 0x1d00ffff, - Chainwork: bi("0000000000000000000000000000000000000000000000000000000000000000"), + Limit: bi( + "00000000ffff0000000000000000000000000000000000000000000000000000", + ), + Bits: 0x1d00ffff, + Chainwork: bi( + "0000000000000000000000000000000000000000000000000000000000000000", + ), TargetWindow: targetWindow, TargetSpacing: targetSpacing, BlocksPerDay: blocksPerDay, @@ -299,16 +303,88 @@ func testNet() *Network { MinerWindow: 2016, Deployments: map[string]Deployment{ - "hardening": {Name: "hardening", Bit: 0, StartTime: 1581638400, Timeout: 1707868800, Threshold: -1, Window: -1, Required: false, Force: false}, - "icannlockup": {Name: "icannlockup", Bit: 1, StartTime: 1691625600, Timeout: 1703980800, Threshold: -1, Window: -1, Required: false, Force: false}, - "airstop": {Name: "airstop", Bit: 2, StartTime: 1751328000, Timeout: 1759881600, Threshold: -1, Window: -1, Required: false, Force: false}, - "testdummy": {Name: "testdummy", Bit: 28, StartTime: 1199145601, Timeout: 1230767999, Threshold: -1, Window: -1, Required: false, Force: true}, + "hardening": { + Name: "hardening", + Bit: 0, + StartTime: 1581638400, + Timeout: 1707868800, + Threshold: -1, + Window: -1, + Required: false, + Force: false, + }, + "icannlockup": { + Name: "icannlockup", + Bit: 1, + StartTime: 1691625600, + Timeout: 1703980800, + Threshold: -1, + Window: -1, + Required: false, + Force: false, + }, + "airstop": { + Name: "airstop", + Bit: 2, + StartTime: 1751328000, + Timeout: 1759881600, + Threshold: -1, + Window: -1, + Required: false, + Force: false, + }, + "testdummy": { + Name: "testdummy", + Bit: 28, + StartTime: 1199145601, + Timeout: 1230767999, + Threshold: -1, + Window: -1, + Required: false, + Force: true, + }, }, Deploys: []Deployment{ - {Name: "hardening", Bit: 0, StartTime: 1581638400, Timeout: 1707868800, Threshold: -1, Window: -1, Required: false, Force: false}, - {Name: "icannlockup", Bit: 1, StartTime: 1691625600, Timeout: 1703980800, Threshold: -1, Window: -1, Required: false, Force: false}, - {Name: "airstop", Bit: 2, StartTime: 1751328000, Timeout: 1759881600, Threshold: -1, Window: -1, Required: false, Force: false}, - {Name: "testdummy", Bit: 28, StartTime: 1199145601, Timeout: 1230767999, Threshold: -1, Window: -1, Required: false, Force: true}, + { + Name: "hardening", + Bit: 0, + StartTime: 1581638400, + Timeout: 1707868800, + Threshold: -1, + Window: -1, + Required: false, + Force: false, + }, + { + Name: "icannlockup", + Bit: 1, + StartTime: 1691625600, + Timeout: 1703980800, + Threshold: -1, + Window: -1, + Required: false, + Force: false, + }, + { + Name: "airstop", + Bit: 2, + StartTime: 1751328000, + Timeout: 1759881600, + Threshold: -1, + Window: -1, + Required: false, + Force: false, + }, + { + Name: "testdummy", + Bit: 28, + StartTime: 1199145601, + Timeout: 1230767999, + Threshold: -1, + Window: -1, + Required: false, + Force: true, + }, }, KeyPrefix: KeyPrefix{ @@ -384,9 +460,13 @@ func mainNet() *Network { CoinbaseMaturity: 100, POW: POWParams{ - Limit: bi("0000000000ffff00000000000000000000000000000000000000000000000000"), - Bits: 0x1c00ffff, - Chainwork: bi("00000000000000000000000000000000000000000000000075b5a2b7bf522d45"), + Limit: bi( + "0000000000ffff00000000000000000000000000000000000000000000000000", + ), + Bits: 0x1c00ffff, + Chainwork: bi( + "00000000000000000000000000000000000000000000000075b5a2b7bf522d45", + ), TargetWindow: targetWindow, TargetSpacing: targetSpacing, BlocksPerDay: blocksPerDay, @@ -428,16 +508,88 @@ func mainNet() *Network { MinerWindow: 2016, Deployments: map[string]Deployment{ - "hardening": {Name: "hardening", Bit: 0, StartTime: 1581638400, Timeout: 1707868800, Threshold: -1, Window: -1, Required: false, Force: false}, - "icannlockup": {Name: "icannlockup", Bit: 1, StartTime: 1691625600, Timeout: 1703980800, Threshold: -1, Window: -1, Required: false, Force: false}, - "airstop": {Name: "airstop", Bit: 2, StartTime: 1751328000, Timeout: 1759881600, Threshold: -1, Window: -1, Required: false, Force: false}, - "testdummy": {Name: "testdummy", Bit: 28, StartTime: 1199145601, Timeout: 1230767999, Threshold: -1, Window: -1, Required: false, Force: true}, + "hardening": { + Name: "hardening", + Bit: 0, + StartTime: 1581638400, + Timeout: 1707868800, + Threshold: -1, + Window: -1, + Required: false, + Force: false, + }, + "icannlockup": { + Name: "icannlockup", + Bit: 1, + StartTime: 1691625600, + Timeout: 1703980800, + Threshold: -1, + Window: -1, + Required: false, + Force: false, + }, + "airstop": { + Name: "airstop", + Bit: 2, + StartTime: 1751328000, + Timeout: 1759881600, + Threshold: -1, + Window: -1, + Required: false, + Force: false, + }, + "testdummy": { + Name: "testdummy", + Bit: 28, + StartTime: 1199145601, + Timeout: 1230767999, + Threshold: -1, + Window: -1, + Required: false, + Force: true, + }, }, Deploys: []Deployment{ - {Name: "hardening", Bit: 0, StartTime: 1581638400, Timeout: 1707868800, Threshold: -1, Window: -1, Required: false, Force: false}, - {Name: "icannlockup", Bit: 1, StartTime: 1691625600, Timeout: 1703980800, Threshold: -1, Window: -1, Required: false, Force: false}, - {Name: "airstop", Bit: 2, StartTime: 1751328000, Timeout: 1759881600, Threshold: -1, Window: -1, Required: false, Force: false}, - {Name: "testdummy", Bit: 28, StartTime: 1199145601, Timeout: 1230767999, Threshold: -1, Window: -1, Required: false, Force: true}, + { + Name: "hardening", + Bit: 0, + StartTime: 1581638400, + Timeout: 1707868800, + Threshold: -1, + Window: -1, + Required: false, + Force: false, + }, + { + Name: "icannlockup", + Bit: 1, + StartTime: 1691625600, + Timeout: 1703980800, + Threshold: -1, + Window: -1, + Required: false, + Force: false, + }, + { + Name: "airstop", + Bit: 2, + StartTime: 1751328000, + Timeout: 1759881600, + Threshold: -1, + Window: -1, + Required: false, + Force: false, + }, + { + Name: "testdummy", + Bit: 28, + StartTime: 1199145601, + Timeout: 1230767999, + Threshold: -1, + Window: -1, + Required: false, + Force: true, + }, }, KeyPrefix: KeyPrefix{