Skip to content

Commit

Permalink
chore: fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
simlecode committed Oct 11, 2024
1 parent e5d7f6b commit c48ff4d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,7 @@ func newDefaultNetworkParamsConfig() *NetworkParamsConfig {
PropagationDelaySecs: 10,
AllowableClockDriftSecs: 1,
Eip155ChainID: 314,
ManifestServerID: "12D3KooWENMwUF9YxvQxar7uBWJtZkA6amvK4xWmKXfSiHUo2Qq7",
}
}

Expand Down
4 changes: 2 additions & 2 deletions pkg/vf3/f3.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ func New(mctx context.Context, params F3Params) (*F3, error) {
return nil, fmt.Errorf("creating F3: %w", err)
}

nodeId, err := params.Net.ID(mctx)
nodeID, err := params.Net.ID(mctx)
if err != nil {
return nil, fmt.Errorf("getting node ID: %w", err)
}
Expand All @@ -101,7 +101,7 @@ func New(mctx context.Context, params F3Params) (*F3, error) {
inner: module,
ec: ec,
signer: &signer{sign: params.WalletSign},
leaser: newParticipationLeaser(nodeId, status, maxLeasableInstances),
leaser: newParticipationLeaser(nodeID, status, maxLeasableInstances),
}

go func() {
Expand Down
4 changes: 2 additions & 2 deletions pkg/vf3/participation_lease.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ type leaser struct {
maxLeasableInstances uint64
}

func newParticipationLeaser(nodeId peer.ID, status f3Status, maxLeasedInstances uint64) *leaser {
func newParticipationLeaser(nodeID peer.ID, status f3Status, maxLeasedInstances uint64) *leaser {
return &leaser{
leases: make(map[uint64]types.F3ParticipationLease),
issuer: nodeId,
issuer: nodeID,
status: status,
maxLeasableInstances: maxLeasedInstances,
}
Expand Down

0 comments on commit c48ff4d

Please sign in to comment.