mirror of
https://github.com/kvazar-network/keva-stratum.git
synced 2025-01-12 16:18:08 +00:00
Used Golang module.
This commit is contained in:
parent
1fd2611788
commit
8f06e7ce42
11
go.mod
Normal file
11
go.mod
Normal file
@ -0,0 +1,11 @@
|
||||
module kevacoin.org/keva-stratum/v2
|
||||
|
||||
go 1.16
|
||||
|
||||
require (
|
||||
github.com/goji/httpauth v0.0.0-20160601135302-2da839ab0f4d
|
||||
github.com/gorilla/mux v1.8.0
|
||||
github.com/yvasiyarov/go-metrics v0.0.0-20150112132944-c25f46c4b940 // indirect
|
||||
github.com/yvasiyarov/gorelic v0.0.7
|
||||
github.com/yvasiyarov/newrelic_platform_go v0.0.0-20160601141957-9c099fbc30e9 // indirect
|
||||
)
|
10
go.sum
Normal file
10
go.sum
Normal file
@ -0,0 +1,10 @@
|
||||
github.com/goji/httpauth v0.0.0-20160601135302-2da839ab0f4d h1:lBXNCxVENCipq4D1Is42JVOP4eQjlB8TQ6H69Yx5J9Q=
|
||||
github.com/goji/httpauth v0.0.0-20160601135302-2da839ab0f4d/go.mod h1:nnjvkQ9ptGaCkuDUx6wNykzzlUixGxvkme+H/lnzb+A=
|
||||
github.com/gorilla/mux v1.8.0 h1:i40aqfkR1h2SlN9hojwV5ZA91wcXFOvkdNIeFDP5koI=
|
||||
github.com/gorilla/mux v1.8.0/go.mod h1:DVbg23sWSpFRCP0SfiEN6jmj59UnW/n46BH5rLB71So=
|
||||
github.com/yvasiyarov/go-metrics v0.0.0-20150112132944-c25f46c4b940 h1:p7OofyZ509h8DmPLh8Hn+EIIZm/xYhdZHJ9GnXHdr6U=
|
||||
github.com/yvasiyarov/go-metrics v0.0.0-20150112132944-c25f46c4b940/go.mod h1:aX5oPXxHm3bOH+xeAttToC8pqch2ScQN/JoXYupl6xs=
|
||||
github.com/yvasiyarov/gorelic v0.0.7 h1:4DTF1WOM2ZZS/xMOkTFBOcb6XiHu/PKn3rVo6dbewQE=
|
||||
github.com/yvasiyarov/gorelic v0.0.7/go.mod h1:NUSPSUX/bi6SeDMUh6brw0nXpxHnc96TguQh0+r/ssA=
|
||||
github.com/yvasiyarov/newrelic_platform_go v0.0.0-20160601141957-9c099fbc30e9 h1:AsFN8kXcCVkUFHyuzp1FtYbzp1nCO/H6+1uPSGEyPzM=
|
||||
github.com/yvasiyarov/newrelic_platform_go v0.0.0-20160601141957-9c099fbc30e9/go.mod h1:GlGEuHIJweS1mbCqG+7vt2nvWLzLLnRHbXz5JKd/Qbg=
|
4
main.go
4
main.go
@ -10,8 +10,8 @@ import (
|
||||
"runtime"
|
||||
"time"
|
||||
|
||||
"./pool"
|
||||
"./stratum"
|
||||
"kevacoin.org/keva-stratum/v2/pool"
|
||||
"kevacoin.org/keva-stratum/v2/stratum"
|
||||
|
||||
"github.com/goji/httpauth"
|
||||
"github.com/gorilla/mux"
|
||||
|
@ -11,7 +11,7 @@ import (
|
||||
"sync/atomic"
|
||||
"time"
|
||||
|
||||
"../pool"
|
||||
"kevacoin.org/keva-stratum/v2/pool"
|
||||
)
|
||||
|
||||
type RPCClient struct {
|
||||
|
@ -6,8 +6,8 @@ import (
|
||||
"sync/atomic"
|
||||
"time"
|
||||
|
||||
"../rpc"
|
||||
"../util"
|
||||
"kevacoin.org/keva-stratum/v2/rpc"
|
||||
"kevacoin.org/keva-stratum/v2/util"
|
||||
)
|
||||
|
||||
func (s *StratumServer) StatsIndex(w http.ResponseWriter, r *http.Request) {
|
||||
|
@ -7,7 +7,7 @@ import (
|
||||
"log"
|
||||
"math/big"
|
||||
|
||||
"../cnutil"
|
||||
"kevacoin.org/keva-stratum/v2/cnutil"
|
||||
)
|
||||
|
||||
type BlockTemplate struct {
|
||||
|
@ -6,7 +6,7 @@ import (
|
||||
"strings"
|
||||
"sync/atomic"
|
||||
|
||||
"../util"
|
||||
"kevacoin.org/keva-stratum/v2/util"
|
||||
)
|
||||
|
||||
var noncePattern *regexp.Regexp
|
||||
|
@ -10,8 +10,8 @@ import (
|
||||
"sync/atomic"
|
||||
"time"
|
||||
|
||||
"../cnutil"
|
||||
"../util"
|
||||
"kevacoin.org/keva-stratum/v2/cnutil"
|
||||
"kevacoin.org/keva-stratum/v2/util"
|
||||
)
|
||||
|
||||
type Job struct {
|
||||
|
@ -13,10 +13,10 @@ import (
|
||||
"sync/atomic"
|
||||
"time"
|
||||
|
||||
"../cnutil"
|
||||
"../pool"
|
||||
"../rpc"
|
||||
"../util"
|
||||
"kevacoin.org/keva-stratum/v2/cnutil"
|
||||
"kevacoin.org/keva-stratum/v2/pool"
|
||||
"kevacoin.org/keva-stratum/v2/rpc"
|
||||
"kevacoin.org/keva-stratum/v2/util"
|
||||
)
|
||||
|
||||
type StratumServer struct {
|
||||
|
@ -7,8 +7,8 @@ import (
|
||||
"time"
|
||||
"unicode/utf8"
|
||||
|
||||
"../cnutil"
|
||||
"../rpc"
|
||||
"kevacoin.org/keva-stratum/v2/cnutil"
|
||||
"kevacoin.org/keva-stratum/v2/rpc"
|
||||
)
|
||||
|
||||
var Diff1 = StringToBig("0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF")
|
||||
|
Loading…
Reference in New Issue
Block a user