ethersphere / swarm

Swarm: Censorship resistant storage and communication infrastructure for a truly sovereign digital society
https://swarm.ethereum.org/
GNU Lesser General Public License v3.0
488 stars 112 forks source link

Watch chequebounced events and take action #1895

Open Eknir opened 4 years ago

Eknir commented 4 years ago

https://github.com/ethersphere/swarm/issues/1885 prevents a node from sending cheques that can be bounced. This issue is about the action which a node takes when the smart-contract of a peer emits a ChequeBounced event.

The proposed action is to disconnect.

To complete this issue, we will have to set up event-watchers for ChequeBounced events and take the appropriate action when an event fires.

Eknir commented 4 years ago

@ralph-pichler , what is the computational load of setting up an event-watcher per peer?

ralph-pichler commented 4 years ago

With the current go bindings this is only possible using eth_Subscribe over websockets, but RSK does not implement that yet.

holisticode commented 4 years ago

We need the blacklist for this. Postponed but needs to be implemented before main net launch.