@@ -15,6 +15,7 @@ import (
15
15
"golang.org/x/sync/errgroup"
16
16
17
17
"github.com/filecoin-project/go-address"
18
+ "github.com/filecoin-project/go-f3"
18
19
"github.com/filecoin-project/go-f3/certs"
19
20
"github.com/filecoin-project/go-f3/gpbft"
20
21
"github.com/filecoin-project/go-f3/manifest"
@@ -99,10 +100,10 @@ func TestF3_InactiveModes(t *testing.T) {
99
100
expectedErrors : map [string ]any {
100
101
"F3GetOrRenewParticipationTicket" : api .ErrF3NotReady ,
101
102
"F3Participate" : api .ErrF3NotReady ,
102
- "F3GetCertificate" : "F3 is not running" ,
103
- "F3GetLatestCertificate" : "F3 is not running" ,
104
- "F3GetManifest" : "no known network manifest" ,
105
- "F3GetF3PowerTable" : "no known network manifest" ,
103
+ "F3GetCertificate" : f3 . ErrF3NotRunning . Error () ,
104
+ "F3GetLatestCertificate" : f3 . ErrF3NotRunning . Error () ,
105
+ "F3GetManifest" : manifest . ErrNoManifest . Error () ,
106
+ "F3GetF3PowerTable" : manifest . ErrNoManifest . Error () ,
106
107
},
107
108
expectedValues : map [string ]any {
108
109
"F3GetOrRenewParticipationTicket" : (api .F3ParticipationTicket )(nil ),
@@ -343,7 +344,7 @@ func (e *testEnv) waitTillF3Instance(i uint64, timeout time.Duration) {
343
344
e .waitFor (func (n * kit.TestFullNode ) bool {
344
345
c , err := n .F3GetLatestCertificate (e .testCtx )
345
346
if err != nil {
346
- require .ErrorContains (e .t , err , "F3 is not running" )
347
+ require .ErrorContains (e .t , err , f3 . ErrF3NotRunning . Error () )
347
348
return false
348
349
}
349
350
return c != nil && c .GPBFTInstance >= i
@@ -441,17 +442,23 @@ func setup(t *testing.T, blocktime time.Duration, opts ...kit.NodeOpt) *testEnv
441
442
442
443
func newTestManifest (networkName gpbft.NetworkName , bootstrapEpoch int64 , blocktime time.Duration ) * manifest.Manifest {
443
444
return & manifest.Manifest {
445
+ Pause : false ,
444
446
ProtocolVersion : manifest .VersionCapability ,
447
+ InitialInstance : 0 ,
445
448
BootstrapEpoch : bootstrapEpoch ,
446
449
NetworkName : networkName ,
450
+ ExplicitPower : nil ,
451
+ IgnoreECPower : false ,
447
452
InitialPowerTable : cid .Undef ,
448
453
CommitteeLookback : manifest .DefaultCommitteeLookback ,
449
454
CatchUpAlignment : blocktime / 2 ,
450
455
Gpbft : manifest.GpbftConfig {
451
456
// Use smaller time intervals for more responsive test progress/assertion.
452
457
Delta : 250 * time .Millisecond ,
453
458
DeltaBackOffExponent : 1.3 ,
459
+ QualityDeltaMultiplier : 1.0 ,
454
460
MaxLookaheadRounds : 5 ,
461
+ ChainProposedLength : manifest .DefaultGpbftConfig .ChainProposedLength ,
455
462
RebroadcastBackoffBase : 500 * time .Millisecond ,
456
463
RebroadcastBackoffSpread : 0.1 ,
457
464
RebroadcastBackoffExponent : 1.3 ,
@@ -465,12 +472,9 @@ func newTestManifest(networkName gpbft.NetworkName, bootstrapEpoch int64, blockt
465
472
HeadLookback : 0 ,
466
473
Finalize : true ,
467
474
},
468
- CertificateExchange : manifest.CxConfig {
469
- ClientRequestTimeout : manifest .DefaultCxConfig .ClientRequestTimeout ,
470
- ServerRequestTimeout : manifest .DefaultCxConfig .ServerRequestTimeout ,
471
- MinimumPollInterval : blocktime ,
472
- MaximumPollInterval : 4 * blocktime ,
473
- },
475
+ CertificateExchange : manifest .DefaultCxConfig ,
476
+ PubSub : manifest .DefaultPubSubConfig ,
477
+ ChainExchange : manifest .DefaultChainExchangeConfig ,
474
478
}
475
479
}
476
480
0 commit comments