Notable changes
Wallet Performance Improvements
zcashd 5.2.0
improved the performance of wallet scanning with multithreaded batched trial decryption of Sapling outputs. However, for some nodes this resulted in growing memory usage that would eventually cause an OOM abort. We have identified the cause of the growth, and made significant improvements to reduce the memory usage of the batch scanner. In addition, the batch scanner now has a memory limit of 100 MiB.
zcashd
now reports the following new metrics when -prometheusport
is set:
- (counter)
zcashd.wallet.batchscanner.outputs.scanned
- (gauge)
zcashd.wallet.batchscanner.size.transactions
- (gauge)
zcashd.wallet.batchscanner.usage.bytes
- (gauge)
zcashd.wallet.synced.block.height
RPC Interface
- The
finalorchardroot
field in thegetblock
result and theorchard.commitments.finalRoot
field in thez_gettreestate
result have been changed to match the byte ordering used for theorchard.anchor
field in thegetrawtransaction
result. These previously produced different hash values from theorchard.anchor
field due to having been byte-flipped in their internal representation in zcashd.