Commit 1679d30
Add a comment for height change functions about the
Changing the height is a light action. Height change functions change
all fields in Tendermint Worker except the `step` field.
`move_to_step` function changes the `step` field and does many other
things, such as sending the current state to other peers, requesting
other peers regarding votes, starting a timer, etc.
The side-effect of the `move_to_step` function is that the
`move_to_the_next_height` function and the `jump_to_height` function
do not call `move_to_step`. The caller of the height change functions
should call the `move_tp_step` function.step field1 parent 79322e1 commit 1679d30
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
628 | 628 | | |
629 | 629 | | |
630 | 630 | | |
| 631 | + | |
| 632 | + | |
631 | 633 | | |
632 | 634 | | |
633 | 635 | | |
| |||
648 | 650 | | |
649 | 651 | | |
650 | 652 | | |
| 653 | + | |
| 654 | + | |
651 | 655 | | |
652 | 656 | | |
653 | 657 | | |
| |||
0 commit comments