-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(watcher): register before expiry and use network consts (#1128)
Description --- * Send a VN registration transaction one epoch (10 blocks on `esmeralda`) before it is due to expire, rather than reacting to not being in the validator set * Use consensus constants received from L1 as part of the check rather than using hardcoded ones for the `esmeralda` network to generalize the solution for any network How Has This Been Tested? --- 1. Run `tari_swarm_daemon` and `tari_watcher` 2. Observe the process sending a registration tx 3. If the registration expires at block $B_E$, observe warning(s) from $B_E - 100$ (default value) and up 4. Mine until any block in $\left[B_E - 10, B_E - 1\right]$ is reached, and observe the registration tx sent
- Loading branch information
1 parent
d85bf65
commit f91bcd9
Showing
9 changed files
with
254 additions
and
150 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.