Browse Source
Add Logging and persist async operation for Sapling migration Currently zcashd will automatically remove the last async migration operations when it reaches the height where it sends the transactions it just made. This is not in alignment with other async operations, which are not removed until a node is restarted or a user calls `z_getoperationresult`. This PR removes the calls to pop the operations so that they can be accessed and reviewed later. In this PR I also correct the operation's `amount_migrated` field to exclude the transaction fee (this field existed for debugging purposes, but should be consistent with `z_getmigrationstatus`), and have included the list of migration txids in the operation's result (this is similar to the async rpcs such as `z_sendmany`). Documentation: none needed. Test plan: * After migration transactions have been created, list the opids and call `z_getoperationresult` on them. * Check that the operations' `amount_migrated` fields exclude the fee.pull/245/head
Homu
5 years ago
6 changed files with 38 additions and 12 deletions
Loading…
Reference in new issue