Skip to content

Endpoint to trigger contract recovery

Christopher Schinnerl requested to merge trigger-recovery-endpoint into unstable

NEW FEATURE

Description of Feature

This MR adds a new API endpoint which allows the user to trigger a rescan of the blockchain to find recoverable file contracts.

Description of Work Flow

The user calls the POST endpoint /renter/initrecovery which starts a recovery thread in the background if the wallet is unlocked. (Otherwise the contractor can't fetch the seed)

Testing Added

TestRenterContractInitRecoveryScan

Modules and Packages Impacted

renter, renter/contractor, siatest/renter

Edited by Christopher Schinnerl

Merge request reports