-
Notifications
You must be signed in to change notification settings - Fork 110
Don't let swarm cause ChequeBounced events #1885
Comments
What do you mean by this?
As far as I know, we don't request cheques anymore.
We should for sure look into doing something about these errors. I am not fully convinced that shutting the node down is the answer here, though. Is it too harsh? |
If the chequebook is presented a cheque which he cannot pay out (insufficient liquid balance), a
Error on my side. I meant
It could be too harsh. We want to prevent the |
I think that doing something with a This issue to me sounds like preventing a node from emitting bad cheques. A counterpart to this would be disconnecting from nodes that are known to write bad cheques.
Calling As you very rightly say, we could allow traffic in one direction. I would invite more opinions on this matter: whether to leave this for a future issue or implement it now. Apart from this, I have 2 questions:
|
This issue is indeed about preventing a node from writing bad cheques. Created an issue for taking action when a node notices that a peer wrote a bad cheque. #1895
Yes. Not allowing to call add with a negative number is indeed not correct. Calling Add with a negative number is a consequence of something, and this consequence we should not allow: sending chunk requests.
No, even bad cheques will be accepted as a
We should at least never allow a node to cross the payment threshold (as no cheques can be send). I am putting this on the agenda for the research office hours, but I would propose that for now, we just stop SWAP. |
A Swarm never trigger a
ChequeBounced
event on the chequebook smart-contract side. Currently, a node will happily boot up and allow you to send cheques with an unfunded chequebook. This will cause errors on the node who received your cheques and tries to cash them out.We can solve this issue by shutting down the node when the
availableBalance
is less or equal than thepaymentThreshold
.dependent upon #1884
The text was updated successfully, but these errors were encountered: