keep-network / keep-core

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

Moved funds sweep proposal handling #3786

Closed tomaszslabon closed 7 months ago

tomaszslabon commented 7 months ago

Refs: https://github.com/keep-network/keep-core/issues/3736.

This PR introduces functionalities that lanuches the moved funds sweep procedure and produces a proposal for it. Once the procedure is launched we check if the wallet in question needs to perform moved funds sweep. If it does, we look for the data of a moving funds transaction that transferred the funds to the wallet in question. In the end, we create a proposal containing the transaction hash, outpoint index and transaction fee. Based on ths data, a Bitcoin moved funds sweep transaction will be contructed.