New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Raiden crashes with "Deposit amount decreased" #3135
Comments
I had the same issue at the ETHSingapore hackathon. Happened on a newly registered token network, when opening the first channel. Worked after 3 iterations |
Thank you @arsenyjin -- this gives a hint as to what the reason for the bug may be. Do you by any chance have any logs? |
Weird thing here is, that for me it only happened the first time I opened a channel in a newly registered token network. In this case the crash kept happening over and over again. |
I guess I posted the logs in the issue #3139 |
@arsenyjin you posted 43 logs in that zip. Can you by any chance help us narrow it down by telling us which are relevant? |
In development mode we unfortunately seem to still have limits as we can see from the code https://github.com/raiden-network/raiden-contracts/blob/7105cf818fc290107ad48df9497bddcdec5c540e/raiden_contracts/contracts/TokenNetwork.sol of what is probably the pre_limits contracts. The fix for now, is to also take that limit into account at development mode and not allow the client to send a transaction when the token amount is above the limit that development mode contracts have. Fixes raiden-network#3135
In development mode we unfortunately seem to still have limits as we can see from the code https://github.com/raiden-network/raiden-contracts/blob/7105cf818fc290107ad48df9497bddcdec5c540e/raiden_contracts/contracts/TokenNetwork.sol of what is probably the pre_limits contracts. The fix for now, is to also take that limit into account at development mode and not allow the client to send a transaction when the token amount is above the limit that development mode contracts have. Fixes raiden-network#3135
In development mode we unfortunately seem to still have limits as we can see from the code https://github.com/raiden-network/raiden-contracts/blob/7105cf818fc290107ad48df9497bddcdec5c540e/raiden_contracts/contracts/TokenNetwork.sol of what is probably the pre_limits contracts. The fix for now, is to also take that limit into account at development mode and not allow the client to send a transaction when the token amount is above the limit that development mode contracts have. Fixes raiden-network#3135
In development mode we unfortunately seem to still have limits as we can see from the code https://github.com/raiden-network/raiden-contracts/blob/7105cf818fc290107ad48df9497bddcdec5c540e/raiden_contracts/contracts/TokenNetwork.sol of what is probably the pre_limits contracts. The fix for now, is to also take that limit into account at development mode and not allow the client to send a transaction when the token amount is above the limit that development mode contracts have. Fixes raiden-network#3135
In development mode we unfortunately seem to still have limits as we can see from the code https://github.com/raiden-network/raiden-contracts/blob/7105cf818fc290107ad48df9497bddcdec5c540e/raiden_contracts/contracts/TokenNetwork.sol of what is probably the pre_limits contracts. The fix for now, is to also take that limit into account at development mode and not allow the client to send a transaction when the token amount is above the limit that development mode contracts have. Fixes raiden-network#3135
In development mode we unfortunately seem to still have limits as we can see from the code https://github.com/raiden-network/raiden-contracts/blob/7105cf818fc290107ad48df9497bddcdec5c540e/raiden_contracts/contracts/TokenNetwork.sol of what is probably the pre_limits contracts. The fix for now, is to also take that limit into account at development mode and not allow the client to send a transaction when the token amount is above the limit that development mode contracts have. Fixes raiden-network#3135
In development mode we unfortunately seem to still have limits as we can see from the code https://github.com/raiden-network/raiden-contracts/blob/7105cf818fc290107ad48df9497bddcdec5c540e/raiden_contracts/contracts/TokenNetwork.sol of what is probably the pre_limits contracts. The fix for now, is to also take that limit into account at development mode and not allow the client to send a transaction when the token amount is above the limit that development mode contracts have. Fixes raiden-network#3135
In development mode we unfortunately seem to still have limits as we can see from the code https://github.com/raiden-network/raiden-contracts/blob/7105cf818fc290107ad48df9497bddcdec5c540e/raiden_contracts/contracts/TokenNetwork.sol of what is probably the pre_limits contracts. The fix for now, is to also take that limit into account at development mode and not allow the client to send a transaction when the token amount is above the limit that development mode contracts have. Fixes raiden-network#3135
In development mode we unfortunately seem to still have limits as we can see from the code https://github.com/raiden-network/raiden-contracts/blob/7105cf818fc290107ad48df9497bddcdec5c540e/raiden_contracts/contracts/TokenNetwork.sol of what is probably the pre_limits contracts. The fix for now, is to also take that limit into account at development mode and not allow the client to send a transaction when the token amount is above the limit that development mode contracts have. Fixes raiden-network#3135
In development mode we unfortunately seem to still have limits as we can see from the code https://github.com/raiden-network/raiden-contracts/blob/7105cf818fc290107ad48df9497bddcdec5c540e/raiden_contracts/contracts/TokenNetwork.sol of what is probably the pre_limits contracts. The fix for now, is to also take that limit into account at development mode and not allow the client to send a transaction when the token amount is above the limit that development mode contracts have. Fixes raiden-network#3135
In development mode we unfortunately seem to still have limits as we can see from the code https://github.com/raiden-network/raiden-contracts/blob/7105cf818fc290107ad48df9497bddcdec5c540e/raiden_contracts/contracts/TokenNetwork.sol of what is probably the pre_limits contracts. The fix for now, is to also take that limit into account at development mode and not allow the client to send a transaction when the token amount is above the limit that development mode contracts have. Fixes raiden-network#3135
In development mode we unfortunately seem to still have limits as we can see from the code https://github.com/raiden-network/raiden-contracts/blob/7105cf818fc290107ad48df9497bddcdec5c540e/raiden_contracts/contracts/TokenNetwork.sol of what is probably the pre_limits contracts. The fix for now, is to also take that limit into account at development mode and not allow the client to send a transaction when the token amount is above the limit that development mode contracts have. Fixes raiden-network#3135
In development mode we unfortunately seem to still have limits as we can see from the code https://github.com/raiden-network/raiden-contracts/blob/7105cf818fc290107ad48df9497bddcdec5c540e/raiden_contracts/contracts/TokenNetwork.sol of what is probably the pre_limits contracts. The fix for now, is to also take that limit into account at development mode and not allow the client to send a transaction when the token amount is above the limit that development mode contracts have. Fixes raiden-network#3135
In development mode we unfortunately seem to still have limits as we can see from the code https://github.com/raiden-network/raiden-contracts/blob/7105cf818fc290107ad48df9497bddcdec5c540e/raiden_contracts/contracts/TokenNetwork.sol of what is probably the pre_limits contracts. The fix for now, is to also take that limit into account at development mode and not allow the client to send a transaction when the token amount is above the limit that development mode contracts have. Fixes raiden-network#3135
In development mode we unfortunately seem to still have limits as we can see from the code https://github.com/raiden-network/raiden-contracts/blob/7105cf818fc290107ad48df9497bddcdec5c540e/raiden_contracts/contracts/TokenNetwork.sol of what is probably the pre_limits contracts. The fix for now, is to also take that limit into account at development mode and not allow the client to send a transaction when the token amount is above the limit that development mode contracts have. Fixes raiden-network#3135
This is the stacktrace:
This is the code at that time: raiden/raiden/network/proxies/token_network.py Lines 1149 to 1150 in 786347b
That code was executed after the transaction was sent and mined, and the receipt result was a failure. These are the logs relevant for the deposit. The transaction pointed above if for a These are the values used then: >>> tn.functions.deposit_limit().call()
100000000000000000000
>>> int('00000000000000000000000000000000000000000000021e19e0c9bab2400000', 16)
10000000000000000000000 The first is the deposit_limit set in the smart contract. The later is the value given in the transaction. So, the problem was this require |
Problem Definition
This was seen only once by @czepluch during trying out latest nightly.
Network was Kovan.
Logs are here
The failing
setTotalDeposit()
transaction is hereTask
Investigate to see why this can be happening and fix it.
The text was updated successfully, but these errors were encountered: