Browse Source

changed DenioD's github lightwalletd links to git.hush.is lightwalletd links

docs
jahway603 4 years ago
parent
commit
0f21f457a6
  1. 6
      cmd/server/main.go
  2. 2
      common/cache.go
  3. 5
      common/common.go
  4. 8
      frontend/service.go
  5. 2
      go.mod
  6. 4
      parser/block.go
  7. 2
      parser/block_header.go
  8. 4
      parser/transaction.go
  9. 2
      parser/transaction_test.go

6
cmd/server/main.go

@ -15,9 +15,9 @@ import (
"google.golang.org/grpc/peer" "google.golang.org/grpc/peer"
"google.golang.org/grpc/reflection" "google.golang.org/grpc/reflection"
"github.com/DenioD/lightwalletd/common" "git.hush.is/hush/lightwalletd/common"
"github.com/DenioD/lightwalletd/frontend" "git.hush.is/hush/lightwalletd/frontend"
"github.com/DenioD/lightwalletd/walletrpc" "git.hush.is/hush/lightwalletd/walletrpc"
) )
var log *logrus.Entry var log *logrus.Entry

2
common/cache.go

@ -4,7 +4,7 @@ import (
"bytes" "bytes"
"sync" "sync"
"github.com/DenioD/lightwalletd/walletrpc" "git.hush.is/hush/lightwalletd/walletrpc"
"github.com/golang/protobuf/proto" "github.com/golang/protobuf/proto"
) )

5
common/common.go

@ -8,8 +8,8 @@ import (
"strings" "strings"
"time" "time"
"github.com/DenioD/lightwalletd/parser" "git.hush.is/hush/lightwalletd/parser"
"github.com/DenioD/lightwalletd/walletrpc" "git.hush.is/hush/lightwalletd/walletrpc"
"github.com/btcsuite/btcd/rpcclient" "github.com/btcsuite/btcd/rpcclient"
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/sirupsen/logrus" "github.com/sirupsen/logrus"
@ -61,7 +61,6 @@ func GetCoinsupply(rpcClient *rpcclient.Client) (string, string, int, int, int,i
var err error var err error
var errCode int64 var errCode int64
// For some reason, the error responses are not JSON // For some reason, the error responses are not JSON
if rpcErr != nil { if rpcErr != nil {
errParts := strings.SplitN(rpcErr.Error(), ":", 2) errParts := strings.SplitN(rpcErr.Error(), ":", 2)

8
frontend/service.go

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

2
go.mod

@ -1,4 +1,4 @@
module github.com/DenioD/lightwalletd module git.hush.is/hush/lightwalletd
go 1.12 go 1.12

4
parser/block.go

@ -3,9 +3,9 @@ package parser
import ( import (
"fmt" "fmt"
"git.hush.is/hush/lightwalletd/parser/internal/bytestring"
"git.hush.is/hush/lightwalletd/walletrpc"
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/DenioD/lightwalletd/parser/internal/bytestring"
"github.com/DenioD/lightwalletd/walletrpc"
) )
type Block struct { type Block struct {

2
parser/block_header.go

@ -7,8 +7,8 @@ import (
"log" "log"
"math/big" "math/big"
"git.hush.is/hush/lightwalletd/parser/internal/bytestring"
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/DenioD/lightwalletd/parser/internal/bytestring"
) )
const ( const (

4
parser/transaction.go

@ -3,9 +3,9 @@ package parser
import ( import (
"crypto/sha256" "crypto/sha256"
"git.hush.is/hush/lightwalletd/parser/internal/bytestring"
"git.hush.is/hush/lightwalletd/walletrpc"
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/DenioD/lightwalletd/parser/internal/bytestring"
"github.com/DenioD/lightwalletd/walletrpc"
) )
type rawTransaction struct { type rawTransaction struct {

2
parser/transaction_test.go

@ -9,7 +9,7 @@ import (
"strings" "strings"
"testing" "testing"
"github.com/DenioD/lightwalletd/parser/internal/bytestring" "git.hush.is/hush/lightwalletd/parser/internal/bytestring"
) )
// "Human-readable" version of joinSplit struct defined in transaction.go. // "Human-readable" version of joinSplit struct defined in transaction.go.

Loading…
Cancel
Save