Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

Commit

Permalink
chore(BUX-322): remove unused method
Browse files Browse the repository at this point in the history
  • Loading branch information
pawellewandowski98 committed Nov 27, 2023
1 parent 19df548 commit a69c347
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions beef_tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,21 +84,3 @@ func hydrateTransaction(ctx context.Context, tx *Transaction) error {

return nil
}

func getParentTransactionsForInput(ctx context.Context, client ClientInterface, input *TransactionInput) ([]*bt.Tx, error) {
inputTx, err := client.GetTransactionByID(ctx, input.UtxoPointer.TransactionID)
if err != nil {
return nil, err
}

if inputTx.MerkleProof.TxOrID != "" {
inputBtTx, err := bt.NewTxFromString(inputTx.Hex)
if err != nil {
return nil, fmt.Errorf("cannot convert to bt.Tx from hex (tx.ID: %s). Reason: %w", inputTx.ID, err)
}

return []*bt.Tx{inputBtTx}, nil
}

return nil, fmt.Errorf("transaction is not mined yet (tx.ID: %s)", inputTx.ID) // TODO: handle it in next iterration
}

0 comments on commit a69c347

Please sign in to comment.