File tree Expand file tree Collapse file tree 6 files changed +21
-7
lines changed Expand file tree Collapse file tree 6 files changed +21
-7
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,9 @@ func (p *AllegraProtocolParameters) Utxorpc() *cardano.PParams {
43
43
return p .ShelleyProtocolParameters .Utxorpc ()
44
44
}
45
45
46
- func UpgradePParams (prevPParams shelley.ShelleyProtocolParameters ) AllegraProtocolParameters {
46
+ func UpgradePParams (
47
+ prevPParams shelley.ShelleyProtocolParameters ,
48
+ ) AllegraProtocolParameters {
47
49
return AllegraProtocolParameters {
48
50
ShelleyProtocolParameters : prevPParams ,
49
51
}
Original file line number Diff line number Diff line change @@ -170,7 +170,9 @@ func (p *AlonzoProtocolParameters) Utxorpc() *cardano.PParams {
170
170
}
171
171
}
172
172
173
- func UpgradePParams (prevPParams mary.MaryProtocolParameters ) AlonzoProtocolParameters {
173
+ func UpgradePParams (
174
+ prevPParams mary.MaryProtocolParameters ,
175
+ ) AlonzoProtocolParameters {
174
176
return AlonzoProtocolParameters {
175
177
MaryProtocolParameters : prevPParams ,
176
178
}
Original file line number Diff line number Diff line change @@ -209,7 +209,9 @@ func (p *BabbageProtocolParameters) Utxorpc() *cardano.PParams {
209
209
}
210
210
}
211
211
212
- func UpgradePParams (prevPParams alonzo.AlonzoProtocolParameters ) BabbageProtocolParameters {
212
+ func UpgradePParams (
213
+ prevPParams alonzo.AlonzoProtocolParameters ,
214
+ ) BabbageProtocolParameters {
213
215
ret := BabbageProtocolParameters {
214
216
MinFeeA : prevPParams .MinFeeA ,
215
217
MinFeeB : prevPParams .MinFeeB ,
Original file line number Diff line number Diff line change @@ -348,7 +348,9 @@ type DRepVotingThresholds struct {
348
348
TreasuryWithdrawal cbor.Rat
349
349
}
350
350
351
- func UpgradePParams (prevPParams babbage.BabbageProtocolParameters ) ConwayProtocolParameters {
351
+ func UpgradePParams (
352
+ prevPParams babbage.BabbageProtocolParameters ,
353
+ ) ConwayProtocolParameters {
352
354
ret := ConwayProtocolParameters {
353
355
MinFeeA : prevPParams .MinFeeA ,
354
356
MinFeeB : prevPParams .MinFeeB ,
Original file line number Diff line number Diff line change @@ -43,7 +43,9 @@ func (p *MaryProtocolParameters) Utxorpc() *cardano.PParams {
43
43
return p .AllegraProtocolParameters .Utxorpc ()
44
44
}
45
45
46
- func UpgradePParams (prevPParams allegra.AllegraProtocolParameters ) MaryProtocolParameters {
46
+ func UpgradePParams (
47
+ prevPParams allegra.AllegraProtocolParameters ,
48
+ ) MaryProtocolParameters {
47
49
return MaryProtocolParameters {
48
50
AllegraProtocolParameters : prevPParams ,
49
51
}
Original file line number Diff line number Diff line change @@ -134,7 +134,9 @@ func (s *Server) handleProposeVersions(msg protocol.Message) error {
134
134
[]any {
135
135
RefuseReasonDecodeError ,
136
136
proposedVersion ,
137
- fmt .Errorf ("handshake failed: refused due to empty version data" ),
137
+ fmt .Errorf (
138
+ "handshake failed: refused due to empty version data" ,
139
+ ),
138
140
},
139
141
)
140
142
if err := s .SendMessage (msgRefuse ); err != nil {
@@ -168,7 +170,9 @@ func (s *Server) handleProposeVersions(msg protocol.Message) error {
168
170
[]any {
169
171
RefuseReasonDecodeError ,
170
172
proposedVersion ,
171
- fmt .Errorf ("handshake failed: refused due to empty version map" ),
173
+ fmt .Errorf (
174
+ "handshake failed: refused due to empty version map" ,
175
+ ),
172
176
},
173
177
)
174
178
if err := s .SendMessage (msgRefuse ); err != nil {
You can’t perform that action at this time.
0 commit comments