-
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
Fix data handling if dao is deactivated #5711
Fix data handling if dao is deactivated #5711
Conversation
are still received from seed nodes and processed but as the services for processing the payloads are not added the data is inefficiently processed. The getMap returned a flattened map of all maps in all services which can be quite large. We use now a filtered map with calling canHandle first. Also the put got optimized to indicate in the return value if there has been a service found to add the payload. If not we do not invoke the listeners and do not broadcast. To not request the DAO P2P data would be better but I don't see a easy way how to do that as the P2P network is not aware of the type of data. Some market interface could be used and a flag at the request to the seed node to indicate if those types should be included but that does feel too customized for a special use case. The DAO P2P data is not that big as well, so I think for now that fix should be good enough.
We write the value to the properties file not to the preferences as we need the value early at startup before the preferences are loaded.
Use appendOnlyDataStoreService.getMap(persistableNetworkPayload) instead.
Make it more clear that we expect only one matching service which can handle the payload.
Adjusted the DAO view in case DAO is deactivated. @m52go Could you have a look to the text?
DAO view in case DAO is deactivated: |
Suggestion:
|
Tested DAO view is adjusted for Tested Tested Tested dao activation/deactivation from UI. OK Tested Tested we expect only one matching service which can handle the payload. OK Ran modified test cases / all passed. OK |
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.
utACK based on #5711 (comment)
Adds a toggle for deactivating the DAO and fixes an issue with P2P data processing if DAO is deactivated.