Skip to content

Commit ef058b7

Browse files
committed
chore: make format golines
Signed-off-by: Chris Gianelloni <[email protected]>
1 parent 56e38c3 commit ef058b7

File tree

1 file changed

+174
-22
lines changed

1 file changed

+174
-22
lines changed

internal/handshake/protocol/network.go

Lines changed: 174 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -255,9 +255,13 @@ func testNet() *Network {
255255
CoinbaseMaturity: 100,
256256

257257
POW: POWParams{
258-
Limit: bi("00000000ffff0000000000000000000000000000000000000000000000000000"),
259-
Bits: 0x1d00ffff,
260-
Chainwork: bi("0000000000000000000000000000000000000000000000000000000000000000"),
258+
Limit: bi(
259+
"00000000ffff0000000000000000000000000000000000000000000000000000",
260+
),
261+
Bits: 0x1d00ffff,
262+
Chainwork: bi(
263+
"0000000000000000000000000000000000000000000000000000000000000000",
264+
),
261265
TargetWindow: targetWindow,
262266
TargetSpacing: targetSpacing,
263267
BlocksPerDay: blocksPerDay,
@@ -299,16 +303,88 @@ func testNet() *Network {
299303
MinerWindow: 2016,
300304

301305
Deployments: map[string]Deployment{
302-
"hardening": {Name: "hardening", Bit: 0, StartTime: 1581638400, Timeout: 1707868800, Threshold: -1, Window: -1, Required: false, Force: false},
303-
"icannlockup": {Name: "icannlockup", Bit: 1, StartTime: 1691625600, Timeout: 1703980800, Threshold: -1, Window: -1, Required: false, Force: false},
304-
"airstop": {Name: "airstop", Bit: 2, StartTime: 1751328000, Timeout: 1759881600, Threshold: -1, Window: -1, Required: false, Force: false},
305-
"testdummy": {Name: "testdummy", Bit: 28, StartTime: 1199145601, Timeout: 1230767999, Threshold: -1, Window: -1, Required: false, Force: true},
306+
"hardening": {
307+
Name: "hardening",
308+
Bit: 0,
309+
StartTime: 1581638400,
310+
Timeout: 1707868800,
311+
Threshold: -1,
312+
Window: -1,
313+
Required: false,
314+
Force: false,
315+
},
316+
"icannlockup": {
317+
Name: "icannlockup",
318+
Bit: 1,
319+
StartTime: 1691625600,
320+
Timeout: 1703980800,
321+
Threshold: -1,
322+
Window: -1,
323+
Required: false,
324+
Force: false,
325+
},
326+
"airstop": {
327+
Name: "airstop",
328+
Bit: 2,
329+
StartTime: 1751328000,
330+
Timeout: 1759881600,
331+
Threshold: -1,
332+
Window: -1,
333+
Required: false,
334+
Force: false,
335+
},
336+
"testdummy": {
337+
Name: "testdummy",
338+
Bit: 28,
339+
StartTime: 1199145601,
340+
Timeout: 1230767999,
341+
Threshold: -1,
342+
Window: -1,
343+
Required: false,
344+
Force: true,
345+
},
306346
},
307347
Deploys: []Deployment{
308-
{Name: "hardening", Bit: 0, StartTime: 1581638400, Timeout: 1707868800, Threshold: -1, Window: -1, Required: false, Force: false},
309-
{Name: "icannlockup", Bit: 1, StartTime: 1691625600, Timeout: 1703980800, Threshold: -1, Window: -1, Required: false, Force: false},
310-
{Name: "airstop", Bit: 2, StartTime: 1751328000, Timeout: 1759881600, Threshold: -1, Window: -1, Required: false, Force: false},
311-
{Name: "testdummy", Bit: 28, StartTime: 1199145601, Timeout: 1230767999, Threshold: -1, Window: -1, Required: false, Force: true},
348+
{
349+
Name: "hardening",
350+
Bit: 0,
351+
StartTime: 1581638400,
352+
Timeout: 1707868800,
353+
Threshold: -1,
354+
Window: -1,
355+
Required: false,
356+
Force: false,
357+
},
358+
{
359+
Name: "icannlockup",
360+
Bit: 1,
361+
StartTime: 1691625600,
362+
Timeout: 1703980800,
363+
Threshold: -1,
364+
Window: -1,
365+
Required: false,
366+
Force: false,
367+
},
368+
{
369+
Name: "airstop",
370+
Bit: 2,
371+
StartTime: 1751328000,
372+
Timeout: 1759881600,
373+
Threshold: -1,
374+
Window: -1,
375+
Required: false,
376+
Force: false,
377+
},
378+
{
379+
Name: "testdummy",
380+
Bit: 28,
381+
StartTime: 1199145601,
382+
Timeout: 1230767999,
383+
Threshold: -1,
384+
Window: -1,
385+
Required: false,
386+
Force: true,
387+
},
312388
},
313389

314390
KeyPrefix: KeyPrefix{
@@ -384,9 +460,13 @@ func mainNet() *Network {
384460
CoinbaseMaturity: 100,
385461

386462
POW: POWParams{
387-
Limit: bi("0000000000ffff00000000000000000000000000000000000000000000000000"),
388-
Bits: 0x1c00ffff,
389-
Chainwork: bi("00000000000000000000000000000000000000000000000075b5a2b7bf522d45"),
463+
Limit: bi(
464+
"0000000000ffff00000000000000000000000000000000000000000000000000",
465+
),
466+
Bits: 0x1c00ffff,
467+
Chainwork: bi(
468+
"00000000000000000000000000000000000000000000000075b5a2b7bf522d45",
469+
),
390470
TargetWindow: targetWindow,
391471
TargetSpacing: targetSpacing,
392472
BlocksPerDay: blocksPerDay,
@@ -428,16 +508,88 @@ func mainNet() *Network {
428508
MinerWindow: 2016,
429509

430510
Deployments: map[string]Deployment{
431-
"hardening": {Name: "hardening", Bit: 0, StartTime: 1581638400, Timeout: 1707868800, Threshold: -1, Window: -1, Required: false, Force: false},
432-
"icannlockup": {Name: "icannlockup", Bit: 1, StartTime: 1691625600, Timeout: 1703980800, Threshold: -1, Window: -1, Required: false, Force: false},
433-
"airstop": {Name: "airstop", Bit: 2, StartTime: 1751328000, Timeout: 1759881600, Threshold: -1, Window: -1, Required: false, Force: false},
434-
"testdummy": {Name: "testdummy", Bit: 28, StartTime: 1199145601, Timeout: 1230767999, Threshold: -1, Window: -1, Required: false, Force: true},
511+
"hardening": {
512+
Name: "hardening",
513+
Bit: 0,
514+
StartTime: 1581638400,
515+
Timeout: 1707868800,
516+
Threshold: -1,
517+
Window: -1,
518+
Required: false,
519+
Force: false,
520+
},
521+
"icannlockup": {
522+
Name: "icannlockup",
523+
Bit: 1,
524+
StartTime: 1691625600,
525+
Timeout: 1703980800,
526+
Threshold: -1,
527+
Window: -1,
528+
Required: false,
529+
Force: false,
530+
},
531+
"airstop": {
532+
Name: "airstop",
533+
Bit: 2,
534+
StartTime: 1751328000,
535+
Timeout: 1759881600,
536+
Threshold: -1,
537+
Window: -1,
538+
Required: false,
539+
Force: false,
540+
},
541+
"testdummy": {
542+
Name: "testdummy",
543+
Bit: 28,
544+
StartTime: 1199145601,
545+
Timeout: 1230767999,
546+
Threshold: -1,
547+
Window: -1,
548+
Required: false,
549+
Force: true,
550+
},
435551
},
436552
Deploys: []Deployment{
437-
{Name: "hardening", Bit: 0, StartTime: 1581638400, Timeout: 1707868800, Threshold: -1, Window: -1, Required: false, Force: false},
438-
{Name: "icannlockup", Bit: 1, StartTime: 1691625600, Timeout: 1703980800, Threshold: -1, Window: -1, Required: false, Force: false},
439-
{Name: "airstop", Bit: 2, StartTime: 1751328000, Timeout: 1759881600, Threshold: -1, Window: -1, Required: false, Force: false},
440-
{Name: "testdummy", Bit: 28, StartTime: 1199145601, Timeout: 1230767999, Threshold: -1, Window: -1, Required: false, Force: true},
553+
{
554+
Name: "hardening",
555+
Bit: 0,
556+
StartTime: 1581638400,
557+
Timeout: 1707868800,
558+
Threshold: -1,
559+
Window: -1,
560+
Required: false,
561+
Force: false,
562+
},
563+
{
564+
Name: "icannlockup",
565+
Bit: 1,
566+
StartTime: 1691625600,
567+
Timeout: 1703980800,
568+
Threshold: -1,
569+
Window: -1,
570+
Required: false,
571+
Force: false,
572+
},
573+
{
574+
Name: "airstop",
575+
Bit: 2,
576+
StartTime: 1751328000,
577+
Timeout: 1759881600,
578+
Threshold: -1,
579+
Window: -1,
580+
Required: false,
581+
Force: false,
582+
},
583+
{
584+
Name: "testdummy",
585+
Bit: 28,
586+
StartTime: 1199145601,
587+
Timeout: 1230767999,
588+
Threshold: -1,
589+
Window: -1,
590+
Required: false,
591+
Force: true,
592+
},
441593
},
442594

443595
KeyPrefix: KeyPrefix{

0 commit comments

Comments
 (0)