adjust worker indices for unusual configurations

This commit is contained in:
Cassandra Heart 2024-10-17 00:47:12 -05:00
parent 5230ceb413
commit ff8af1a173
No known key found for this signature in database
GPG Key ID: 6352152859385958
2 changed files with 4 additions and 2 deletions

View File

@ -36,5 +36,5 @@ func FormatVersion(version []byte) string {
}
func GetPatchNumber() byte {
return 0x05
return 0x06
}

View File

@ -202,13 +202,15 @@ func NewDataWorkerIPCServer(
panic(err)
}
indices := p2p.GetOnesIndices(p2p.GetBloomFilter(digest, 1024, 64))
return &DataWorkerIPCServer{
listenAddrGRPC: listenAddrGRPC,
logger: logger,
coreId: coreId,
prover: prover,
indices: []int{
p2p.GetOnesIndices(p2p.GetBloomFilter(digest, 1024, 64))[coreId%64],
indices[int(coreId)%len(indices)],
},
parentProcessId: parentProcessId,
}, nil