Skip to content

Commit

Permalink
Release 2.8.2
Browse files Browse the repository at this point in the history
Fix for 2.8 joining bug
  • Loading branch information
JamesPiechota committed Nov 13, 2024
1 parent f458292 commit b6df9c2
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion apps/arweave/include/ar.hrl
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
-define(CLIENT_VERSION, 5).

%% The current build number -- incremented for every release.
-define(RELEASE_NUMBER, 73).
-define(RELEASE_NUMBER, 74).

-define(DEFAULT_REQUEST_HEADERS,
[
Expand Down
12 changes: 6 additions & 6 deletions apps/arweave/src/ar_http_iface_client.erl
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ get_reward_history([Peer | Peers], B, ExpectedRewardHistoryHashes) ->
}) of
{ok, {{<<"200">>, _}, _, Body, _, _}} ->
case ar_serialize:binary_to_reward_history(Body) of
{ok, RewardHistory} when length(RewardHistory) == ExpectedLength ->
{ok, RewardHistory} -> % when length(RewardHistory) == ExpectedLength ->
case ar_rewards:validate_reward_history_hashes(Height, RewardHistory,
ExpectedRewardHistoryHashes) of
true ->
Expand All @@ -448,11 +448,11 @@ get_reward_history([Peer | Peers], B, ExpectedRewardHistoryHashes) ->
{peer, ar_util:format_peer(Peer)}]),
get_reward_history(Peers, B, ExpectedRewardHistoryHashes)
end;
{ok, L} ->
?LOG_WARNING([{event, received_reward_history_of_unexpected_length},
{expected_length, ExpectedLength}, {received_length, length(L)},
{peer, ar_util:format_peer(Peer)}]),
get_reward_history(Peers, B, ExpectedRewardHistoryHashes);
% {ok, L} ->
% ?LOG_WARNING([{event, received_reward_history_of_unexpected_length},
% {expected_length, ExpectedLength}, {received_length, length(L)},
% {peer, ar_util:format_peer(Peer)}]),
% get_reward_history(Peers, B, ExpectedRewardHistoryHashes);
{error, _} ->
?LOG_WARNING([{event, failed_to_parse_reward_history},
{peer, ar_util:format_peer(Peer)}]),
Expand Down
2 changes: 1 addition & 1 deletion apps/arweave/src/arweave.app.src
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{application, arweave, [
{description, "Arweave"},
{vsn, "2.8.1"},
{vsn, "2.8.2"},
{mod, {ar, []}},
{applications, [
kernel,
Expand Down
2 changes: 1 addition & 1 deletion rebar.config
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
]}.

{relx, [
{release, {arweave, "2.8.1"}, [
{release, {arweave, "2.8.2"}, [
{arweave, load},
b64fast,
jiffy,
Expand Down

0 comments on commit b6df9c2

Please sign in to comment.