Skip to content

fix: prune nested proofs to prevent header size error (#181)#228

Open
Harsh10022004 wants to merge 1 commit intostoracha:mainfrom
Harsh10022004:fix/issue-181-prune-delegations
Open

fix: prune nested proofs to prevent header size error (#181)#228
Harsh10022004 wants to merge 1 commit intostoracha:mainfrom
Harsh10022004:fix/issue-181-prune-delegations

Conversation

@Harsh10022004
Copy link

Description

Fixes #181.

This PR addresses the "maximum agent message header size exceeded" error that occurs during delegation storage (access/delegate). The crash was caused by the system including the full history of nested proofs in the invocation header.

Solution

  • Implemented a pruning mechanism to adhere to the requested fix of stripping unnecessary blocks in the Guppy client.
  • Added the pruneDelegation helper function which ensures only the single root block of the delegation is included in the message, significantly reducing payload size and preventing the crash.

Verification

Tested by running existing and new regression tests within the package.

Command:

go test -v ./pkg/client -run TestAccessDelegate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Too many spaces causes maximum agent message header size exceeded

1 participant