-
Notifications
You must be signed in to change notification settings - Fork 198
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
Improve block tracker computation time #2280
Improve block tracker computation time #2280
Conversation
SebastianMarian
commented
Sep 8, 2020
- Improved block tracker computation time, when received headers are behind final or if registered handlers lists which should be notified on new headers received are empty
…behind final or if registered handlers lists which should be notified on new headers received are empty
@@ -6,8 +6,9 @@ import ( | |||
|
|||
// BlockNotifierHandlerMock - | |||
type BlockNotifierHandlerMock struct { |
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.
could be renamed to stub
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.
done
process/track/blockProcessor_test.go
Outdated
@@ -174,10 +186,15 @@ func TestProcessReceivedHeader_ShouldWorkWhenHeaderIsFromSelfShard(t *testing.T) | |||
return nil, nil, nil, nil | |||
}, | |||
} | |||
blockProcessorArguments.SelfNotarizer = &mock.BlockNotarizerHandlerMock{ | |||
GetLastNotarizedHeaderCalled: func(shardID uint32) (data.HeaderHandler, []byte, error) { | |||
return &block2.Header{}, nil, nil |
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.
rename package from block2
to something else
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.
done
…n-time' into Improve-block-tracker-computation-time
e02c4ea
…xtracted from received cross headers
e993d3f
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.
System tests passed.