From 4ef90b22139ac0eab9367ec6117b660f0482a443 Mon Sep 17 00:00:00 2001 From: migwi Date: Wed, 2 Jan 2019 04:17:17 +0300 Subject: [PATCH] do clean up --- analytics/analytics.go | 4 ++-- explorer.go | 3 +-- rpcutils/utils.go | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/analytics/analytics.go b/analytics/analytics.go index a645111..1727fd9 100644 --- a/analytics/analytics.go +++ b/analytics/analytics.go @@ -186,8 +186,8 @@ func TxFundsFlowProbability(rawData []*AllFundsFlows, isMany := len(res.Inputs) > 1 for out, outSum := range res.MatchingOutputs { - // output amount to be used must be great than zero. OP_RETURN scripts - // do not have any amount. The hold nulldata transaction type. + // output amount to be used must be greater than zero. OP_RETURN + // scripts do not have any amounts. They hold nulldata transaction type. if out <= 0 { continue } diff --git a/explorer.go b/explorer.go index 8b76a7d..b86a6cb 100644 --- a/explorer.go +++ b/explorer.go @@ -94,8 +94,7 @@ func (exp *explorer) TxProbabilityHandler(w http.ResponseWriter, r *http.Request w.Write(strData) } -// ChainHandler reconstructs the probability solution to create funds flow paths -// returns thier effective funds flow probability. +// ChainHandler reconstructs the probability solution to create funds flow paths. func (exp *explorer) ChainHandler(w http.ResponseWriter, r *http.Request) { transactionX := mux.Vars(r)["tx"] diff --git a/rpcutils/utils.go b/rpcutils/utils.go index 8fbbaa6..b04ac75 100644 --- a/rpcutils/utils.go +++ b/rpcutils/utils.go @@ -121,7 +121,7 @@ func GetTransactionVerboseByID(client *rpcclient.Client, txid string) ( txraw, err := client.GetRawTransactionVerbose(txhash) if err != nil { - log.Errorf("GetRawTransactionVerbose failed for: %v >>> %v", txhash, txid) + log.Errorf("GetRawTransactionVerbose failed for: %v", txhash) return nil, err } return txraw, nil