-
Notifications
You must be signed in to change notification settings - Fork 19
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
farcaster-swapd-syncer race-free initiation interplay: improve sequence of msgs #574
farcaster-swapd-syncer race-free initiation interplay: improve sequence of msgs #574
Conversation
4ffd2c9
to
443c26a
Compare
443c26a
to
a534be0
Compare
|
Codecov Report
@@ Coverage Diff @@
## main #574 +/- ##
=======================================
- Coverage 12.0% 12.0% -0.0%
=======================================
Files 34 34
Lines 10601 10643 +42
=======================================
Hits 1277 1277
- Misses 9324 9366 +42
Continue to review full report at Codecov.
|
1e12b84
to
38ad945
Compare
38ad945
to
544afb0
Compare
closes #552 |
|
treating as if the bug is on the pop unwrap, since the expect is checked 2022-07-17T13:13:23.6366705Z [2022-07-17T13:13:23Z DEBUG microservices::esb::controller] syncer<(Monero,Local)> -> swap<0x8478…a469>: syncer_event(TransactionConfirmations(TransactionConfirmations { id: TaskId(1 1), block: [178, 67, 8, 101, 245, 54, 2, 17, 91, 42, 117, 121, 49, 102, 1, 0, 114, 0, 189, 96, 58, 32, 16, 52, 132, 231, 198, 83, 77, 42, 7, 187], confirmations: Some(20), tx: [] })) 2022-07-17T13:13:23.6368099Z thread 'main' panicked at 'Checked above', src/swapd/runtime.rs:1239:30 2022-07-17T13:13:23.6368705Z note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
cb27381
to
4ab7a39
Compare
this PR includes bits of noise, related to me going through the first 2/3 of the sequence diagram, and recognizing the patterns on the code. Some bits were not recognizable on the code, and I slightly modified them. Some pieces were not good and I tagged them with FIXME or something. Additionally I added unrelated logging while debugging. Since the final diffs are not too bad, I kept it like that without removing commits |
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.
This was hard to review, but I think I understood the changes. The race condition should indeed be fixed now.
there is still a race condition if monero syncer takes longer than bitcoin syncer to come online, but it requires creating new datatypes to handle that, and this PR was already overwhelming |
No description provided.