Open SWvheerden opened 1 year ago
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 AddUnvalidatedOutputand 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.
AddUnvalidatedOutput
This has been reduced to 3, but we can still elimante 1.
Currently, the wallet has 5 import requests for importing outputs
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.