diff --git a/plugins/webapi/value/gettransactionbyid/handler.go b/plugins/webapi/value/gettransactionbyid/handler.go index 8e68d9ef71c06550995bee9f09d104b88568f0f7..32a31570bc8b66b6ca74dc59497ebfeb02cdb99c 100644 --- a/plugins/webapi/value/gettransactionbyid/handler.go +++ b/plugins/webapi/value/gettransactionbyid/handler.go @@ -1,7 +1,6 @@ package gettransactionbyid import ( - "log" "net/http" "github.com/iotaledger/goshimmer/dapps/valuetransfers" @@ -14,7 +13,6 @@ import ( func Handler(c echo.Context) error { txnID, err := transaction.IDFromBase58(c.QueryParam("txnID")) if err != nil { - log.Println(err) return c.JSON(http.StatusBadRequest, Response{Error: err.Error()}) } @@ -22,13 +20,11 @@ func Handler(c echo.Context) error { cachedTxnMetaObj := valuetransfers.Tangle.TransactionMetadata(txnID) defer cachedTxnMetaObj.Release() if !cachedTxnMetaObj.Exists() { - log.Println("transaction meta doesn't exist for", txnID) return c.JSON(http.StatusNotFound, Response{Error: "Transaction not found"}) } cachedTxnObj := valuetransfers.Tangle.Transaction(txnID) defer cachedTxnObj.Release() if !cachedTxnObj.Exists() { - log.Println("transaction doesn't exist for", txnID) return c.JSON(http.StatusNotFound, Response{Error: "Transaction not found"}) } txn := utils.ParseTransaction(cachedTxnObj.Unwrap()) diff --git a/plugins/webapi/value/sendtransaction/handler.go b/plugins/webapi/value/sendtransaction/handler.go index bbf8bd6782964c0b8d6af3e55a94c7106c954b12..8a65571533c113d60d7a74a9e7108acaa4e34d65 100644 --- a/plugins/webapi/value/sendtransaction/handler.go +++ b/plugins/webapi/value/sendtransaction/handler.go @@ -1,7 +1,6 @@ package sendtransaction import ( - "log" "net/http" "github.com/iotaledger/goshimmer/dapps/valuetransfers" @@ -14,26 +13,21 @@ import ( func Handler(c echo.Context) error { var request Request if err := c.Bind(&request); err != nil { - log.Println(err.Error()) return c.JSON(http.StatusBadRequest, Response{Error: err.Error()}) } // prepare transaction tx, _, err := transaction.FromBytes(request.TransactionBytes) if err != nil { - log.Println(err.Error()) return c.JSON(http.StatusBadRequest, Response{Error: err.Error()}) } // Prepare value payload and send the message to tangle payload := valuetransfers.ValueObjectFactory().IssueTransaction(tx) - log.Println("issued transaction") _, err = issuer.IssuePayload(payload) if err != nil { - log.Println(err.Error()) return c.JSON(http.StatusBadRequest, Response{Error: err.Error()}) } - log.Println("issued payload") return c.JSON(http.StatusOK, Response{TransactionID: tx.ID().String()}) } diff --git a/tools/integration-tests/tester/tests/consensus/consensus_conflicts_test.go b/tools/integration-tests/tester/tests/consensus/consensus_conflicts_test.go index 9d24e9670164bdd080892a2debd35d0264c04571..7c5b0379d83607a9023cf62313e10beee7de749c 100644 --- a/tools/integration-tests/tester/tests/consensus/consensus_conflicts_test.go +++ b/tools/integration-tests/tester/tests/consensus/consensus_conflicts_test.go @@ -24,7 +24,7 @@ import ( func TestConsensusFiftyFiftyOpinionSplit(t *testing.T) { // override avg. network delay to accustom integration test slowness - framework.ParaFCoBAverageNetworkDelay = 60 + framework.ParaFCoBAverageNetworkDelay = 90 framework.ParaBootstrapOnEveryNode = true // create two partitions with their own peers @@ -150,7 +150,7 @@ func TestConsensusFiftyFiftyOpinionSplit(t *testing.T) { // check that the transactions are marked as conflicting tests.CheckTransactions(t, n.Peers(), expectations, true, tests.ExpectedInclusionState{ - Finalized: tests.True(), + Finalized: tests.False(), Conflict: tests.True(), Solid: tests.True(), }) diff --git a/tools/integration-tests/tester/tests/testutil.go b/tools/integration-tests/tester/tests/testutil.go index 215c4438c93bc1cc1ff5e4d97e367e063683fe8b..594e60a720841e2289f42842e8d132ec749c39a4 100644 --- a/tools/integration-tests/tester/tests/testutil.go +++ b/tools/integration-tests/tester/tests/testutil.go @@ -469,7 +469,7 @@ func AwaitTransactionAvailability(peers []*framework.Peer, transactionIDs []stri s := time.Now() var missingMu sync.Mutex missing = map[string]map[string]types.Empty{} - for ; time.Since(s) < maxAwait; time.Sleep(1 * time.Second) { + for ; time.Since(s) < maxAwait; time.Sleep(500 * time.Millisecond) { var wg sync.WaitGroup wg.Add(len(peers)) counter := int32(len(peers) * len(transactionIDs))