From 3e067c0b8fe61cd41a814f87282205de47125793 Mon Sep 17 00:00:00 2001 From: gouthamp-stellar Date: Tue, 12 Nov 2024 11:14:56 -0500 Subject: [PATCH] final changes --- internal/tss/services/transaction_service.go | 17 +++++++-------- internal/webserver.go | 22 -------------------- 2 files changed, 8 insertions(+), 31 deletions(-) delete mode 100644 internal/webserver.go diff --git a/internal/tss/services/transaction_service.go b/internal/tss/services/transaction_service.go index 1eea45b..f3afd90 100644 --- a/internal/tss/services/transaction_service.go +++ b/internal/tss/services/transaction_service.go @@ -119,9 +119,8 @@ func (t *transactionService) SignAndBuildNewFeeBumpTransaction(ctx context.Conte tx, err := txnbuild.NewTransaction( txnbuild.TransactionParams{ SourceAccount: &channelAccount, - //Operations: operations, - Operations: originalTx.Operations(), - BaseFee: int64(t.BaseFee), + Operations: operations, + BaseFee: int64(t.BaseFee), Preconditions: txnbuild.Preconditions{ TimeBounds: txnbuild.NewTimeout(120), }, @@ -135,12 +134,12 @@ func (t *transactionService) SignAndBuildNewFeeBumpTransaction(ctx context.Conte if err != nil { return nil, fmt.Errorf("signing transaction with channel account: %w", err) } - /* - tx, err = t.DistributionAccountSignatureClient.SignStellarTransaction(ctx, tx, distributionAccountPublicKey) - if err != nil { - return nil, fmt.Errorf("signing transaction with distribution account: %w", err) - } - */ + + tx, err = t.DistributionAccountSignatureClient.SignStellarTransaction(ctx, tx, distributionAccountPublicKey) + if err != nil { + return nil, fmt.Errorf("signing transaction with distribution account: %w", err) + } + feeBumpTx, err := txnbuild.NewFeeBumpTransaction( txnbuild.FeeBumpTransactionParams{ Inner: tx, diff --git a/internal/webserver.go b/internal/webserver.go deleted file mode 100644 index f950930..0000000 --- a/internal/webserver.go +++ /dev/null @@ -1,22 +0,0 @@ -package main - -import ( - "fmt" - "net/http" -) - -func main() { - // Define a handler function - http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { - fmt.Println("Request received") - w.WriteHeader(http.StatusOK) // Send HTTP 200 status code - w.Write([]byte("OK")) // Optional: send a response body - }) - - // Start the server on localhost:1234 - fmt.Println("Starting server on http://localhost:1234") - err := http.ListenAndServe("localhost:1234", nil) - if err != nil { - fmt.Println("Error starting server:", err) - } -}