-
Notifications
You must be signed in to change notification settings - Fork 1.7k
dev chain compatibility break in dev chain between v2.5.8-stable and v2.5.7-stable #11283
Comments
Can you provide a step-by-step description of how to repeat this? I don't understand exactly what commands you are running and what the expected output is. |
I run my service with a docker-compose file like that :
Then using web3j I send a first transaction :
The transaction fo the test fail and it's not the case if I run the exact same docker-compose on the version 2.5.7-stable :
The environment is well clean up between both run. I sign in both time using parity dev chain default privateKey (public 0x00a329c0648769A73afAc7F9381E08FB43dBEA72) By decoding the transaction I see that they have a identical chain ID:
The destination is different as it is generated by the test but don't matter in this case. All the rest is the same as well as I use docker-compose for the test and do a "docker-compose down -v; docker-compose up" between both tests. According to the list of changes I did not found the reason yet but it prevent me form upgrading for the dev chain, blocked on that since days. If any one can reproduce that bug it should be quick with the docker-compose I provide and see if it fail for you so if it's the case we can fix this together. |
Both tx are exactly the same, signature included, it work on 2.5.7 not on 2.5.8! bad :
good :
It happen at the exact same moment after reproducing it in a clean environment... |
Hey @tomusdrw this is a weird one, the transaction is successfully imported into the queue only to be marked as invalid immediately after. Under what conditions can this happen? |
@jimy74 It seems that you use @seunlanlege I believe it might be related to the changes we did to |
It is the first transaction I sent on the node... the transaction count is 0 and no pending txs (I though it was fixed on master but it is not) No solution found yet, coming back with more logs soon |
@tomusdrw Yes I use getTransactionCount to get the nonce, but anyway it bug at the first transaction ever broadcasted and then it wait that is is included in a block (or fail in this case). More logs with miner=debug :
WOW! What is the chainId now?! Why does the chainId 11 work fine with the 2.5.7 but not with the 2.5.8?! I retry by running parity with --network-id 11 and the issue is still the same! |
could be related to #10954 |
Wow it is because of that it was working with whatever chainId I was putting before.
So it is fixed and it we using the wrong chainID so I get rejected after your fix. A big thanks to you all, sorry for disturging, this change of behavior was look like strange but it is not buggy but just better! Good job guys and thanks a lot! |
Transactions with invalid |
I'm using the dev chain for tests with the version v2.5.7-stable and it work well to send a tx from the default coinbase (nonce 0, chainId 11, ...).
The exact same test by starting parity in the exact same way do the error "Transaction marked invalid". (the sender have funds as it is asserted before) in my script.
Way to start parity :
parity --chain dev --jsonrpc-cors all --jsonrpc-interface all --jsonrpc-apis all --jsonrpc-hosts all
--tracing on --pruning archive -l rpc=trace,own_tx=trace
It's the proof that the compatibility is broken between the two releases for this feature.
Any guess how to fix that?
The text was updated successfully, but these errors were encountered: