Correct tx filtering

This commit is contained in:
Rene Vergara 2023-09-29 14:33:17 -05:00
parent 74ba9d23f0
commit d235c56cfb
Signed by: pitmutt
GPG key ID: 65122AD495A7F5B2

View file

@ -1855,7 +1855,7 @@ scanTxNative pipe db nodeUser nodePwd = do
filterBlock b = maybe 0 bl_confirmations b >= 5 filterBlock b = maybe 0 bl_confirmations b >= 5
filterTx :: Maybe RawTxResponse -> Bool filterTx :: Maybe RawTxResponse -> Bool
filterTx t = filterTx t =
not (null (maybe [] rt_shieldedOutputs t)) && not (null (maybe [] rt_shieldedOutputs t)) ||
not (null (maybe [] rt_orchardActions t)) not (null (maybe [] rt_orchardActions t))
extractTxs :: Maybe BlockResponse -> [T.Text] extractTxs :: Maybe BlockResponse -> [T.Text]
extractTxs = maybe [] bl_txs extractTxs = maybe [] bl_txs