-
Notifications
You must be signed in to change notification settings - Fork 107
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
SNO-305: Ethereum -> Parachain: bundle messages by address #699
Conversation
* Track nonces by source address * Remove principal from basic outbound channel * Update relayer bindings * Track nonces by origin address * Fix outbound channel tests
* Add origin field to message decoding * Track nonces by message origin * Include origin address in basic channel message id * Update basic inbound fixture data * Add note about updating inbound channel test data * Mention message data encoding in comment * Update test data in envelope test * Remove channel id from message id * s/origin/user/g * Swap the order of source & user * Reword test data generation section * s/value/nonce * Use named fields in MessageId enum * Switch to Twox64Concat hasher This prevents accidental expensive lookups while remaining relatively fast vs Blake2_128 and resistant to attacks that cause prefix collisions, thanks to the security of keccak used to create the Ethereum address. * Remove rogue print statement
* Remove redundant slice * Add initial address filtering * Remove extra nonce var * Clean up basic channel address config * Rename parachain relayer account config * Remove unused method * Fix up comments * Add default eth addresses for basic channel * Improve map log readability * Fix parachain writer error messages * Bump lodestar version in example command * Switch to default eth account for E2E script
This helps with some of the longer running tests that are timing out when given 400s.
Thanks David, looks good! Will review properly tomorrow or early next week. In any case lets hold off on merging this until after our demo on Monday. I think some of Clara's fixes in #696 may help with reliability. If not we should do a peer session together and see why those ERC20 tests are so troublesome. |
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.
Looks great! Just needs some naming changes.
Opening this now because some tests are passing in both directions, while the others are timing out. The Basic Channel, Bootstrap and DOT App tests are passing. I haven't seen all of the tests pass yet, but I've been getting timeouts & closed connections with no errors in the logs. The ERC20 App tests in particular look like they're not terminating - running the tests on main now to compare with this branch.
Bumped the default timeout in the E2E test command to 25 mins, up from 6m 40s. This seems to be enough for the tests that have terminated. For the run on main, I'm trying a timeout of 2 hours to ensure that the tests have enough time.