Skip to content

Replica should forward write requests to stream source #2089

@Mirko-von-Leipzig

Description

@Mirko-von-Leipzig

See parent issue for full context.

Node's running in replica mode should forward tx and batch submissions to their block stream source.

This should include doing some basic request verification before forwarding.

  • Check reference block's hash, and that it exists.
    • Note: this introduces a possibility for a client desync if they previously queried the block from a different source i.e. this replica might be a block behind and therefore rejects this request. One solution is sticky connections at the load-balancer.
  • Check nullifiers don't already exist.
  • Check output note's don't already exist.
  • Submit to validator.
  • .. maybe something I've forgotten..
  • forward it

Metadata

Metadata

Assignees

Labels

No labels
No labels
No fields configured for Enhancement.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions