Troubleshoot the Sapling decode

This commit is contained in:
Rene Vergara 2023-09-28 15:49:05 -05:00
parent 78c8b9ef5c
commit d90f7cdfea
Signed by: pitmutt
GPG key ID: 65122AD495A7F5B2

View file

@ -1879,11 +1879,13 @@ scanTxNative pipe db nodeUser nodePwd = do
if isValidSaplingViewingKey (E.encodeUtf8 k)
then do
print "decoding Sapling tx"
let rawKey = decodeBech32 $ E.encodeUtf8 k
print rawKey
let i = concatMap rt_shieldedOutputs txList
print i
let decodedTxList =
map
(decodeSaplingOutput (bytes (decodeBech32 $ E.encodeUtf8 k)))
(decodeSaplingOutput $ bytes rawKey)
(concatMap rt_shieldedOutputs txList)
print decodedTxList
else do