Skip to content

Commit 7b90493

Browse files
authored
delete dead Manifest.Equal code (#1002)
Part of filecoin-project/lotus#12971 Signed-off-by: Jakub Sztandera <[email protected]>
1 parent 1818c1e commit 7b90493

File tree

1 file changed

+0
-29
lines changed

1 file changed

+0
-29
lines changed

manifest/manifest.go

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import (
66
"errors"
77
"fmt"
88
"io"
9-
"slices"
109
"time"
1110

1211
"github.com/filecoin-project/go-f3/gpbft"
@@ -189,14 +188,6 @@ type EcConfig struct {
189188
Finalize bool
190189
}
191190

192-
func (e *EcConfig) Equal(o *EcConfig) bool {
193-
return e.Period == o.Period &&
194-
e.Finality == o.Finality &&
195-
e.DelayMultiplier == o.DelayMultiplier &&
196-
e.HeadLookback == o.HeadLookback &&
197-
slices.Equal(e.BaseDecisionBackoffTable, o.BaseDecisionBackoffTable)
198-
}
199-
200191
func (e *EcConfig) Validate() error {
201192
switch {
202193
case e.HeadLookback < 0:
@@ -336,26 +327,6 @@ type Manifest struct {
336327
PartialMessageManager PartialMessageManagerConfig
337328
}
338329

339-
func (m *Manifest) Equal(o *Manifest) bool {
340-
if m == nil || o == nil {
341-
return m == o
342-
}
343-
344-
return m.NetworkName == o.NetworkName &&
345-
m.InitialInstance == o.InitialInstance &&
346-
m.BootstrapEpoch == o.BootstrapEpoch &&
347-
m.CommitteeLookback == o.CommitteeLookback &&
348-
// Don't include this in equality checks because it doesn't change the meaning of
349-
// the manifest (and we don't want to restart the network when we first publish
350-
// this).
351-
// m.InitialPowerTable.Equals(o.InitialPowerTable) &&
352-
m.Gpbft == o.Gpbft &&
353-
m.EC.Equal(&o.EC) &&
354-
m.CertificateExchange == o.CertificateExchange &&
355-
m.ProtocolVersion == o.ProtocolVersion
356-
357-
}
358-
359330
func (m *Manifest) Validate() error {
360331
switch {
361332
case m == nil:

0 commit comments

Comments
 (0)