mirror of
https://github.com/aljazceru/cyphernode.git
synced 2025-12-26 00:55:08 +01:00
bitcoin.conf comparison should check if file exists! >:-[
This commit is contained in:
7
dist/setup.sh
vendored
7
dist/setup.sh
vendored
@@ -300,6 +300,12 @@ compare_bitcoinconf() {
|
||||
|
||||
local new_bitcoinconf=$1
|
||||
local old_bitcoinconf=$2
|
||||
local status
|
||||
|
||||
if [[ ! -f $old_bitcoinconf || ! -f $new_bitcoinconf ]]; then
|
||||
return 1
|
||||
fi
|
||||
|
||||
|
||||
local old_config=$(process_bitcoinconf $old_bitcoinconf )
|
||||
local new_config=$(process_bitcoinconf $new_bitcoinconf )
|
||||
@@ -313,7 +319,6 @@ compare_bitcoinconf() {
|
||||
local new_testnet=$((($new_config>>2)&1))
|
||||
local new_regtest=$((($new_config>>3)&1))
|
||||
|
||||
local status
|
||||
|
||||
if [[ $new_prune == 1 && $old_prune == 0 ]]; then
|
||||
# warn about data loss
|
||||
|
||||
Reference in New Issue
Block a user