Feature Description
Audit all mock-submission branches. Ensure validation (signature, nonce, transfer policy) always runs; mock only replaces chain submit. Refuse to start with mock enabled when NODE_ENV=production.
Problem Statement
#937 reported mock mode bypassing validation. Current executeRelay validates first then mocks submit, but other code paths and deploy configs may still be unsafe. Need hard guarantees + tests.
Proposed Solution
- Startup guard: mock flag + production → fatal error.
- Single code path: validate → optional mock submit.
- Integration tests for flag matrix.
- Document env in relayer README and ops runbook.
Impact Area
Priority
Implementation Complexity
Related
#937
Feature Description
Audit all mock-submission branches. Ensure validation (signature, nonce, transfer policy) always runs; mock only replaces chain submit. Refuse to start with mock enabled when
NODE_ENV=production.Problem Statement
#937 reported mock mode bypassing validation. Current
executeRelayvalidates first then mocks submit, but other code paths and deploy configs may still be unsafe. Need hard guarantees + tests.Proposed Solution
Impact Area
Priority
Implementation Complexity
Related
#937