mirror of
https://source.quilibrium.com/quilibrium/ceremonyclient.git
synced 2025-01-12 16:55:18 +00:00
adjust worker indices for unusual configurations
This commit is contained in:
parent
5230ceb413
commit
ff8af1a173
@ -36,5 +36,5 @@ func FormatVersion(version []byte) string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func GetPatchNumber() byte {
|
func GetPatchNumber() byte {
|
||||||
return 0x05
|
return 0x06
|
||||||
}
|
}
|
||||||
|
@ -202,13 +202,15 @@ func NewDataWorkerIPCServer(
|
|||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
indices := p2p.GetOnesIndices(p2p.GetBloomFilter(digest, 1024, 64))
|
||||||
|
|
||||||
return &DataWorkerIPCServer{
|
return &DataWorkerIPCServer{
|
||||||
listenAddrGRPC: listenAddrGRPC,
|
listenAddrGRPC: listenAddrGRPC,
|
||||||
logger: logger,
|
logger: logger,
|
||||||
coreId: coreId,
|
coreId: coreId,
|
||||||
prover: prover,
|
prover: prover,
|
||||||
indices: []int{
|
indices: []int{
|
||||||
p2p.GetOnesIndices(p2p.GetBloomFilter(digest, 1024, 64))[coreId%64],
|
indices[int(coreId)%len(indices)],
|
||||||
},
|
},
|
||||||
parentProcessId: parentProcessId,
|
parentProcessId: parentProcessId,
|
||||||
}, nil
|
}, nil
|
||||||
|
Loading…
Reference in New Issue
Block a user