tari
tari copied to clipboard
Cleanup wallet OMS output import
Currently, the wallet has 5 import requests for importing outputs
AddOutput((Box<UnblindedOutput>, Option<SpendingPriority>)),
AddRewindableOutput((Box<UnblindedOutput>, Option<SpendingPriority>, Option<RewindData>)),
AddOutputWithTxId((TxId, Box<UnblindedOutput>, Option<SpendingPriority>)),
AddRewindableOutputWithTxId((TxId, Box<UnblindedOutput>, Option<SpendingPriority>, Option<RewindData>)),
AddUnvalidatedOutput((TxId, Box<UnblindedOutput>, Option<SpendingPriority>)),
We can combine them into a single request AddUnvalidatedOutput
and make the other data options.
We only need to add invalidated outputs as the validation service will be triggered as soon as the output is added which will validate the output.