question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Filtering with checksum addresses

See original GitHub issue

Cross-linked from: https://github.com/trufflesuite/ganache-cli/issues/494

Expected Behavior

  • A deployed contract is emitting logs.
  • A filter is created that specifies a from address using the checksum address format from EIP-55
  • The events are triggered in new blocks
  • A client requests new entries tied to the created filter
  • The logs are returned

Current Behavior

Everything as expected, except the last step: no logs are returned.

Note that if the lower-case address is used in the filter instead, that logs are returned. So all other steps appear to be configured correctly.

Possible Solution

Force addresses to lower-case in the filter before searching? (optionally, verifying checksums)

Steps to Reproduce (for bugs)

I’m cross-posting from a web3py bug report, which includes source: https://github.com/ethereum/web3.py/issues/674

Given the simplicity of the workaround, it seems that the problem should be easy to reproduce.

Context

Without this fix, ganache filters will appear broken in the next stable release of web3py, which is likely within a week or two. All other nodes appear to work as expected.

Your Environment

I’ll ask the original posters on the web3.py issue to fill in this info:

  • Version used:
  • Version of Truffle/Remix/Other tools used:
  • NodeJS Version: [ ] 6.x, [ ] 7.x (unsupported), [ ] 8.x, [ ] 9.x
  • Operating System and version (include distro if Linux):
  • Link to your project or repro gist:
  • Commit hash to use with above link for reproduction:
  • I intend to submit a pull request to fix this issue: [ ]

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:3
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
seesemichaeljcommented, Jun 27, 2018
0reactions
carvercommented, Nov 12, 2018

@Zatonskikh this is OT for this repository. I’ll give my first guess about what’s wrong below. If you have any more questions, I recommend opening an ethereum.stackexchange question or a new issue on ethereum/web3.py

Since you’re setting fromBlock='latest', you won’t see the event unless it was emitted in the very latest block.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Events filtering not working with EIP checksum addresses ...
@pipermerriam What is meant there is that events filtering is not working if EIP checksum address is provided there. The filter always returns ......
Read more >
Distributed Checksum Clearinghouses - dcc-servers.net
The Distributed Checksum Clearinghouses or DCC is an anti-spam content filter that runs on a variety of operating systems. The counts can be...
Read more >
K2289: Using advanced tcpdump filters - AskF5
Filtering for packets using specific IP addresses. You can configure filters for IP header properties using the same logic as the port ...
Read more >
Caveats With pt-table-checksum Using Row-Based ... - Percona
It's fairly obvious that the checksums need to be determined independently on each node, and so these inserts must be replicated as STATEMENT ......
Read more >
US7706409B2 - System and method for parsing, filtering, and ...
A system and method for parsing, filtering, and computing the checksum in a host Ethernet adapter (HEA) that is coupled to a host....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found