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 {
4343 return p .ShelleyProtocolParameters .Utxorpc ()
4444}
4545
46- func UpgradePParams (prevPParams shelley.ShelleyProtocolParameters ) AllegraProtocolParameters {
46+ func UpgradePParams (
47+ prevPParams shelley.ShelleyProtocolParameters ,
48+ ) AllegraProtocolParameters {
4749 return AllegraProtocolParameters {
4850 ShelleyProtocolParameters : prevPParams ,
4951 }
Original file line number Diff line number Diff line change @@ -170,7 +170,9 @@ func (p *AlonzoProtocolParameters) Utxorpc() *cardano.PParams {
170170 }
171171}
172172
173- func UpgradePParams (prevPParams mary.MaryProtocolParameters ) AlonzoProtocolParameters {
173+ func UpgradePParams (
174+ prevPParams mary.MaryProtocolParameters ,
175+ ) AlonzoProtocolParameters {
174176 return AlonzoProtocolParameters {
175177 MaryProtocolParameters : prevPParams ,
176178 }
Original file line number Diff line number Diff line change @@ -209,7 +209,9 @@ func (p *BabbageProtocolParameters) Utxorpc() *cardano.PParams {
209209 }
210210}
211211
212- func UpgradePParams (prevPParams alonzo.AlonzoProtocolParameters ) BabbageProtocolParameters {
212+ func UpgradePParams (
213+ prevPParams alonzo.AlonzoProtocolParameters ,
214+ ) BabbageProtocolParameters {
213215 ret := BabbageProtocolParameters {
214216 MinFeeA : prevPParams .MinFeeA ,
215217 MinFeeB : prevPParams .MinFeeB ,
Original file line number Diff line number Diff line change @@ -348,7 +348,9 @@ type DRepVotingThresholds struct {
348348 TreasuryWithdrawal cbor.Rat
349349}
350350
351- func UpgradePParams (prevPParams babbage.BabbageProtocolParameters ) ConwayProtocolParameters {
351+ func UpgradePParams (
352+ prevPParams babbage.BabbageProtocolParameters ,
353+ ) ConwayProtocolParameters {
352354 ret := ConwayProtocolParameters {
353355 MinFeeA : prevPParams .MinFeeA ,
354356 MinFeeB : prevPParams .MinFeeB ,
Original file line number Diff line number Diff line change @@ -43,7 +43,9 @@ func (p *MaryProtocolParameters) Utxorpc() *cardano.PParams {
4343 return p .AllegraProtocolParameters .Utxorpc ()
4444}
4545
46- func UpgradePParams (prevPParams allegra.AllegraProtocolParameters ) MaryProtocolParameters {
46+ func UpgradePParams (
47+ prevPParams allegra.AllegraProtocolParameters ,
48+ ) MaryProtocolParameters {
4749 return MaryProtocolParameters {
4850 AllegraProtocolParameters : prevPParams ,
4951 }
Original file line number Diff line number Diff line change @@ -134,7 +134,9 @@ func (s *Server) handleProposeVersions(msg protocol.Message) error {
134134 []any {
135135 RefuseReasonDecodeError ,
136136 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+ ),
138140 },
139141 )
140142 if err := s .SendMessage (msgRefuse ); err != nil {
@@ -168,7 +170,9 @@ func (s *Server) handleProposeVersions(msg protocol.Message) error {
168170 []any {
169171 RefuseReasonDecodeError ,
170172 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+ ),
172176 },
173177 )
174178 if err := s .SendMessage (msgRefuse ); err != nil {
You can’t perform that action at this time.
0 commit comments