Skip to content

Conversation

rg911
Copy link
Contributor

@rg911 rg911 commented May 24, 2020

  • Listener.newblock is now using NewBlock model rather than shared BlockInfo with rest payload. So that there will be no undefined fields in ws response.
  • Moved repositoryFactory constructor optional parameters to a interface
  • Added InjectedWebsocket and websocketUrl parameters to the repositoryFactory constructor as optional parameters
  • Changed the Listener constructor to use url without appending /ws suffix.
  • Added missing field stateHashSubCacheMerkleRoots in BlockInfo

Fixed #581
Fixed #582
Fixed #584
Fixed #585

@fboucquez
Copy link
Contributor

What about moving the parameters to the repository factory constructor? The clients will only have a centralised place to configure the factory ans will keep using repositoryFactory.createListener() as they used to.

@rg911
Copy link
Contributor Author

rg911 commented May 24, 2020

I was thinking this is quite specific for listener only, probably better keep in the method instead?

rg911 added 2 commits May 25, 2020 22:45
- Changed listener to use NewBlock rather than sharing with blockInfo
@rg911 rg911 requested review from dgarcia360 and fboucquez May 25, 2020 22:36
rg911 added 7 commits May 26, 2020 00:01
- removed unused class
- Moved optional params in RepoFactory to RepositoryFactoryConfig interface
- Changed Listener to use actual ws url instead of rest url.
@rg911 rg911 merged commit 713d533 into symbol:master May 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants