-
Notifications
You must be signed in to change notification settings - Fork 197
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ConnectionTopic in order to feed the peers shard mapper with the info that HeartbeatV2 does not have #3927
Conversation
…ved the logic for currentPayloadProvider
removed assert on unknown peers
fixed data races
heartbeat/processor/peerAuthenticationRequestsProcessor_test.go
Outdated
Show resolved
Hide resolved
process/factory/interceptorscontainer/baseInterceptorsContainerFactory.go
Outdated
Show resolved
Hide resolved
@@ -690,27 +690,27 @@ func (bicf *baseInterceptorsContainerFactory) generateHeartbeatInterceptor() err | |||
|
|||
// ------- ShardValidatorInfo interceptor |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missed this one :D
@@ -118,7 +118,7 @@ func Test_shardValidatorInfoInterceptorProcessor_Save(t *testing.T) { | |||
}) | |||
} | |||
|
|||
func Test_shardValidatorInfoInterceptorProcessor_DisabledMethods(t *testing.T) { | |||
func Test_validatorInfoInterceptorProcessor_DisabledMethods(t *testing.T) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TestValidatorInfoInterceptorProcessor_DisabledMethod ?
This suggestion will comply with the rest of the project's naming conventions
assert.Nil(t, err) | ||
assert.False(t, check.IfNil(processor)) | ||
}) | ||
} | ||
|
||
func Test_shardValidatorInfoInterceptorProcessor_Save(t *testing.T) { | ||
func Test_validatorInfoInterceptorProcessor_Save(t *testing.T) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TestValidatorInfoInterceptorProcessor_Save ?
process/interceptors/processor/shardValidatorInfoInterceptorProcessor.go
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe remove the shard
part from the filename:
process/p2p/interceptedShardValidatorInfo.go
directConnectionsProcessor
which sends a message with shard id to all connected peers on a separate goroutine. Added this component as aheartbeatV2Component
.ConnectionTopic
used by the above component, which saves the pair pid-shard id into peer shard mapper.crossShardStatusProcessor
as it is not used anymore.currentPayloadProvider
.