Skip to content

Commit

Permalink
Merge branch 'development' into eclesio/sync-strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
EclesioMeloJunior committed Sep 13, 2024
2 parents 330444c + 7eba200 commit 2eda142
Show file tree
Hide file tree
Showing 33 changed files with 5,643 additions and 583 deletions.
4 changes: 4 additions & 0 deletions dot/mock_node_builder_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dot/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ type nodeBuilderIface interface {
) (*core.Service, error)
createGRANDPAService(config *cfg.Config, st *state.Service, ks KeyStore,
net *network.Service, telemetryMailer Telemetry) (*grandpa.Service, error)
newSyncService(config *cfg.Config, st *state.Service, finalityGadget BlockJustificationVerifier,
newSyncService(config *cfg.Config, st *state.Service, finalityGadget dotsync.FinalityGadget,
verifier *babe.VerificationManager, cs *core.Service, net *network.Service,
telemetryMailer Telemetry) (network.Syncer, error)
createBABEService(config *cfg.Config, st *state.Service, ks KeyStore, cs *core.Service,
Expand Down
2 changes: 1 addition & 1 deletion dot/services.go
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ func (nodeBuilder) createBlockVerifier(st *state.Service) *babe.VerificationMana
return babe.NewVerificationManager(st.Block, st.Slot, st.Epoch)
}

func (nodeBuilder) newSyncService(config *cfg.Config, st *state.Service, fg BlockJustificationVerifier,
func (nodeBuilder) newSyncService(config *cfg.Config, st *state.Service, fg sync.FinalityGadget,
verifier *babe.VerificationManager, cs *core.Service, net *network.Service, telemetryMailer Telemetry) (
network.Syncer, error) {
slotDuration, err := st.Epoch.GetSlotDuration()
Expand Down
3 changes: 2 additions & 1 deletion dot/services_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import (
"github.com/ChainSafe/gossamer/dot/network"
rpc "github.com/ChainSafe/gossamer/dot/rpc"
"github.com/ChainSafe/gossamer/dot/state"
"github.com/ChainSafe/gossamer/dot/sync"
"github.com/ChainSafe/gossamer/dot/telemetry"
"github.com/ChainSafe/gossamer/dot/types"
"github.com/ChainSafe/gossamer/internal/log"
Expand Down Expand Up @@ -373,7 +374,7 @@ func Test_nodeBuilder_newSyncService(t *testing.T) {
require.NoError(t, err)

type args struct {
fg BlockJustificationVerifier
fg sync.FinalityGadget
verifier *babe.VerificationManager
cs *core.Service
net *network.Service
Expand Down
Loading

0 comments on commit 2eda142

Please sign in to comment.