-
Notifications
You must be signed in to change notification settings - Fork 465
Error while using zeroEx.exchange.subscribe
: received log with same block number but index newer than previous index
#693
Comments
Seems like an ethereumjs-blockstream issue to me. How ofter does that happen? Do you use infura? |
Thanks for your reply! I get this every time I'm running my script on the first log received. I opened an issue in their repo: ethereumjs/ethereumjs-blockstream#17 |
So from the discussion in ethereumjs/ethereumjs-blockstream#17, it looks like you need to update the EDIT: |
Apparently a duplicate of ethereumjs/ethereumjs-blockstream#10, which you opened some time ago, @LogvinovLeon . So looks like |
I think Augur setup a bounty to get Geth/Parity to fix their JSON-RPC API so this can be fixed. I'm not sure what the status of that is though. |
I think I have a way to fix this without Geth/Parity adding the desired RPC method. Will try to get a new version out today. |
I believe I have a fix ready for |
Issue is fixed (mostly) in ethereumjs-blockstream v5.0.0. Note that ethereumjs/ethereumjs-blockstream#10 is still not fixed and can't be without https://eips.ethereum.org/EIPS/eip-234 being implemented. |
Fixed in latest version of our libraries. |
Hi 0x team,
might have found a bug that is described below. Thanks for investigating! Looking forward to v2 :)
Expected Behavior
Trying to listen to events emitted from
Exchange.sol
by using the 0x.js library and itszeroEx.exchange.subscribe
method. I think it should callback every time an event is emitted.Current Behavior
Subscription seems successful but once the first event is received my script fails with:
Steps to Reproduce (for bugs)
The code:
Context
see intro
Your Environment
0x.js
web3
The text was updated successfully, but these errors were encountered: