Evm watcher unit tests#4776
Conversation
|
@mdulin2 This should be good to rebase and continue working on now that your other PR was merged. |
c4598c3 to
ed3f4d2
Compare
johnsaigle
left a comment
There was a problem hiding this comment.
I think the refactor looks good, just left a couple of suggestions.
|
Please also run |
621ca71 to
4372703
Compare
4372703 to
8388f5f
Compare
johnsaigle
left a comment
There was a problem hiding this comment.
My previous comments are addressed.
djb15
left a comment
There was a problem hiding this comment.
The refactor looks safe and happy to see more tests! Before I approve, what's the reasoning for removing some of the prior SECURITY comments? I like the explicitness and in prior conversations we agreed to flag critical checks in this way so they're less likely to be removed in future changes
|
I'll add in the |
8388f5f to
b9cf198
Compare
|
I messed up the history of the PR with something else I'm working on. I'll fix this in a little bit. |
18e1954 to
a01a34b
Compare
|
Rebase shouldn't include the Aptos PR changes anymore. This should be rebased on main. |
* Seperated main code within goroutines for message processing into separate functions. * Added tests for processBlock (non-instant path) and instant path on EVM.
* Added new tests to deal with previous hardening changes * Changed error handling on tx == nil within processNewBlock in order to allow for transient retries * Added stored txhash is the same as the found txhash that was just queried.
547e2e3 to
960d194
Compare
johnsaigle
left a comment
There was a problem hiding this comment.
Re-approving. Minor changes since my last approval.
This is a small rewrite that moves large amounts of code from goroutines into a separate function to make it more testable.
The main reason for this is to make the code more testable. This includes a large set of unit tests for the EVM watcher paths from this.
There are two main non-test changes: