fix: remove unnecessary prefix from prover ref

This commit is contained in:
Cassandra Heart 2025-10-09 22:45:36 -05:00
parent 30a76203d3
commit 32a7824ec3
No known key found for this signature in database
GPG Key ID: 371083BFA6C240AA
2 changed files with 4 additions and 4 deletions

View File

@ -1437,7 +1437,7 @@ func (r *ProverRegistry) processProverChange(
}
// Find the prover this allocation belongs to
if proverInfo, exists := r.proverCache[string(proverRef[32:])]; exists {
if proverInfo, exists := r.proverCache[string(proverRef)]; exists {
found := false
for i, allocation := range proverInfo.Allocations {
if bytes.Equal(allocation.ConfirmationFilter, confirmationFilter) {
@ -1487,7 +1487,7 @@ func (r *ProverRegistry) processProverChange(
if mappedStatus == consensus.ProverStatusActive &&
len(confirmationFilter) > 0 {
if err := r.addProverToTrie(
proverRef[32:],
proverRef,
proverInfo.PublicKey,
confirmationFilter,
frameNumber,
@ -1498,7 +1498,7 @@ func (r *ProverRegistry) processProverChange(
mappedStatus == consensus.ProverStatusUnknown {
// Remove from filter trie if not active
if err := r.removeProverFromTrie(
proverRef[32:],
proverRef,
confirmationFilter,
); err != nil {
return errors.Wrap(

View File

@ -365,7 +365,7 @@ func (p *ProverJoin) Materialize(
intrinsics.GLOBAL_INTRINSIC_ADDRESS[:],
"allocation:ProverAllocation",
"Prover",
slices.Concat(intrinsics.GLOBAL_INTRINSIC_ADDRESS[:], proverAddress),
proverAddress,
allocationTree,
)
if err != nil {