From 029822fc4356fdf1f29c30b47913b8aebf6c2874 Mon Sep 17 00:00:00 2001 From: Jakub Matys Date: Sat, 9 Jun 2018 14:54:10 +0200 Subject: [PATCH] Removed duplicate method --- bchain/coins/zec/zcashrpc.go | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/bchain/coins/zec/zcashrpc.go b/bchain/coins/zec/zcashrpc.go index 6790c46f..495fa7af 100644 --- a/bchain/coins/zec/zcashrpc.go +++ b/bchain/coins/zec/zcashrpc.go @@ -114,29 +114,6 @@ func (z *ZCashRPC) GetTransactionForMempool(txid string) (*bchain.Tx, error) { return z.GetTransaction(txid) } -// GetTransaction returns a transaction by the transaction ID. -func (z *ZCashRPC) GetTransaction(txid string) (*bchain.Tx, error) { - glog.V(1).Info("rpc: getrawtransaction ", txid) - - res := btc.ResGetRawTransaction{} - req := btc.CmdGetRawTransaction{Method: "getrawtransaction"} - req.Params.Txid = txid - req.Params.Verbose = true - err := z.Call(&req, &res) - - if err != nil { - return nil, errors.Annotatef(err, "txid %v", txid) - } - if res.Error != nil { - return nil, errors.Annotatef(res.Error, "txid %v", txid) - } - tx, err := z.Parser.ParseTxFromJson(res.Result) - if err != nil { - return nil, errors.Annotatef(err, "txid %v", txid) - } - return tx, nil -} - // EstimateSmartFee returns fee estimation. func (z *ZCashRPC) EstimateSmartFee(blocks int, conservative bool) (float64, error) { glog.V(1).Info("rpc: estimatesmartfee")