This commit is contained in:
2026-01-05 21:06:04 +09:00
parent d2d9ae613e
commit 66f5795c49
2 changed files with 12 additions and 4 deletions
+4 -1
View File
@@ -1349,11 +1349,14 @@ do_tic(MS, State = #s{timer = {T, _}}) ->
T = erlang:send_after(MS, self(), tic),
State#s{timer = {T, MS}}.
handle_tic(State = #s{wallet = #wallet{poas = []}, timer = {T, MS}}) ->
ok = cancel_timer(T),
NewT = erlang:send_after(MS, self(), tic),
State#s{timer = {NewT, MS}};
handle_tic(State = #s{wallet = This = #wallet{poas = POAs, endpoint = Node},
timer = {T, MS},
selected = Selected})
when Selected > 0 ->
NewState =
case ensure_hz_set(Node) of
{ok, ChainID} ->