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