Skip to content

Commit

Permalink
chore(BUX-164): remove logs and fix adding up outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
pawellewandowski98 committed Oct 3, 2023
1 parent d09e3bb commit 6480963
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions p2p_beef_tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ type DecodedBEEF struct {
func (dBeef *DecodedBEEF) GetMerkleRoots() ([]string, error) {
var merkleRoots []string
for _, cmp := range dBeef.CMPSlice {
fmt.Println("<---- CMP ---->")
fmt.Println(cmp)
partialMerkleRoots, err := cmp.CalculateMerkleRoots()
if err != nil {
return nil, err
Expand Down Expand Up @@ -81,7 +79,7 @@ func (dBeef *DecodedBEEF) ExecuteSimplifiedPaymentVerification() error {
inputSum += input.PreviousTxSatoshis
}
for _, output := range dBeef.ProcessedTxData.Transaction.Outputs {
inputSum += output.Satoshis
outputSum += output.Satoshis
}

// Check if the output sum is not higher than the input sum
Expand Down

0 comments on commit 6480963

Please sign in to comment.