File tree Expand file tree Collapse file tree 1 file changed +0
-29
lines changed Expand file tree Collapse file tree 1 file changed +0
-29
lines changed Original file line number Diff line number Diff line change 6
6
"errors"
7
7
"fmt"
8
8
"io"
9
- "slices"
10
9
"time"
11
10
12
11
"github.com/filecoin-project/go-f3/gpbft"
@@ -189,14 +188,6 @@ type EcConfig struct {
189
188
Finalize bool
190
189
}
191
190
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
-
200
191
func (e * EcConfig ) Validate () error {
201
192
switch {
202
193
case e .HeadLookback < 0 :
@@ -336,26 +327,6 @@ type Manifest struct {
336
327
PartialMessageManager PartialMessageManagerConfig
337
328
}
338
329
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
-
359
330
func (m * Manifest ) Validate () error {
360
331
switch {
361
332
case m == nil :
You can’t perform that action at this time.
0 commit comments