WIP
This commit is contained in:
+4
-1
@@ -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} ->
|
||||
|
||||
Reference in New Issue
Block a user