Browse Source

Neue Update-Netzwerkeinstellung (klassisch | mordor)

master
yuriy0803 5 years ago
parent
commit
0cbbd797b4
  1. 4
      api/server.go
  2. 8
      main.go
  3. 8
      payouts/payer.go
  4. 8
      payouts/unlocker.go
  5. 4
      payouts/unlocker_test.go
  6. 4
      policy/policy.go
  7. 6
      proxy/blocks.go
  8. 8
      proxy/config.go
  9. 4
      proxy/handlers.go
  10. 4
      proxy/miner.go
  11. 8
      proxy/proxy.go
  12. 2
      proxy/stratum.go
  13. 4
      rpc/rpc.go
  14. 2
      storage/redis.go
  15. 6
      util/util.go

4
api/server.go

@ -14,8 +14,8 @@ import (
"github.com/gorilla/mux" "github.com/gorilla/mux"
"github.com/robfig/cron" "github.com/robfig/cron"
"github.com/etclabscore/open-etc-pool/storage" "github.com/yuriy0803/open-etc-pool-friends/storage"
"github.com/etclabscore/open-etc-pool/util" "github.com/yuriy0803/open-etc-pool-friends/util"
) )
type ApiConfig struct { type ApiConfig struct {

8
main.go

@ -13,10 +13,10 @@ import (
"github.com/yvasiyarov/gorelic" "github.com/yvasiyarov/gorelic"
"github.com/etclabscore/open-etc-pool/api" "github.com/yuriy0803/open-etc-pool-friends/api"
"github.com/etclabscore/open-etc-pool/payouts" "github.com/yuriy0803/open-etc-pool-friends/payouts"
"github.com/etclabscore/open-etc-pool/proxy" "github.com/yuriy0803/open-etc-pool-friends/proxy"
"github.com/etclabscore/open-etc-pool/storage" "github.com/yuriy0803/open-etc-pool-friends/storage"
) )
var cfg proxy.Config var cfg proxy.Config

8
payouts/payer.go

@ -10,11 +10,11 @@ import (
"time" "time"
"sync" "sync"
"github.com/ethereum/go-ethereum/common/hexutil" "github.com/yuriy0803/go-ethereum/common/hexutil"
"github.com/etclabscore/open-etc-pool/rpc" "github.com/yuriy0803/open-etc-pool-friends/rpc"
"github.com/etclabscore/open-etc-pool/storage" "github.com/yuriy0803/open-etc-pool-friends/storage"
"github.com/etclabscore/open-etc-pool/util" "github.com/yuriy0803/open-etc-pool-friends/util"
) )
const txCheckInterval = 5 * time.Second const txCheckInterval = 5 * time.Second

8
payouts/unlocker.go

@ -9,11 +9,11 @@ import (
"strings" "strings"
"time" "time"
"github.com/ethereum/go-ethereum/common/math" "github.com/yuriy0803/go-ethereum/common/math"
"github.com/etclabscore/open-etc-pool/rpc" "github.com/yuriy0803/open-etc-pool-friends/rpc"
"github.com/etclabscore/open-etc-pool/storage" "github.com/yuriy0803/open-etc-pool-friends/storage"
"github.com/etclabscore/open-etc-pool/util" "github.com/yuriy0803/open-etc-pool-friends/util"
) )
type UnlockerConfig struct { type UnlockerConfig struct {

4
payouts/unlocker_test.go

@ -1,8 +1,8 @@
package payouts package payouts
import ( import (
"github.com/etclabscore/open-etc-pool/rpc" "github.com/yuriy0803/open-etc-pool-friends/rpc"
"github.com/etclabscore/open-etc-pool/storage" "github.com/yuriy0803/open-etc-pool-friends/storage"
"math/big" "math/big"
"os" "os"
"testing" "testing"

4
policy/policy.go

@ -9,8 +9,8 @@ import (
"sync/atomic" "sync/atomic"
"time" "time"
"github.com/etclabscore/open-etc-pool/storage" "github.com/yuriy0803/open-etc-pool-friends/storage"
"github.com/etclabscore/open-etc-pool/util" "github.com/yuriy0803/open-etc-pool-friends/util"
) )
type Config struct { type Config struct {

6
proxy/blocks.go

@ -7,10 +7,10 @@ import (
"strings" "strings"
"sync" "sync"
"github.com/ethereum/go-ethereum/common" "github.com/yuriy0803/go-ethereum/common"
"github.com/etclabscore/open-etc-pool/rpc" "github.com/yuriy0803/open-etc-pool-friends/rpc"
"github.com/etclabscore/open-etc-pool/util" "github.com/yuriy0803/open-etc-pool-friends/util"
) )
const maxBacklog = 3 const maxBacklog = 3

8
proxy/config.go

@ -1,10 +1,10 @@
package proxy package proxy
import ( import (
"github.com/etclabscore/open-etc-pool/api" "github.com/yuriy0803/open-etc-pool-friends/api"
"github.com/etclabscore/open-etc-pool/payouts" "github.com/yuriy0803/open-etc-pool-friends/payouts"
"github.com/etclabscore/open-etc-pool/policy" "github.com/yuriy0803/open-etc-pool-friends/policy"
"github.com/etclabscore/open-etc-pool/storage" "github.com/yuriy0803/open-etc-pool-friends/storage"
) )
type Config struct { type Config struct {

4
proxy/handlers.go

@ -6,8 +6,8 @@ import (
"strings" "strings"
"errors" "errors"
"github.com/etclabscore/open-etc-pool/rpc" "github.com/yuriy0803/open-etc-pool-friends/rpc"
"github.com/etclabscore/open-etc-pool/util" "github.com/yuriy0803/open-etc-pool-friends/util"
) )
// Allow only lowercase hexadecimal with 0x prefix // Allow only lowercase hexadecimal with 0x prefix

4
proxy/miner.go

@ -6,8 +6,8 @@ import (
"strconv" "strconv"
"strings" "strings"
"github.com/etclabscore/go-etchash" "github.com/yuriy0803/go-etchash"
"github.com/ethereum/go-ethereum/common" "github.com/yuriy0803/go-ethereum/common"
) )
var ecip1099FBlockClassic uint64 = 11700000 // classic mainnet var ecip1099FBlockClassic uint64 = 11700000 // classic mainnet

8
proxy/proxy.go

@ -13,10 +13,10 @@ import (
"github.com/gorilla/mux" "github.com/gorilla/mux"
"github.com/etclabscore/open-etc-pool/policy" "github.com/yuriy0803/open-etc-pool-friends/policy"
"github.com/etclabscore/open-etc-pool/rpc" "github.com/yuriy0803/open-etc-pool-friends/rpc"
"github.com/etclabscore/open-etc-pool/storage" "github.com/yuriy0803/open-etc-pool-friends/storage"
"github.com/etclabscore/open-etc-pool/util" "github.com/yuriy0803/open-etc-pool-friends/util"
) )
type ProxyServer struct { type ProxyServer struct {

2
proxy/stratum.go

@ -9,7 +9,7 @@ import (
"net" "net"
"time" "time"
"github.com/etclabscore/open-etc-pool/util" "github.com/yuriy0803/open-etc-pool-friends/util"
) )
const ( const (

4
rpc/rpc.go

@ -12,9 +12,9 @@ import (
"strings" "strings"
"sync" "sync"
"github.com/ethereum/go-ethereum/common/hexutil" "github.com/yuriy0803/go-ethereum/common/hexutil"
"github.com/etclabscore/open-etc-pool/util" "github.com/yuriy0803/open-etc-pool-friends/util"
) )
type RPCClient struct { type RPCClient struct {

2
storage/redis.go

@ -10,7 +10,7 @@ import (
"gopkg.in/redis.v3" "gopkg.in/redis.v3"
"github.com/etclabscore/open-etc-pool/util" "github.com/yuriy0803/open-etc-pool-friends/util"
) )
type Config struct { type Config struct {

6
util/util.go

@ -6,9 +6,9 @@ import (
"strconv" "strconv"
"time" "time"
"github.com/ethereum/go-ethereum/common" "github.com/yuriy0803/go-ethereum/common"
"github.com/ethereum/go-ethereum/common/hexutil" "github.com/yuriy0803/go-ethereum/common/hexutil"
"github.com/ethereum/go-ethereum/common/math" "github.com/yuriy0803/go-ethereum/common/math"
) )
var Ether = math.BigPow(10, 18) var Ether = math.BigPow(10, 18)

Loading…
Cancel
Save