Commit 2dce8c8
committed
fix(tbtc): re-check nonce after delay wait in inactivity claim submitter
The member-index delay (N * 2 blocks) could expire while another member
submitted and the context cancellation hadn't reached this goroutine yet.
A post-wait nonce check closes the TOCTOU window: if the nonce advanced
while we waited, exit cleanly instead of hitting a stale-nonce error.1 parent 74923b2 commit 2dce8c8
1 file changed
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
436 | 436 | | |
437 | 437 | | |
438 | 438 | | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
439 | 455 | | |
440 | 456 | | |
441 | 457 | | |
| |||
0 commit comments