Skip to content

Commit

Permalink
do clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
dmigwi committed Jan 2, 2019
1 parent ba17be0 commit 4ef90b2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions analytics/analytics.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
3 changes: 1 addition & 2 deletions explorer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

Expand Down
2 changes: 1 addition & 1 deletion rpcutils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4ef90b2

Please sign in to comment.