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

Split connection state machines files #115

Merged
merged 7 commits into from
Oct 1, 2020
Merged

Conversation

Patrik-Stas
Copy link
Contributor

@Patrik-Stas Patrik-Stas commented Sep 25, 2020

  • Splits DidExchangeStateSM state machine into 2 separate state machines for inviter and invitee
  • Updated mocks of serialized connections (aligned with recent changes to agent info, updated to 3.0 serialization format
  • Added tests for serialization/deserialization
  • File v3/handlers/connection/connection.rs serves as proxy interface to preserve shared inviter/invitee interface.
  • Modifies behaviour of get_invite_details. It returns connection invitation only if called on inviter connection in state Invited. Otherwise returns error. Previously the code was attempting to construct invitation object from DDO of connection counterparty known at the moment.
  • calling connect() on connection now returns connection invitation if the connection is inviter, otherwise returns string {}

Signed-off-by: Patrik Stas patrik.stas@absa.africa

@Patrik-Stas Patrik-Stas changed the title Split connection state machines files wip: Split connection state machines files Sep 25, 2020
@Patrik-Stas Patrik-Stas changed the title wip: Split connection state machines files Split connection state machines files Sep 25, 2020
@Patrik-Stas Patrik-Stas force-pushed the v3/restructure-files branch 2 times, most recently from 57b6ed0 to 3003985 Compare September 26, 2020 14:12
Signed-off-by: Patrik Stas <patrik.stas@absa.africa>
* Split connection state machines files

Signed-off-by: Patrik Stas <patrik.stas@absa.africa>

* Inviter conn should also check bootstrap agent for messages. Refactor.

Signed-off-by: Patrik Stas <patrik.stas@absa.africa>

* Connection.connect returns invitation for inviter. Refactor

Signed-off-by: Patrik Stas <patrik.stas@absa.africa>
Signed-off-by: Patrik Stas <patrik.stas@absa.africa>
Signed-off-by: Patrik Stas <patrik.stas@absa.africa>
Signed-off-by: Patrik Stas <patrik.stas@absa.africa>
Signed-off-by: Patrik Stas <patrik.stas@absa.africa>
Signed-off-by: Patrik Stas <patrik.stas@absa.africa>
@mirgee mirgee merged commit e8ce4b9 into master Oct 1, 2020
@mirgee mirgee deleted the v3/restructure-files branch October 1, 2020 07:08
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

2 participants