Skip to content

Validate fetchHeight response height#10

Open
giwaov wants to merge 1 commit into
canopy-network:mainfrom
giwaov:validate-fetch-height-value
Open

Validate fetchHeight response height#10
giwaov wants to merge 1 commit into
canopy-network:mainfrom
giwaov:validate-fetch-height-value

Conversation

@giwaov

@giwaov giwaov commented Jul 6, 2026

Copy link
Copy Markdown

Summary

  • require fetchHeight responses to contain a non-negative integer height
  • reject fractional and negative height values as response validation errors
  • add RPC coverage for invalid height values

Tests

  • npx vitest run src/tests/rpc.test.ts
  • npm run build

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.

1 participant