Skip to content

Commit

Permalink
do the whole thing in one command
Browse files Browse the repository at this point in the history
  • Loading branch information
bitcoin-tools authored Oct 6, 2024
1 parent 6790d6d commit c562e5a
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions nodebuilder
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
Expand Down

0 comments on commit c562e5a

Please sign in to comment.