Skip to content

Commit

Permalink
build: go 1.14 (#154)
Browse files Browse the repository at this point in the history
  • Loading branch information
dajohi committed Mar 20, 2020
1 parent 4479ae9 commit 240cf6c
Show file tree
Hide file tree
Showing 29 changed files with 33 additions and 32 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
go: [1.12, 1.13]
go: [1.13, 1.14]
steps:
- name: Set up Go
uses: actions/setup-go@v1
Expand All @@ -15,7 +15,7 @@ jobs:
- name: Check out source
uses: actions/checkout@v1
- name: Install Linters
run: "curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.21.0"
run: "curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.24.0"
- name: Build
env:
GO111MODULE: "on"
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Copyright (c) 2013-2016 The btcsuite developers
Copyright (c) 2015-2019 The Decred developers
Copyright (c) 2015-2020 The Decred developers

Permission to use, copy, modify, and distribute this software for any
purpose with or without fee is hereby granted, provided that the above
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ module github.com/decred/dcrpool
go 1.12

require (
github.com/coreos/bbolt v1.3.3
github.com/davecgh/go-spew v1.1.1
github.com/decred/base58 v1.0.2 // indirect
github.com/decred/dcrd/blockchain/standalone v1.1.0
Expand All @@ -24,6 +23,7 @@ require (
github.com/gorilla/websocket v1.4.1
github.com/jessevdk/go-flags v1.4.0
github.com/jrick/logrotate v1.0.0
go.etcd.io/bbolt v1.3.4
golang.org/x/crypto v0.0.0-20191206172530-e9b2fee46413
golang.org/x/time v0.0.0-20191024005414-555d28b269f0
google.golang.org/grpc v1.26.0
Expand Down
7 changes: 4 additions & 3 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ github.com/btcsuite/snappy-go v1.0.0 h1:ZxaA6lo2EpxGddsA8JwWOcxlzRybb444sgmeJQMJ
github.com/btcsuite/snappy-go v1.0.0/go.mod h1:8woku9dyThutzjeg+3xrA5iCpBRH8XEEg3lh6TiUghc=
github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU=
github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw=
github.com/coreos/bbolt v1.3.3 h1:n6AiVyVRKQFNb6mJlwESEvvLoDyiTzXX7ORAUlkeBdY=
github.com/coreos/bbolt v1.3.3/go.mod h1:iRUV2dpdMOn7Bo10OQBFzIJO9kkE559Wcmn+qkEiiKk=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
Expand Down Expand Up @@ -148,8 +146,9 @@ github.com/onsi/gomega v1.4.3/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1Cpa
github.com/pkg/errors v0.8.0 h1:WdK/asTD0HN+q6hsWO3/vpuAkAr+tw6aNJNDFFf0+qw=
github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA=
go.etcd.io/bbolt v1.3.3 h1:MUGmc65QhB3pIlaQ5bB4LwqSj6GIonVJXpZiaKNyaKk=
go.etcd.io/bbolt v1.3.3/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU=
go.etcd.io/bbolt v1.3.4 h1:hi1bXHMVrlQh6WwxAy+qZCV/SYIlqo+Ushwdpa4tAKg=
go.etcd.io/bbolt v1.3.4/go.mod h1:G5EMThwa9y8QZGBClrRx5EY+Yw9kAhnjy3bSjsnlVTQ=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
golang.org/x/crypto v0.0.0-20190611184440-5c40567a22f8/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
golang.org/x/crypto v0.0.0-20190820162420-60c769a6c586/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
Expand Down Expand Up @@ -180,6 +179,8 @@ golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7w
golang.org/x/sys v0.0.0-20190813064441-fde4db37ae7a/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20191010194322-b09406accb47 h1:/XfQ9z7ib8eEJX2hdgFTZJ/ntt0swNk5oYBziWeTCvY=
golang.org/x/sys v0.0.0-20191010194322-b09406accb47/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5 h1:LfCXLvNmTYH9kEmVgqbnsWfruoXZIrh4YBgqVHtDvw0=
golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/text v0.3.0 h1:g61tztE5qeGQ89tm6NTjjM9VPIm088od1l6aSorWRWg=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.2 h1:tW2bmiBqwgJj/UpqtC8EpXEZVYOwU0yG4iWbprSVAcs=
Expand Down
2 changes: 1 addition & 1 deletion pool/acceptedwork.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"strings"
"time"

bolt "github.com/coreos/bbolt"
bolt "go.etcd.io/bbolt"
)

// AcceptedWork represents an accepted work submission to the network.
Expand Down
2 changes: 1 addition & 1 deletion pool/acceptedwork_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"testing"

bolt "github.com/coreos/bbolt"
bolt "go.etcd.io/bbolt"
)

func persistAcceptedWork(db *bolt.DB, blockHash string, prevHash string,
Expand Down
2 changes: 1 addition & 1 deletion pool/account.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ import (
"fmt"
"time"

bolt "github.com/coreos/bbolt"
"github.com/decred/dcrd/chaincfg/v2"
"github.com/decred/dcrd/crypto/blake256"
"github.com/decred/dcrd/dcrutil/v2"
bolt "go.etcd.io/bbolt"
)

// Account represents a mining pool account.
Expand Down
2 changes: 1 addition & 1 deletion pool/account_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"fmt"
"testing"

bolt "github.com/coreos/bbolt"
"github.com/decred/dcrd/chaincfg/v2"
bolt "go.etcd.io/bbolt"
)

func persistAccount(db *bolt.DB, address string, activeNet *chaincfg.Params) (*Account, error) {
Expand Down
2 changes: 1 addition & 1 deletion pool/chainstate.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import (
"sync"
"sync/atomic"

bolt "github.com/coreos/bbolt"
"github.com/decred/dcrd/chaincfg/chainhash"
"github.com/decred/dcrd/dcrutil/v2"
"github.com/decred/dcrd/wire"
bolt "go.etcd.io/bbolt"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion pool/chainstate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import (
"sync"
"testing"

bolt "github.com/coreos/bbolt"
"github.com/decred/dcrd/chaincfg/chainhash"
"github.com/decred/dcrd/dcrutil/v2"
"github.com/decred/dcrd/wire"
bolt "go.etcd.io/bbolt"
)

func testChainState(t *testing.T, db *bolt.DB) {
Expand Down
2 changes: 1 addition & 1 deletion pool/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ import (
"sync/atomic"
"time"

bolt "github.com/coreos/bbolt"
"github.com/davecgh/go-spew/spew"
"github.com/decred/dcrd/blockchain/standalone"
"github.com/decred/dcrd/chaincfg/v2"
"github.com/decred/dcrd/wire"
bolt "go.etcd.io/bbolt"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion pool/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ import (
"testing"
"time"

bolt "github.com/coreos/bbolt"
"github.com/decred/dcrd/chaincfg/v2"
bolt "go.etcd.io/bbolt"
)

func testClient(t *testing.T, db *bolt.DB) {
Expand Down
2 changes: 1 addition & 1 deletion pool/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"fmt"
"time"

bolt "github.com/coreos/bbolt"
bolt "go.etcd.io/bbolt"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion pool/db_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"os"
"testing"

bolt "github.com/coreos/bbolt"
"github.com/decred/dcrd/chaincfg/v2"
bolt "go.etcd.io/bbolt"
)

func testInitDB(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion pool/endpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import (
"sync"
"time"

bolt "github.com/coreos/bbolt"
"github.com/decred/dcrd/chaincfg/v2"
bolt "go.etcd.io/bbolt"
)

type EndpointConfig struct {
Expand Down
2 changes: 1 addition & 1 deletion pool/endpoint_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
"testing"
"time"

bolt "github.com/coreos/bbolt"
"github.com/decred/dcrd/chaincfg/v2"
bolt "go.etcd.io/bbolt"
)

func makeConn(listener *net.TCPListener, serverCh chan net.Conn) (net.Conn, net.Conn, error) {
Expand Down
2 changes: 1 addition & 1 deletion pool/hub.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ import (
"sync/atomic"
"time"

bolt "github.com/coreos/bbolt"
"github.com/decred/dcrd/chaincfg/chainhash"
"github.com/decred/dcrd/chaincfg/v2"
"github.com/decred/dcrd/dcrutil/v2"
"github.com/decred/dcrd/rpcclient/v5"
"github.com/decred/dcrd/wire"
"github.com/decred/dcrwallet/rpc/walletrpc"
bolt "go.etcd.io/bbolt"
"google.golang.org/grpc"
"google.golang.org/grpc/credentials"
)
Expand Down
2 changes: 1 addition & 1 deletion pool/hub_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import (
"testing"
"time"

bolt "github.com/coreos/bbolt"
"github.com/decred/dcrd/chaincfg/v2"
"github.com/decred/dcrd/dcrutil/v2"
bolt "go.etcd.io/bbolt"
)

func testHub(t *testing.T, db *bolt.DB) {
Expand Down
2 changes: 1 addition & 1 deletion pool/job.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"fmt"
"time"

bolt "github.com/coreos/bbolt"
bolt "go.etcd.io/bbolt"
)

// Job represents cached copies of work delivered to clients.
Expand Down
2 changes: 1 addition & 1 deletion pool/job_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"testing"

bolt "github.com/coreos/bbolt"
bolt "go.etcd.io/bbolt"
)

func persistJob(db *bolt.DB, header string, height uint32) (*Job, error) {
Expand Down
2 changes: 1 addition & 1 deletion pool/payment.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
"fmt"
"time"

bolt "github.com/coreos/bbolt"
"github.com/decred/dcrd/dcrutil/v2"
bolt "go.etcd.io/bbolt"
)

// Payment represents an outstanding payment for a pool account.
Expand Down
2 changes: 1 addition & 1 deletion pool/payment_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"testing"
"time"

bolt "github.com/coreos/bbolt"
"github.com/decred/dcrd/dcrutil/v2"
bolt "go.etcd.io/bbolt"
)

// makePaymentBundle creates a new payment bundle.
Expand Down
2 changes: 1 addition & 1 deletion pool/paymentmgr.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ import (
"sync/atomic"
"time"

bolt "github.com/coreos/bbolt"
"github.com/decred/dcrd/chaincfg/v2"
"github.com/decred/dcrd/dcrutil/v2"
"github.com/decred/dcrd/mempool/v3"
txrules "github.com/decred/dcrwallet/wallet/v3/txrules"
bolt "go.etcd.io/bbolt"
)

type PaymentMgrConfig struct {
Expand Down
2 changes: 1 addition & 1 deletion pool/paymentmgr_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"testing"
"time"

bolt "github.com/coreos/bbolt"
"github.com/decred/dcrd/chaincfg/v2"
"github.com/decred/dcrd/dcrutil/v2"
bolt "go.etcd.io/bbolt"
)

func testPaymentMgr(t *testing.T, db *bolt.DB) {
Expand Down
2 changes: 1 addition & 1 deletion pool/pool_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"os"
"testing"

bolt "github.com/coreos/bbolt"
"github.com/decred/dcrd/chaincfg/v2"
"github.com/decred/dcrd/dcrutil/v2"
bolt "go.etcd.io/bbolt"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion pool/share.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import (
"math/big"
"time"

bolt "github.com/coreos/bbolt"
"github.com/decred/dcrd/chaincfg/v2"
"github.com/decred/dcrd/dcrutil/v2"
bolt "go.etcd.io/bbolt"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion pool/share_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
"testing"
"time"

bolt "github.com/coreos/bbolt"
"github.com/decred/dcrd/chaincfg/v2"
bolt "go.etcd.io/bbolt"
)

// persistShare creates a persisted share with the provided account, share
Expand Down
2 changes: 1 addition & 1 deletion pool/upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"encoding/json"
"fmt"

bolt "github.com/coreos/bbolt"
bolt "go.etcd.io/bbolt"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion pool/upgrades_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"path/filepath"
"testing"

bolt "github.com/coreos/bbolt"
bolt "go.etcd.io/bbolt"
)

var dbUpgradeTests = [...]struct {
Expand Down

0 comments on commit 240cf6c

Please sign in to comment.