-
Notifications
You must be signed in to change notification settings - Fork 696
Sometimes lose array items #423
Comments
Is this too complicated - or too stupid question? |
@romanov-alex I think this is expected behaviour. Likely what is happening is the user is calling Please reopen if you think I've got something wrong here or if this is happening when valid input is supplied to |
Ah, I think I missed the part where @romanov-alex I'll see what I can do - at the moment this feels like a duplicate of #403, but I'm not 100% certain. I'm troubleshooting that one at the moment - will come back to this and see if the fix for that fixes this one. |
@romanov-alex are you using interval mining by any chance? |
@benjamincburns "interval mining" - are you about —blocktime flag? I always use auto-mining. I call functions manually from web interface. When I tested it I called about every 20-40 seconds. And there were calls to another contract (every 5 second). Most important things for me: is it problem with testrpc or not? I mean...will I get the same problem in real ethereum network? |
Anybody... |
Thanks @romanov-alex for reporting this issue. We tested the contract code snippet and was unable to reproduce the bug where |
I have found strange problem in my smart contract. I use testrpc (v4.1.3) and last MetaMask as local dev environment. Please, see code below (it is short version, just place with problem):
Often everything works fine:
but...
SOMETIMES I have next problem:
The same array length, different block numbers, two insertion events...
So...Sometimes it happens, sometimes everything works fine. I always have only one user, only I works with this smart-contract (I'm still developing it).
Why do I lose items from array? Is it problem in testrpc or something else?
The text was updated successfully, but these errors were encountered: