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
1 changed files with 3 additions and 1 deletions

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