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

Clean up a codepath that was only used for crypto messages #101

Merged
merged 3 commits into from
Mar 15, 2016

Conversation

richvdh
Copy link
Member

@richvdh richvdh commented Mar 15, 2016

Transmission of encrypted messages was happening somewhat differently to
normal messages. In particular, we weren't copying the 'unsigned' field when we
got the remote-echo, which meant the 'sync' code didn't correctly match up the
echo with the original.

The separate codepath was becoming a thorn in my side, so fix things up to
bring it back in line.

Transmission of encrypted messages was happening somewhat differently to
normal messages. In particular, we weren't copying the 'unsigned' field when we
got the remote-echo, which meant the 'sync' code didn't correctly match up the
echo with the original.

The separate codepath was becoming a thorn in my side, so fix things up to
bring it back in line.
Fix broken unit tests which expected echoes to get matched up when
transaction_ids weren't set
We ought to set the transaction_id in this test too
@dbkr
Copy link
Member

dbkr commented Mar 15, 2016

Seems reasonable although I'm failing to understand how this has impacted the event.unsigned thing for normal messages if you're only changing stuff that ran for encrypted events?

@richvdh
Copy link
Member Author

richvdh commented Mar 15, 2016

You mean, why did I have to change the tests?

Because the tests were relying on the bit of code which I have removed. It was only used by encrypted events when live, but the test wasn't accurately reproducing what we get from the server, so was ending up in the wrong bit of code.

@dbkr
Copy link
Member

dbkr commented Mar 15, 2016

Oh, I see - yes, that is very bizarre. lgtm then.

@dbkr dbkr assigned richvdh and unassigned dbkr Mar 15, 2016
richvdh added a commit that referenced this pull request Mar 15, 2016
Clean up a codepath that was only used for crypto messages
@richvdh richvdh merged commit 08b49c7 into develop Mar 15, 2016
@richvdh richvdh deleted the rav/remove_crypto_specialcase branch March 15, 2016 17:27
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.

2 participants