Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
channeldb: use the Batch method when writing payment details
This commit implements an easy optimization by using bolt db’s Batch method when writing payment details to disk. The AddPaymnent method can be concurrently called by thousands of grouting due to the way the payment dispatch pipeline is architected. With this commit, we shave of a significant amount of running time when users are sending thousands of payments a second as what would’ve been thousands of writes can now be coalesced into one or two writes!
- Loading branch information