mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-22 16:10:55 +02:00
#2998 check values before use
This commit is contained in:
@@ -97,8 +97,16 @@ do
|
||||
do
|
||||
channelInPubKey=${channelIdPubKeyLookup[$channelIdIn]}
|
||||
channelOutPubKey=${channelIdPubKeyLookup[$channelIdOut]}
|
||||
channelInPubKeyLookup=""
|
||||
if [ "${channelInPubKey}" != "" ]; then
|
||||
channelInPubKeyLookup=pubKeyAliasLookup[$channelInPubKey]
|
||||
fi
|
||||
channelOutPubKeyLookup=""
|
||||
if [ "${channelInPubKey}" != "" ]; then
|
||||
channelOutPubKeyLookup=pubKeyAliasLookup[$channelOutPubKey]
|
||||
fi
|
||||
OUTPUT="${OUTPUT}
|
||||
${eventDate},${pubKeyAliasLookup[$channelInPubKey]},${pubKeyAliasLookup[$channelOutPubKey]},$amountIn,$fee"
|
||||
${eventDate},${channelInPubKeyLookup},${channelOutPubKeyLookup},$amountIn,$fee"
|
||||
|
||||
done < <(tail -n +2 <<< $events)
|
||||
|
||||
|
Reference in New Issue
Block a user