@@ -844,7 +844,7 @@ func TestNetworkRouting(t *testing.T) {
844
844
845
845
func buildCodec (t * testing.T , types ... interface {}) codec.Manager {
846
846
codecManager := codec .NewDefaultManager ()
847
- c := linearcodec .NewDefault (time. Time {} )
847
+ c := linearcodec .NewDefault ()
848
848
for _ , typ := range types {
849
849
assert .NoError (t , c .RegisterType (typ ))
850
850
}
@@ -871,7 +871,7 @@ type testAppSender struct {
871
871
sendCrossChainAppResponseFn func (ids.ID , uint32 , []byte ) error
872
872
sendAppRequestFn func (context.Context , set.Set [ids.NodeID ], uint32 , []byte ) error
873
873
sendAppResponseFn func (ids.NodeID , uint32 , []byte ) error
874
- sendAppGossipFn func ([]byte , int , int , int ) error
874
+ sendAppGossipFn func (common. SendConfig , []byte ) error
875
875
}
876
876
877
877
func (t testAppSender ) SendCrossChainAppRequest (_ context.Context , chainID ids.ID , requestID uint32 , appRequestBytes []byte ) error {
@@ -882,10 +882,6 @@ func (t testAppSender) SendCrossChainAppResponse(_ context.Context, chainID ids.
882
882
return t .sendCrossChainAppResponseFn (chainID , requestID , appResponseBytes )
883
883
}
884
884
885
- func (t testAppSender ) SendAppGossipSpecific (context.Context , set.Set [ids.NodeID ], []byte ) error {
886
- panic ("not implemented" )
887
- }
888
-
889
885
func (t testAppSender ) SendAppRequest (ctx context.Context , nodeIDs set.Set [ids.NodeID ], requestID uint32 , message []byte ) error {
890
886
return t .sendAppRequestFn (ctx , nodeIDs , requestID , message )
891
887
}
@@ -894,8 +890,8 @@ func (t testAppSender) SendAppResponse(_ context.Context, nodeID ids.NodeID, req
894
890
return t .sendAppResponseFn (nodeID , requestID , message )
895
891
}
896
892
897
- func (t testAppSender ) SendAppGossip (_ context.Context , message []byte , numValidators int , numNonValidators int , numPeers int ) error {
898
- return t .sendAppGossipFn (message , numValidators , numNonValidators , numPeers )
893
+ func (t testAppSender ) SendAppGossip (_ context.Context , config common. SendConfig , message []byte ) error {
894
+ return t .sendAppGossipFn (config , message )
899
895
}
900
896
901
897
func (t testAppSender ) SendAppError (ctx context.Context , nodeID ids.NodeID , requestID uint32 , errorCode int32 , errorMessage string ) error {
0 commit comments