-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Reduce initial data request #4586
Reduce initial data request #4586
Conversation
… a map with PersistableNetworkPayloads
… and reading logs from windows users makes it harder without line breaks.
…ture commit) Change API
This is intended to be able to merge the code base before bisq-network#4577 is merged. We can add the code base but not using the feature yet. Once we are ready for deployment we can revert this commit and have the feature activated.
p2p/src/main/java/bisq/network/p2p/storage/persistence/StoreService.java
Outdated
Show resolved
Hide resolved
p2p/src/main/java/bisq/network/p2p/storage/persistence/HistoricalDataStoreService.java
Show resolved
Hide resolved
p2p/src/main/java/bisq/network/p2p/storage/persistence/PersistableNetworkPayloadStore.java
Show resolved
Hide resolved
I take back the comment about extra white space -- I see it is intended and why. utACK |
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.
6f5bfde seems not necessary. If this code is activated but there is no historical data resource file it should work like does now.
Some changes suggested, but the protobuf index thing should be fixed.
p2p/src/main/java/bisq/network/p2p/storage/persistence/HistoricalDataStoreService.java
Show resolved
Hide resolved
p2p/src/main/java/bisq/network/p2p/storage/persistence/HistoricalDataStoreService.java
Show resolved
Hide resolved
p2p/src/main/java/bisq/network/p2p/storage/persistence/HistoricalDataStoreService.java
Outdated
Show resolved
Hide resolved
p2p/src/main/java/bisq/network/p2p/storage/persistence/HistoricalDataStoreService.java
Outdated
Show resolved
Hide resolved
…as it was the version used in master as well. We cannot change that without breaking compatibility.
We do not expect a resource file without version number, so we could not deploy the updated trade stats resources if we use the new store. |
…calDataStoreService.java Co-authored-by: sqrrm <sqrrm@users.noreply.github.com>
…calDataStoreService.java Co-authored-by: sqrrm <sqrrm@users.noreply.github.com>
…calDataStoreService.java Co-authored-by: sqrrm <sqrrm@users.noreply.github.com>
Co-authored-by: sqrrm <sqrrm@users.noreply.github.com>
Co-authored-by: sqrrm <sqrrm@users.noreply.github.com>
@sqrrm thanks for the review. Added some minor commit and applied your suggestions. |
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.
ACK
This is a clean version of #4519 which was based on #4233 from @freimair.
I decided to remove the git commit history and make new clean commits as it was too messy before and not easy to review.
Now the commits are clearly separated between pure refactoring, small not complex changes and the feature implementation.
It is basically only 2 commits which carry the main feature implementation. I hope that makes it easier to review and to get it merged.
In the last commit I deactivated the usage if the feature as we should deply it together with #4577 which is not ready yet and which will require some deployment planning and coordination. By reverting that last commit the feature gets activated.
By having the code base merged but not activated we avoid that the code base gets into problems with other large code change PRs which are pending but avoid any serious risk as it is a not executed code path.
Also we gain the benefit to have the version support deployed in case we decide to release the actiavted version in a later release.