-
Notifications
You must be signed in to change notification settings - Fork 7
EC-802 Fixed fast sync tests #397
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
base: master
Are you sure you want to change the base?
Conversation
| case Left(value) => ProcessNewSnapshotError(value.getMessage).asLeft[SnapshotProcessor] | ||
| case Right(_) => this.asRight[ProcessNewSnapshotError] | ||
| ): Either[ProcessNewSnapshotError, SnapshotProcessor] = | ||
| if (potentialManifestsIds.exists(_.sameElements(id))) |
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.
Don't take this value from db 2 times (here and at 212 line) potentialManifestsIds. Take it only 1 time
| if (!manifestIds.exists(_.sameElements(id))) { | ||
| snapshotProcessor.createNewSnapshot(id, manifestIds, chunks) | ||
| } else logger.info(s"Doesn't need to create snapshot") | ||
|
|
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.
remove empty line
| import encry.network.NodeViewSynchronizer.ReceivableMessages.{ ChangedHistory, SemanticallySuccessfulModifier } | ||
| import encry.storage.VersionalStorage.{ StorageKey, StorageValue } | ||
| import encry.view.fast.sync.FastSyncExceptions.{ ApplicableChunkIsAbsent, FastSyncException } | ||
| import encry.network.BlackList.BanReason.{ExpiredNumberOfReRequestAttempts, ExpiredNumberOfRequests, InvalidChunkMessage, InvalidResponseManifestMessage, InvalidStateAfterFastSync, NotAllChunksSentMessage, UnrequestedChunksSentMessage} |
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.
make imports formatting
|
|
||
| "process new snapshot function" should { | ||
|
|
||
| "correctly create new snapshot if such doesn't exist" in { |
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.
rewrite this test
No description provided.