From 64d8da0c0f59c65f42773e6636dc7520ef909dd9 Mon Sep 17 00:00:00 2001 From: Lev Berman Date: Sun, 26 Apr 2020 13:43:30 +0200 Subject: [PATCH] Fix a bug where an empty node may fail to join the network --- apps/arweave/src/ar_node_utils.erl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/arweave/src/ar_node_utils.erl b/apps/arweave/src/ar_node_utils.erl index 8930965a7..df0d1aa91 100644 --- a/apps/arweave/src/ar_node_utils.erl +++ b/apps/arweave/src/ar_node_utils.erl @@ -238,7 +238,8 @@ start_mining(StateIn) -> {reason, data_unavailable_to_generate_poa}, {generated_options_to_depth, ar_meta_db:get(max_poa_option_depth)} ] - ); + ), + StateIn; POA -> ar_miner_log:started_hashing(), B = ar_storage:read_block(element(1, hd(BI))),