keep-network / keep-core

The smart contracts and reference client behind the Keep network
https://keep.network
MIT License
113 stars 72 forks source link

Optimize deposit sweep proposal generator #3805

Closed lukasz-zimnoch closed 3 months ago

lukasz-zimnoch commented 3 months ago

Closes: https://github.com/keep-network/keep-core/issues/3802

Fetching deposit script type is not needed for sweep proposal generation. Doing so means making an additional Electrum call for each deposit. This makes proposal generation longer and more prone to failure.

At the same time, the script type is used only for Maintainer CLI which is not so important since we have tbtcscan and there is no way to manually trigger sweeps due to the introduction of RFC 12.

That said, we are removing script type fetch from the process.