Skip to content
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

En 10861 scheduled txs unit tests #3610

Merged

Conversation

AdoAdoAdo
Copy link
Contributor

Add some unit tests and fixes

@@ -213,6 +213,11 @@ func (sr *subroundBlock) ReceivedBlockHeader(cnsDta *consensus.Message) bool {
return sr.receivedBlockHeader(cnsDta)
}

// ReceivedBlockBodyAndHeader is called when both a header and block body have been received t
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove "t" from the end of the line

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@@ -201,6 +205,9 @@ func NewEpochStartBootstrap(args ArgsEpochStartBootstrap) (*epochStartBootstrap,
maxHardCapForMissingNodes: args.GeneralConfig.TrieSync.MaxHardCapForMissingNodes,
trieSyncerVersion: args.GeneralConfig.TrieSync.TrieSyncerVersion,
enableEpochs: args.EnableEpochs,
dataSyncerFactory: args.DataSyncerCreator,
storerScheduledSCRs: genericMocks.NewStorerMock("path", 0),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This storer should be mock?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, it shouldn't be a mock here in productive code, but it can be initialized with nil, as it will get updated with the correct storer once the epoch is known.

@@ -0,0 +1,20 @@
package bootstrap
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing comments for exported methods

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@@ -0,0 +1,26 @@
package types
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing comments for exported types

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@@ -51,7 +51,7 @@ func newStartInEpochShardHeaderDataSyncerWithScheduled(
}, nil
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add comments for exported methods in this file

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@AdoAdoAdo AdoAdoAdo merged commit 5888c92 into feat/scheduled-sc-execution Dec 8, 2021
@AdoAdoAdo AdoAdoAdo deleted the EN-10861-scheduled-txs-unit-tests branch December 8, 2021 12:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants