diff --git a/ledger/allegra/pparams.go b/ledger/allegra/pparams.go index ed2290bd..317da9a2 100644 --- a/ledger/allegra/pparams.go +++ b/ledger/allegra/pparams.go @@ -43,7 +43,9 @@ func (p *AllegraProtocolParameters) Utxorpc() *cardano.PParams { return p.ShelleyProtocolParameters.Utxorpc() } -func UpgradePParams(prevPParams shelley.ShelleyProtocolParameters) AllegraProtocolParameters { +func UpgradePParams( + prevPParams shelley.ShelleyProtocolParameters, +) AllegraProtocolParameters { return AllegraProtocolParameters{ ShelleyProtocolParameters: prevPParams, } diff --git a/ledger/alonzo/pparams.go b/ledger/alonzo/pparams.go index 963234ed..b0c3d556 100644 --- a/ledger/alonzo/pparams.go +++ b/ledger/alonzo/pparams.go @@ -170,7 +170,9 @@ func (p *AlonzoProtocolParameters) Utxorpc() *cardano.PParams { } } -func UpgradePParams(prevPParams mary.MaryProtocolParameters) AlonzoProtocolParameters { +func UpgradePParams( + prevPParams mary.MaryProtocolParameters, +) AlonzoProtocolParameters { return AlonzoProtocolParameters{ MaryProtocolParameters: prevPParams, } diff --git a/ledger/babbage/pparams.go b/ledger/babbage/pparams.go index 3319718b..992210fc 100644 --- a/ledger/babbage/pparams.go +++ b/ledger/babbage/pparams.go @@ -209,7 +209,9 @@ func (p *BabbageProtocolParameters) Utxorpc() *cardano.PParams { } } -func UpgradePParams(prevPParams alonzo.AlonzoProtocolParameters) BabbageProtocolParameters { +func UpgradePParams( + prevPParams alonzo.AlonzoProtocolParameters, +) BabbageProtocolParameters { ret := BabbageProtocolParameters{ MinFeeA: prevPParams.MinFeeA, MinFeeB: prevPParams.MinFeeB, diff --git a/ledger/conway/pparams.go b/ledger/conway/pparams.go index 822ac8cf..532776b9 100644 --- a/ledger/conway/pparams.go +++ b/ledger/conway/pparams.go @@ -348,7 +348,9 @@ type DRepVotingThresholds struct { TreasuryWithdrawal cbor.Rat } -func UpgradePParams(prevPParams babbage.BabbageProtocolParameters) ConwayProtocolParameters { +func UpgradePParams( + prevPParams babbage.BabbageProtocolParameters, +) ConwayProtocolParameters { ret := ConwayProtocolParameters{ MinFeeA: prevPParams.MinFeeA, MinFeeB: prevPParams.MinFeeB, diff --git a/ledger/mary/pparams.go b/ledger/mary/pparams.go index b1a8a322..187adc66 100644 --- a/ledger/mary/pparams.go +++ b/ledger/mary/pparams.go @@ -43,7 +43,9 @@ func (p *MaryProtocolParameters) Utxorpc() *cardano.PParams { return p.AllegraProtocolParameters.Utxorpc() } -func UpgradePParams(prevPParams allegra.AllegraProtocolParameters) MaryProtocolParameters { +func UpgradePParams( + prevPParams allegra.AllegraProtocolParameters, +) MaryProtocolParameters { return MaryProtocolParameters{ AllegraProtocolParameters: prevPParams, } diff --git a/protocol/handshake/server.go b/protocol/handshake/server.go index d4d363fe..bdcb9483 100644 --- a/protocol/handshake/server.go +++ b/protocol/handshake/server.go @@ -134,7 +134,9 @@ func (s *Server) handleProposeVersions(msg protocol.Message) error { []any{ RefuseReasonDecodeError, proposedVersion, - fmt.Errorf("handshake failed: refused due to empty version data"), + fmt.Errorf( + "handshake failed: refused due to empty version data", + ), }, ) if err := s.SendMessage(msgRefuse); err != nil { @@ -168,7 +170,9 @@ func (s *Server) handleProposeVersions(msg protocol.Message) error { []any{ RefuseReasonDecodeError, proposedVersion, - fmt.Errorf("handshake failed: refused due to empty version map"), + fmt.Errorf( + "handshake failed: refused due to empty version map", + ), }, ) if err := s.SendMessage(msgRefuse); err != nil {