mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-06-07 22:56:41 +00:00
[DEV-101] Renamed server/rpcserver to server/rpc. (#55)
This commit is contained in:
parent
b2d3ec69d8
commit
e149a50f22
@ -2,7 +2,7 @@
|
|||||||
// Use of this source code is governed by an ISC
|
// Use of this source code is governed by an ISC
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
package rpcserver
|
package rpc
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/btcsuite/btclog"
|
"github.com/btcsuite/btclog"
|
@ -2,7 +2,7 @@
|
|||||||
// Use of this source code is governed by an ISC
|
// Use of this source code is governed by an ISC
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
package rpcserver
|
package rpc
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"sync/atomic"
|
"sync/atomic"
|
@ -3,7 +3,7 @@
|
|||||||
// Use of this source code is governed by an ISC
|
// Use of this source code is governed by an ISC
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
package rpcserver
|
package rpc
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
@ -3,7 +3,7 @@
|
|||||||
// Use of this source code is governed by an ISC
|
// Use of this source code is governed by an ISC
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
package rpcserver
|
package rpc
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
@ -2,7 +2,7 @@
|
|||||||
// Use of this source code is governed by an ISC
|
// Use of this source code is governed by an ISC
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
package rpcserver
|
package rpc
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
@ -3,7 +3,7 @@
|
|||||||
// Use of this source code is governed by an ISC
|
// Use of this source code is governed by an ISC
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
package rpcserver
|
package rpc
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
@ -11,13 +11,13 @@ import (
|
|||||||
"github.com/daglabs/btcd/mining"
|
"github.com/daglabs/btcd/mining"
|
||||||
"github.com/daglabs/btcd/mining/cpuminer"
|
"github.com/daglabs/btcd/mining/cpuminer"
|
||||||
"github.com/daglabs/btcd/server/p2p"
|
"github.com/daglabs/btcd/server/p2p"
|
||||||
"github.com/daglabs/btcd/server/rpcserver"
|
"github.com/daglabs/btcd/server/rpc"
|
||||||
"github.com/daglabs/btcd/signal"
|
"github.com/daglabs/btcd/signal"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Server is a wrapper for p2p server and rpc server
|
// Server is a wrapper for p2p server and rpc server
|
||||||
type Server struct {
|
type Server struct {
|
||||||
rpcServer *rpcserver.Server
|
rpcServer *rpc.Server
|
||||||
p2pServer *p2p.Server
|
p2pServer *p2p.Server
|
||||||
cpuminer *cpuminer.CPUMiner
|
cpuminer *cpuminer.CPUMiner
|
||||||
startupTime int64
|
startupTime int64
|
||||||
@ -119,7 +119,7 @@ func NewServer(listenAddrs []string, db database.DB, dagParams *dagconfig.Params
|
|||||||
|
|
||||||
if !cfg.DisableRPC {
|
if !cfg.DisableRPC {
|
||||||
|
|
||||||
s.rpcServer, err = rpcserver.NewRPCServer(
|
s.rpcServer, err = rpc.NewRPCServer(
|
||||||
s.startupTime,
|
s.startupTime,
|
||||||
s.p2pServer,
|
s.p2pServer,
|
||||||
db,
|
db,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user