Skip to content

Commit

Permalink
update: init ecc logger
Browse files Browse the repository at this point in the history
  • Loading branch information
smin-k committed Feb 15, 2024
1 parent 78396da commit a9251f2
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions consensus/eccpow/algorithm.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ type Mode uint
const (
epochLength = 30000 // Blocks per epoch
ModeNormal Mode = iota
//ModeShared
ModeShared
ModeTest
ModeFake
ModeFullFake
Expand Down Expand Up @@ -290,6 +290,9 @@ func MakeDecision_Seoul(header *types.Header, colInRow [][]int, outputWord []int
// packages.

func New(config Config, notify []string, noverify bool) *ECC {
if config.Log == nil {
config.Log = log.Root()
}
ecc := &ECC{
config: config,
update: make(chan struct{}),
Expand All @@ -300,7 +303,10 @@ func New(config Config, notify []string, noverify bool) *ECC {
fetchRateCh: make(chan chan uint64),
submitRateCh: make(chan *hashrate),
}
//ecc.remote = startRemoteSealer(ecc, notify, noverify)
if config.PowMode == ModeShared {
ecc.shared = sharedECC
}
ecc.remote = startRemoteSealer(ecc, notify, noverify)
return ecc
}

Expand Down

0 comments on commit a9251f2

Please sign in to comment.