Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
go: ['1.21', '1.22']
go: ['1.24', '1.25']

services:
postgres:
image: postgres:16.3
image: postgres:18.1
env:
POSTGRES_USER: dcrpooluser
POSTGRES_PASSWORD: 12345
Expand All @@ -27,13 +27,13 @@ jobs:
- 5432:5432
steps:
- name: Set up Go
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 #v5.0.1
uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c #v6.1.0
with:
go-version: ${{ matrix.go }}
- name: Check out source
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 #v4.1.6
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 #v6.0.0
- name: Install Linters
run: "curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.59.0"
run: "curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v2.7.2"
- name: Build
run: go build ./...
- name: Test
Expand Down
16 changes: 8 additions & 8 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
version: "2"
run:
deadline: 10m

timeout: 10m
linters:
disable-all: true
default: none
enable:
- asciicheck
- bidichk
Expand All @@ -11,10 +11,6 @@ linters:
- durationcheck
- errchkjson
- errorlint
- exportloopref
- gofmt
- goimports
- gosimple
- govet
- grouper
- ineffassign
Expand All @@ -23,7 +19,11 @@ linters:
- reassign
- rowserrcheck
- sqlclosecheck
- staticcheck
- tparallel
- typecheck
- unconvert
- unused
formatters:
enable:
- gofmt
- goimports
3 changes: 2 additions & 1 deletion dcrpool.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ func newHub(cfg *config, db pool.Database) (*pool.Hub, error) {
dcrdRPCCfg := rpcclient.ConnConfig{
Host: cfg.DcrdRPCHost,
Endpoint: "ws",
AuthType: rpcclient.AuthTypeBasic,
User: cfg.RPCUser,
Pass: cfg.RPCPass,
Certificates: cfg.dcrdRPCCerts,
Expand Down Expand Up @@ -81,7 +82,7 @@ func newGUI(cfg *config, hub *pool.Hub) (*gui.GUI, error) {
Domain: cfg.Domain,
TLSCertFile: cfg.GUITLSCert,
TLSKeyFile: cfg.GUITLSKey,
ActiveNetName: cfg.net.Params.Name,
ActiveNetName: cfg.net.Name,
BlockExplorerURL: cfg.net.blockExplorerURL,
PaymentMethod: cfg.PaymentMethod,
Designation: cfg.Designation,
Expand Down
57 changes: 29 additions & 28 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
module github.com/decred/dcrpool

go 1.21
go 1.24.0

require (
decred.org/dcrwallet/v4 v4.1.0
github.com/decred/dcrd/blockchain/standalone/v2 v2.2.1
github.com/decred/dcrd/certgen v1.1.3
github.com/decred/dcrd/chaincfg/chainhash v1.0.4
github.com/decred/dcrd/chaincfg/v3 v3.2.1
github.com/decred/dcrd/crypto/blake256 v1.0.1
github.com/decred/dcrd/dcrjson/v4 v4.1.0
github.com/decred/dcrd/dcrutil/v4 v4.0.2
github.com/decred/dcrd/rpc/jsonrpc/types/v4 v4.3.0
github.com/decred/dcrd/rpcclient/v8 v8.0.1
github.com/decred/dcrd/txscript/v4 v4.1.1
github.com/decred/dcrd/wire v1.7.0
decred.org/dcrwallet/v5 v5.0.3
github.com/decred/dcrd/blockchain/standalone/v2 v2.2.2
github.com/decred/dcrd/certgen v1.2.0
github.com/decred/dcrd/chaincfg/chainhash v1.0.5
github.com/decred/dcrd/chaincfg/v3 v3.3.0
github.com/decred/dcrd/crypto/blake256 v1.1.0
github.com/decred/dcrd/dcrjson/v4 v4.2.0
github.com/decred/dcrd/dcrutil/v4 v4.0.3
github.com/decred/dcrd/rpc/jsonrpc/types/v4 v4.4.0
github.com/decred/dcrd/rpcclient/v8 v8.1.0
github.com/decred/dcrd/txscript/v4 v4.1.2
github.com/decred/dcrd/wire v1.7.2
github.com/decred/slog v1.2.0
github.com/gorilla/csrf v1.7.2
github.com/gorilla/mux v1.8.1
Expand All @@ -23,31 +23,32 @@ require (
github.com/jessevdk/go-flags v1.5.0
github.com/jrick/logrotate v1.0.0
github.com/lib/pq v1.10.9
go.etcd.io/bbolt v1.3.10
golang.org/x/crypto v0.23.0
go.etcd.io/bbolt v1.3.12
golang.org/x/crypto v0.45.0
golang.org/x/time v0.5.0
google.golang.org/grpc v1.45.0
google.golang.org/grpc v1.76.0
)

require (
github.com/agl/ed25519 v0.0.0-20170116200512-5312a6153412 // indirect
github.com/dchest/siphash v1.2.3 // indirect
github.com/decred/base58 v1.0.5 // indirect
github.com/decred/dcrd/blockchain/stake/v5 v5.0.1 // indirect
github.com/decred/base58 v1.0.6 // indirect
github.com/decred/dcrd/blockchain/stake/v5 v5.0.2 // indirect
github.com/decred/dcrd/crypto/rand v1.0.1 // indirect
github.com/decred/dcrd/crypto/ripemd160 v1.0.2 // indirect
github.com/decred/dcrd/database/v3 v3.0.2 // indirect
github.com/decred/dcrd/database/v3 v3.0.3 // indirect
github.com/decred/dcrd/dcrec v1.0.1 // indirect
github.com/decred/dcrd/dcrec/edwards/v2 v2.0.3 // indirect
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.3.0 // indirect
github.com/decred/dcrd/gcs/v4 v4.1.0 // indirect
github.com/decred/dcrd/dcrec/edwards/v2 v2.0.4 // indirect
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.4.0 // indirect
github.com/decred/dcrd/gcs/v4 v4.1.1 // indirect
github.com/decred/go-socks v1.1.0 // indirect
github.com/golang/protobuf v1.5.2 // indirect
github.com/golang/protobuf v1.5.4 // indirect
github.com/gorilla/securecookie v1.1.2 // indirect
github.com/klauspost/cpuid/v2 v2.2.5 // indirect
golang.org/x/net v0.25.0 // indirect
golang.org/x/sys v0.20.0 // indirect
golang.org/x/text v0.15.0 // indirect
github.com/klauspost/cpuid/v2 v2.2.8 // indirect
golang.org/x/net v0.47.0 // indirect
golang.org/x/sys v0.38.0 // indirect
golang.org/x/text v0.31.0 // indirect
google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013 // indirect
google.golang.org/protobuf v1.27.1 // indirect
google.golang.org/protobuf v1.36.10 // indirect
lukechampine.com/blake3 v1.3.0 // indirect
)
Loading
Loading