From 648096364feccee2c3f4505dce63e38285d5bc13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Lewandowski?= Date: Tue, 3 Oct 2023 14:12:31 +0200 Subject: [PATCH] chore(BUX-164): remove logs and fix adding up outputs --- p2p_beef_tx.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/p2p_beef_tx.go b/p2p_beef_tx.go index 35333c9..917feaa 100644 --- a/p2p_beef_tx.go +++ b/p2p_beef_tx.go @@ -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 @@ -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