lightninglabs / loop

Lightning Loop: A Non-Custodial Off/On Chain Bridge
MIT License
560 stars 117 forks source link

loopd: allow setting RPC batch size when running cost migration #829

Closed bhandras closed 1 month ago

bhandras commented 2 months ago

Previously we defaulted to fetching 1000 payments at a time when running the cost migration however due to slowness on LND side this may prevent the migration from completing due to RPC timeout kicking in. This commit adds a new config value to give more control to the user by setting the batch size as needed.

Pull Request Checklist

djkazic commented 2 months ago

LGTM, got my loopd back online with this and batch size = 10 (postgres_kvdb backend on LND)