autonomys / subspace

Subspace Network reference implementation
https://subspace.network
380 stars 243 forks source link

Deny unsafe object mapping subscriptions #3118

Closed teor2345 closed 3 weeks ago

teor2345 commented 3 weeks ago

Previously, the object mapping RPC subscriptions would allow any account to connect.

This PR restricts them to safe accounts.

I'm pretty sure we want this change, because these subscriptions can generate a large amount of mappings per block, which would easily overload a public RPC server.

Code contributor checklist: