I am looking for method to quick chceck in which block variable was modified last. Assuming I have geth database synced in archive mode, that means I have all previous world states tries and accounts storages tries. How can I check this fast. Is there a way to do this not checking previous worldstates states and storage tries? Can I determine this block number looking only on bloom filters or whatever, more efficient than checking tries?

  • Does your contract emit an Event on storage modification? If so, then you can use bloom filters – Raghav Sood Jul 31 '18 at 11:54
  • Good to know thanks for answer, and is there a way to check this if contract does not emit events? – jabone Jul 31 '18 at 12:08
  • I don't think there's an easy way to do it. You would probably have to go block by block and search for transactions, since the bloom filters only filter for logged events, not transaction addresses. – Raghav Sood Jul 31 '18 at 12:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.