Today we frequently flush changes of the wallet db to disk. Doing so by calling lsn_reset will write the entire wallet file contents to disk, no matter the size of the changes. Doing so repeatedly may be unnecessary and with huge wallet files could impact performance. We should investigate whether these lsn_resets can be removed or called less frequently.
Context:
bitcoin/bitcoin#7475
gridcoin-community/Gridcoin-Research#1010