Skip to content

Commit

Permalink
make variable readonly
Browse files Browse the repository at this point in the history
  • Loading branch information
bitcoin-tools authored Oct 6, 2024
1 parent c562e5a commit 211d96b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nodebuilder
Original file line number Diff line number Diff line change
Expand Up @@ -1704,6 +1704,7 @@ if [ ! -f "${BITCOIN_CORE_CONFIG_FILE}" ]; then
fi

INITIAL_DATA_ALREADY_SYNCED_IN_MIB="$(($(get_directory_size_in_mib "${BITCOIN_DATA_DIRECTORY}/blocks") + $(get_directory_size_in_mib "${BITCOIN_DATA_DIRECTORY}/chainstate")))"
readonly INITIAL_DATA_ALREADY_SYNCED_IN_MIB
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 211d96b

Please sign in to comment.