|
|
@ -5,16 +5,16 @@ import ( |
|
|
|
"encoding/hex" |
|
|
|
"encoding/json" |
|
|
|
"errors" |
|
|
|
"regexp" |
|
|
|
"strconv" |
|
|
|
"strings" |
|
|
|
"time" |
|
|
|
"regexp" |
|
|
|
|
|
|
|
"github.com/btcsuite/btcd/rpcclient" |
|
|
|
"github.com/sirupsen/logrus" |
|
|
|
|
|
|
|
"github.com/DenioD/lightwalletd/common" |
|
|
|
"github.com/DenioD/lightwalletd/walletrpc" |
|
|
|
"git.hush.is/hush/lightwalletd/common" |
|
|
|
"git.hush.is/hush/lightwalletd/walletrpc" |
|
|
|
) |
|
|
|
|
|
|
|
var ( |
|
|
@ -71,7 +71,6 @@ func (s *SqlStreamer) GetAddressTxids(addressBlockFilter *walletrpc.TransparentA |
|
|
|
|
|
|
|
result, rpcErr := s.client.RawRequest("getaddresstxids", params) |
|
|
|
|
|
|
|
|
|
|
|
// For some reason, the error responses are not JSON
|
|
|
|
if rpcErr != nil { |
|
|
|
s.log.Errorf("Got error: %s", rpcErr.Error()) |
|
|
@ -286,7 +285,6 @@ func (s *SqlStreamer) GetCoinsupply(ctx context.Context, in *walletrpc.Empty) (* |
|
|
|
}, nil |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// SendTransaction forwards raw transaction bytes to a hushd instance over JSON-RPC
|
|
|
|
func (s *SqlStreamer) SendTransaction(ctx context.Context, rawtx *walletrpc.RawTransaction) (*walletrpc.SendResponse, error) { |
|
|
|
// sendrawtransaction "hexstring" ( allowhighfees )
|
|
|
|