Unified Address support #8

Merged
pitmutt merged 61 commits from dev18 into master 2023-10-28 12:24:28 +00:00
Showing only changes of commit d90f7cdfea - Show all commits

View file

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