Skip to content

Commit

Permalink
Remove extra input vs outputs denomination check
Browse files Browse the repository at this point in the history
  • Loading branch information
rileystephens28 committed Nov 28, 2024
1 parent 5eb2af9 commit 191734f
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/transaction/coinselector-fewest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,6 @@ export class FewestCoinSelector extends AbstractCoinSelector {
throw new Error('Total output value exceeds total input value');
}

// Ensure largest output denomination ≤ largest input denomination
const maxInputDenomination = this.getMaxInputDenomination();
const maxOutputDenomination = this.getMaxOutputDenomination();

if (maxOutputDenomination > maxInputDenomination) {
throw new Error('Largest output denomination exceeds largest input denomination');
}

return {
inputs: this.selectedUTXOs,
spendOutputs: this.spendOutputs,
Expand Down

0 comments on commit 191734f

Please sign in to comment.