Skip to content
This repository has been archived by the owner on Mar 5, 2024. It is now read-only.

dialyzer fix for different ledger fetch path #1405

Merged
merged 2 commits into from
Jun 24, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/state_channel/blockchain_state_channel_common.erl
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ handle_server_msg(
lager:debug("sc_handler client got banner, sc_id: ~p",
[blockchain_state_channel_v1:id(BannerSC)]),
%% either we don't have a ledger or we do and the SC is valid
evanmcc marked this conversation as resolved.
Show resolved Hide resolved
case Ledger == undefined orelse is_active_sc(BannerSC, Ledger) == ok of
case is_active_sc(BannerSC, Ledger) == ok of
true ->
blockchain_state_channels_client:banner(Banner, self());
false ->
Expand All @@ -226,7 +226,7 @@ handle_server_msg(
lager:debug("sc_handler client got purchase, sc_id: ~p",
[blockchain_state_channel_v1:id(PurchaseSC)]),
%% either we don't have a ledger or we do and the SC is valid
evanmcc marked this conversation as resolved.
Show resolved Hide resolved
case Ledger == undefined orelse is_active_sc(PurchaseSC, Ledger) == ok of
case is_active_sc(PurchaseSC, Ledger) == ok of
true ->
blockchain_state_channels_client:purchase(Purchase, self());
false ->
Expand Down Expand Up @@ -254,7 +254,7 @@ handle_client_msg(Msg, HandlerState) ->
lager:debug("sc_handler client got banner, sc_id: ~p",
[blockchain_state_channel_v1:id(BannerSC)]),
%% either we don't have a ledger or we do and the SC is valid
evanmcc marked this conversation as resolved.
Show resolved Hide resolved
case Ledger == undefined orelse is_active_sc(BannerSC, Ledger) == ok of
case is_active_sc(BannerSC, Ledger) == ok of
true ->
blockchain_state_channels_client:banner(Banner, self());
false ->
Expand All @@ -266,7 +266,7 @@ handle_client_msg(Msg, HandlerState) ->
lager:debug("sc_handler client got purchase, sc_id: ~p",
[blockchain_state_channel_v1:id(PurchaseSC)]),
%% either we don't have a ledger or we do and the SC is valid
evanmcc marked this conversation as resolved.
Show resolved Hide resolved
case Ledger == undefined orelse is_active_sc(PurchaseSC, Ledger) == ok of
case is_active_sc(PurchaseSC, Ledger) == ok of
true ->
blockchain_state_channels_client:purchase(Purchase, self());
false ->
Expand Down
4 changes: 2 additions & 2 deletions src/state_channel/blockchain_state_channel_handler.erl
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ handle_data(client, Data, HandlerState) ->
lager:debug("sc_handler client got banner, sc_id: ~p",
[blockchain_state_channel_v1:id(BannerSC)]),
%% either we don't have a ledger or we do and the SC is valid
evanmcc marked this conversation as resolved.
Show resolved Hide resolved
case Ledger == undefined orelse blockchain_state_channel_common:is_active_sc(BannerSC, Ledger) == ok of
case blockchain_state_channel_common:is_active_sc(BannerSC, Ledger) == ok of
true ->
blockchain_state_channels_client:banner(Banner, self());
false ->
Expand All @@ -124,7 +124,7 @@ handle_data(client, Data, HandlerState) ->
lager:debug("sc_handler client got purchase, sc_id: ~p",
[blockchain_state_channel_v1:id(PurchaseSC)]),
%% either we don't have a ledger or we do and the SC is valid
evanmcc marked this conversation as resolved.
Show resolved Hide resolved
case Ledger == undefined orelse blockchain_state_channel_common:is_active_sc(PurchaseSC, Ledger) == ok of
case blockchain_state_channel_common:is_active_sc(PurchaseSC, Ledger) == ok of
true ->
blockchain_state_channels_client:purchase(Purchase, self());
false ->
Expand Down