diff --git a/nodebuilder b/nodebuilder index 9d4e5bddb..c8552d7d8 100755 --- a/nodebuilder +++ b/nodebuilder @@ -1703,12 +1703,7 @@ if [ ! -f "${BITCOIN_CORE_CONFIG_FILE}" ]; then set_bitcoin_core_option 'server' '1' fi -INITIAL_BLOCKS_SIZE_IN_MIB="$(get_directory_size_in_mib "${BITCOIN_DATA_DIRECTORY}/blocks")" -readonly INITIAL_BLOCKS_SIZE_IN_MIB -INITIAL_CHAINSTATE_SIZE_IN_MIB="$(get_directory_size_in_mib "${BITCOIN_DATA_DIRECTORY}/chainstate")" -readonly INITIAL_CHAINSTATE_SIZE_IN_MIB -INITIAL_DATA_ALREADY_SYNCED_IN_MIB="$((INITIAL_BLOCKS_SIZE_IN_MIB + INITIAL_CHAINSTATE_SIZE_IN_MIB))" -readonly INITIAL_DATA_ALREADY_SYNCED_IN_MIB +INITIAL_DATA_ALREADY_SYNCED_IN_MIB="$(($(get_directory_size_in_mib "${BITCOIN_DATA_DIRECTORY}/blocks") + $(get_directory_size_in_mib "${BITCOIN_DATA_DIRECTORY}/chainstate")))" log_info "Found data already synced... $((INITIAL_DATA_ALREADY_SYNCED_IN_MIB / MIB_TO_GIB)) GiB." free_space_in_mib="$(get_free_space_in_mib)"