Skip to content

Commit 89af1bf

Browse files
committed
fix height
1 parent 5d9c45a commit 89af1bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/grpc/helium_stream_poc_impl.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ handle_event(
139139
-spec check_if_reactivated_gw(libp2p_crypto:pubkey_bin(), blockchain:blockchain()) -> ok.
140140
check_if_reactivated_gw(GWAddr, Chain) ->
141141
Ledger = blockchain:ledger(Chain),
142-
CurHeight = blockchain_ledger_v1:current_height(Ledger),
142+
{ok, CurHeight} = blockchain_ledger_v1:current_height(Ledger),
143143
case blockchain:config(poc_activity_filter_enabled, Ledger) of
144144
{ok, true} ->
145145
case blockchain_ledger_v1:find_gateway_last_challenge(GWAddr, Ledger) of

0 commit comments

Comments
 (0)