Skip to content
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

Subscribing to a log/filter in geth returns less results than Parity #3502

Closed
slothbag opened this issue Jan 1, 2017 · 2 comments
Closed
Assignees

Comments

@slothbag
Copy link

slothbag commented Jan 1, 2017

System information

Geth version: 1.5.5
OS & Version: Windows

Expected behaviour

Subscribing to the ENS SimplifiedHashRegistry ("0xc68de5b43c3d980b0c110a77a5f78d3c4c4d63b4").AuctionStarted() event log in geth returns 3 fewer AuctionStarted events than Parity. At the time of lodging this issue its 420 for Geth and 423 for Parity.

Actual behaviour

Geth not returning some event logs, particularly the first one.

Steps to reproduce the behaviour

Subscribe to event listing above. Using ABI defined in https://github.com/ethereum/ens/blob/master/ensutils.js

@slothbag slothbag closed this as completed Jan 2, 2017
@slothbag slothbag reopened this Jan 2, 2017
@bas-vk bas-vk self-assigned this Jan 3, 2017
@bas-vk
Copy link
Member

bas-vk commented Jan 3, 2017

Could you run the following script and see which logs are missing?

https://gist.github.com/bas-vk/299f4a686b66a22cf87302c561ee5866

The script assumes geth is running on http://localhost:8545 and parity on http://localhost:8546 and is synced >= 275836 (on ropsten).

The dumped logs contain a tx hash. Could you see if you could fetch the receipt for these transactions and see if the receipt does contain these missing logs?

@slothbag
Copy link
Author

slothbag commented Jan 3, 2017

         geth logs: 442
       parity logs: 445
  unique geth logs: 0
unique parity logs: 3
Unique Geth logs:

Unique Parity logs:
{"address":"0xc68de5b43c3d980b0c110a77a5f78d3c4c4d63b4","blockHash":"0xa42915c81fbdfbb67483d83d49c34f48caf3200c6e938a42ef6d1086f845c7ab","blockNumber":91074,"data":"0x00000000000000000000000000000000000000000000000000000000584cc64b","index":0,"removed":false,"topics":["0x87e97e825a1d1fa0c54e1d36c7506c1dea8b1efd451fe68b000cf96f7cf40003","0x5849a291f804589bb4aef7dd7f3f84f7d63468fb3fe7d77eb0864fe12606e929"],"txHash":"0x72a394e0198fd6dc9e92841c781ea7f1b477e5297a7b165e903d56a82102a275","txIndex":0}
{"address":"0xc68de5b43c3d980b0c110a77a5f78d3c4c4d63b4","blockHash":"0x42bbe35a3a8249d3e0062252f4fd0caf3427be707a5a5a3eaac0052cce42b05a","blockNumber":165856,"data":"0x00000000000000000000000000000000000000000000000000000000585cfa8d","index":5,"removed":false,"topics":["0x87e97e825a1d1fa0c54e1d36c7506c1dea8b1efd451fe68b000cf96f7cf40003","0x5cd1c2cc1ca1a67ad04dae522c99dd02d0132fb2636e21fc9cfe920fec04b396"],"txHash":"0x3c975bcd7b539d092b2c72d2e91738505b01a971623c82cea45b16559375273c","txIndex":5}
{"address":"0xc68de5b43c3d980b0c110a77a5f78d3c4c4d63b4","blockHash":"0x192211b4eb5e394b8f9d41cc6a0727b4596315536464f25dad4a850835ef6956","blockNumber":25916,"data":"0x000000000000000000000000000000000000000000000000000000005847eaee","index":6,"removed":false,"topics":["0x87e97e825a1d1fa0c54e1d36c7506c1dea8b1efd451fe68b000cf96f7cf40003","0x36940f34a2ec6afe46b7db53e6611470cd76c4f5999209a04a670682e2c33f75"],"txHash":"0xe9ecaaadb6aca7f49bad1ae666cc1531bffd40566ce92dc0c1f7db40fa05bbe6","txIndex":2}
> eth.getTransactionReceipt("0x72a394e0198fd6dc9e92841c781ea7f1b477e5297a7b165e903d56a82102a275")
{
  blockHash: "0xa42915c81fbdfbb67483d83d49c34f48caf3200c6e938a42ef6d1086f845c7ab",
  blockNumber: 91074,
  contractAddress: null,
  cumulativeGasUsed: 76955,
  from: "0xa43fc9fce5fc63e67b9626d285551c7f1eb4a71c",
  gasUsed: 76955,
  logs: [{
      address: "0xc68de5b43c3d980b0c110a77a5f78d3c4c4d63b4",
      blockHash: "0xa42915c81fbdfbb67483d83d49c34f48caf3200c6e938a42ef6d1086f845c7ab",
      blockNumber: 91074,
      data: "0x00000000000000000000000000000000000000000000000000000000584cc64b",
      logIndex: 0,
      removed: false,
      topics: ["0x87e97e825a1d1fa0c54e1d36c7506c1dea8b1efd451fe68b000cf96f7cf40003", "0x5849a291f804589bb4aef7dd7f3f84f7d63468fb3fe7d77eb0864fe12606e929"],
      transactionHash: "0x72a394e0198fd6dc9e92841c781ea7f1b477e5297a7b165e903d56a82102a275",
      transactionIndex: 0
  }],
  logsBloom: "0x00000000000000000000000000000000000000080000000000000000004000000000000000000100000000000200000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000100000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000001000000000000",
  root: "0xb57e3b33357480e1408e0d45168ef9a3d3f8db3481e27171f0d59bd99e7745b5",
  to: "0xc68de5b43c3d980b0c110a77a5f78d3c4c4d63b4",
  transactionHash: "0x72a394e0198fd6dc9e92841c781ea7f1b477e5297a7b165e903d56a82102a275",
  transactionIndex: 0
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants