From 1db48d5be3af67db2fa13d20c5928c541d48b160 Mon Sep 17 00:00:00 2001 From: wrj-arc Date: Thu, 15 Mar 2018 12:58:54 +0000 Subject: [PATCH] - ATN 2 release. --- src/ar.hrl | 4 ++-- src/ar_join.erl | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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.