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

Commit

Permalink
include region params with active gateways response
Browse files Browse the repository at this point in the history
  • Loading branch information
andymck committed Feb 15, 2023
1 parent b4fd990 commit e5a3dfa
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/helium_follower_service.erl
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,11 @@ active_gateways(#follower_gateway_stream_req_v1_pb{batch_size = BatchSize} = _Ms
{ok, R} -> normalize_region(R);
_ -> undefined
end,
RegionParams =
case region_params_for_region(Region, Ledger) of
{ok, Params} -> Params;
{error, _} -> []
end,
GwResp = #follower_gateway_resp_v1_pb{
height = Height,
result = {info, #gateway_info_pb{
Expand All @@ -90,7 +95,10 @@ active_gateways(#follower_gateway_stream_req_v1_pb{batch_size = BatchSize} = _Ms
owner = blockchain_ledger_gateway_v2:owner_address(Gw),
staking_mode = blockchain_ledger_gateway_v2:mode(Gw),
gain = blockchain_ledger_gateway_v2:gain(Gw),
region = Region
region = Region,
region_params = #blockchain_region_params_v1_pb{
region_params = RegionParams
}
}}},
GwAcc1 = [GwResp | GwAcc],
RespLen = length(GwAcc1),
Expand Down

0 comments on commit e5a3dfa

Please sign in to comment.