mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-18 22:35:39 +01:00
Let -zapwallettxes recover transaction meta data
This commit is contained in:
@@ -38,6 +38,10 @@ function AssertEqual {
|
||||
if (( $( echo "$1 == $2" | bc ) == 0 ))
|
||||
then
|
||||
echoerr "AssertEqual: $1 != $2"
|
||||
declare -f CleanUp > /dev/null 2>&1
|
||||
if [[ $? -eq 0 ]] ; then
|
||||
CleanUp
|
||||
fi
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
@@ -49,6 +53,10 @@ function CheckBalance {
|
||||
if (( $( echo "$B == $EXPECT" | bc ) == 0 ))
|
||||
then
|
||||
echoerr "bad balance: $B (expected $2)"
|
||||
declare -f CleanUp > /dev/null 2>&1
|
||||
if [[ $? -eq 0 ]] ; then
|
||||
CleanUp
|
||||
fi
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user