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
See parent issue for full context.
Node's running in
replicamode should forward tx and batch submissions to their block stream source.This should include doing some basic request verification before forwarding.