Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
196 changes: 174 additions & 22 deletions internal/handshake/protocol/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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{
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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{
Expand Down