@@ -40,7 +40,9 @@ func TestAlonzoProtocolParamsUpdate(t *testing.T) {
40
40
MaryProtocolParameters : mary.MaryProtocolParameters {
41
41
AllegraProtocolParameters : allegra.AllegraProtocolParameters {
42
42
ShelleyProtocolParameters : shelley.ShelleyProtocolParameters {
43
- Decentralization : & cbor.Rat {Rat : new (big.Rat ).SetInt64 (1 )},
43
+ Decentralization : & cbor.Rat {
44
+ Rat : new (big.Rat ).SetInt64 (1 ),
45
+ },
44
46
},
45
47
},
46
48
},
@@ -119,7 +121,11 @@ func TestAlonzoProtocolParamsUpdate(t *testing.T) {
119
121
tmpParams := testDef .startParams
120
122
tmpParams .Update (& tmpUpdate )
121
123
if ! reflect .DeepEqual (tmpParams , testDef .expectedParams ) {
122
- t .Fatalf ("did not get expected params:\n got: %#v\n wanted: %#v" , tmpParams , testDef .expectedParams )
124
+ t .Fatalf (
125
+ "did not get expected params:\n got: %#v\n wanted: %#v" ,
126
+ tmpParams ,
127
+ testDef .expectedParams ,
128
+ )
123
129
}
124
130
}
125
131
}
@@ -135,7 +141,9 @@ func TestAlonzoProtocolParamsUpdateFromGenesis(t *testing.T) {
135
141
MaryProtocolParameters : mary.MaryProtocolParameters {
136
142
AllegraProtocolParameters : allegra.AllegraProtocolParameters {
137
143
ShelleyProtocolParameters : shelley.ShelleyProtocolParameters {
138
- Decentralization : & cbor.Rat {Rat : new (big.Rat ).SetInt64 (1 )},
144
+ Decentralization : & cbor.Rat {
145
+ Rat : new (big.Rat ).SetInt64 (1 ),
146
+ },
139
147
},
140
148
},
141
149
},
@@ -145,7 +153,9 @@ func TestAlonzoProtocolParamsUpdateFromGenesis(t *testing.T) {
145
153
MaryProtocolParameters : mary.MaryProtocolParameters {
146
154
AllegraProtocolParameters : allegra.AllegraProtocolParameters {
147
155
ShelleyProtocolParameters : shelley.ShelleyProtocolParameters {
148
- Decentralization : & cbor.Rat {Rat : new (big.Rat ).SetInt64 (1 )},
156
+ Decentralization : & cbor.Rat {
157
+ Rat : new (big.Rat ).SetInt64 (1 ),
158
+ },
149
159
},
150
160
},
151
161
},
@@ -154,14 +164,20 @@ func TestAlonzoProtocolParamsUpdateFromGenesis(t *testing.T) {
154
164
},
155
165
}
156
166
for _ , testDef := range testDefs {
157
- tmpGenesis , err := alonzo .NewAlonzoGenesisFromReader (strings .NewReader (testDef .genesisJson ))
167
+ tmpGenesis , err := alonzo .NewAlonzoGenesisFromReader (
168
+ strings .NewReader (testDef .genesisJson ),
169
+ )
158
170
if err != nil {
159
171
t .Fatalf ("unexpected error: %s" , err )
160
172
}
161
173
tmpParams := testDef .startParams
162
174
tmpParams .UpdateFromGenesis (& tmpGenesis )
163
175
if ! reflect .DeepEqual (tmpParams , testDef .expectedParams ) {
164
- t .Fatalf ("did not get expected params:\n got: %#v\n wanted: %#v" , tmpParams , testDef .expectedParams )
176
+ t .Fatalf (
177
+ "did not get expected params:\n got: %#v\n wanted: %#v" ,
178
+ tmpParams ,
179
+ testDef .expectedParams ,
180
+ )
165
181
}
166
182
}
167
183
}
0 commit comments