Skip to content

Commit

Permalink
fix code
Browse files Browse the repository at this point in the history
  • Loading branch information
arkadiuszos4chain committed Nov 24, 2023
1 parent 790fb5a commit a93ce38
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions spv/spv.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,11 @@ func ExecuteSimplifiedPaymentVerification(ctx context.Context, dBeef *beef.Decod
}

if txDt.Unmined() {
err = validateSatoshisSum(tx, dBeef.Transactions)
if err != nil {
if err := validateSatoshisSum(tx, dBeef.Transactions); err != nil {
return err
}

err = validateScripts(tx, dBeef.Transactions)
if err != nil {
if err := validateScripts(tx, dBeef.Transactions); err != nil {
return err
}
}
Expand Down

0 comments on commit a93ce38

Please sign in to comment.