Skip to content

Commit ecc04ac

Browse files
committed
multi: Make pool package internal.
1 parent a1d7b08 commit ecc04ac

51 files changed

Lines changed: 18 additions & 18 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ tmp
66
logs
77
*.log
88
*.conf
9-
/pool/testdb
9+
/internal/pool/testdb
1010
/certs/*
1111

1212
# Testing, profiling, and benchmarking artifacts

cmd/miner/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616
"sync/atomic"
1717
"time"
1818

19-
"github.com/decred/dcrpool/pool"
19+
"github.com/decred/dcrpool/internal/pool"
2020
)
2121

2222
// work represents the data received from a work notification. It comprises of

cmd/miner/cpuminer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import (
1818

1919
"github.com/decred/dcrd/blockchain/standalone/v2"
2020
"github.com/decred/dcrd/wire"
21-
"github.com/decred/dcrpool/pool"
21+
"github.com/decred/dcrpool/internal/pool"
2222
)
2323

2424
const (

config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import (
2323
"github.com/decred/dcrd/certgen"
2424
"github.com/decred/dcrd/dcrutil/v4"
2525
"github.com/decred/dcrd/txscript/v4/stdaddr"
26-
"github.com/decred/dcrpool/pool"
26+
"github.com/decred/dcrpool/internal/pool"
2727
"github.com/decred/slog"
2828
)
2929

dcrpool.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import (
1919

2020
"github.com/decred/dcrd/rpcclient/v8"
2121
"github.com/decred/dcrpool/internal/gui"
22-
"github.com/decred/dcrpool/pool"
22+
"github.com/decred/dcrpool/internal/pool"
2323
)
2424

2525
// newHub returns a new pool hub configured with the provided details that is

internal/gui/account.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2020-2021 The Decred developers
1+
// Copyright (c) 2020-2024 The Decred developers
22
// Use of this source code is governed by an ISC
33
// license that can be found in the LICENSE file.
44

@@ -7,7 +7,7 @@ package gui
77
import (
88
"net/http"
99

10-
"github.com/decred/dcrpool/pool"
10+
"github.com/decred/dcrpool/internal/pool"
1111
"github.com/gorilla/csrf"
1212
)
1313

internal/gui/admin.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2020-2021 The Decred developers
1+
// Copyright (c) 2020-2024 The Decred developers
22
// Use of this source code is governed by an ISC
33
// license that can be found in the LICENSE file.
44

@@ -7,7 +7,7 @@ package gui
77
import (
88
"net/http"
99

10-
"github.com/decred/dcrpool/pool"
10+
"github.com/decred/dcrpool/internal/pool"
1111
"github.com/gorilla/csrf"
1212
"github.com/gorilla/sessions"
1313
)

internal/gui/cache.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2020-2021 The Decred developers
1+
// Copyright (c) 2020-2024 The Decred developers
22
// Use of this source code is governed by an ISC
33
// license that can be found in the LICENSE file.
44

@@ -11,7 +11,7 @@ import (
1111
"sync"
1212

1313
"github.com/decred/dcrd/dcrutil/v4"
14-
"github.com/decred/dcrpool/pool"
14+
"github.com/decred/dcrpool/internal/pool"
1515
)
1616

1717
// client represents a mining client. It is json annotated so it can easily be

internal/gui/gui.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2020-2023 The Decred developers
1+
// Copyright (c) 2020-2024 The Decred developers
22
// Use of this source code is governed by an ISC
33
// license that can be found in the LICENSE file.
44

@@ -24,7 +24,7 @@ import (
2424
"github.com/gorilla/mux"
2525
"github.com/gorilla/sessions"
2626

27-
"github.com/decred/dcrpool/pool"
27+
"github.com/decred/dcrpool/internal/pool"
2828
)
2929

3030
// Config contains all of the required configuration values for the GUI

internal/gui/middleware.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2020-2021 The Decred developers
1+
// Copyright (c) 2020-2024 The Decred developers
22
// Use of this source code is governed by an ISC
33
// license that can be found in the LICENSE file.
44

@@ -9,7 +9,7 @@ import (
99
"net/http"
1010
"strings"
1111

12-
"github.com/decred/dcrpool/pool"
12+
"github.com/decred/dcrpool/internal/pool"
1313
"github.com/gorilla/sessions"
1414
)
1515

0 commit comments

Comments
 (0)