diff --git a/src/ar.hrl b/src/ar.hrl index b5888edd8..e19a38537 100644 --- a/src/ar.hrl +++ b/src/ar.hrl @@ -1,9 +1,9 @@ %%% A collection of record structures used throughout the Arweave server. %% How should nodes on the network identify themselves? --define(NETWORK_NAME, "arweave.ATN.1"). +-define(NETWORK_NAME, "arweave.ATN.2"). %% What is the current version/release number (should be an integer). --define(CLIENT_VERSION, 1). +-define(CLIENT_VERSION, 2). %% Should ar:report_console/1 /actually/ report to the console? %-define(SILENT, true). diff --git a/src/ar_join.erl b/src/ar_join.erl index d661db0be..b5cfe487c 100644 --- a/src/ar_join.erl +++ b/src/ar_join.erl @@ -60,7 +60,7 @@ get_block_and_trail(Peers, NewB, BehindCurrent, HashList) -> ar_storage:write_block(B), ar_storage:write_block(R) end, - PreviousBlock = ar_node:get_block(Peers, ar_util:get_previous_block_hash(NewB, HashList)), + PreviousBlock = ar_node:get_block(Peers, NewB#block.previous_block), get_block_and_trail(Peers, PreviousBlock, BehindCurrent-1, HashList). %% @doc Fills node to capacity based on weave storage limit.