1

If I do a fast sync when connecting to Ethereum the first time, will all past Events (written into smart contracts) be downloaded along with the block headers?

  • 1
    Possible duplicate of What is Geth's "fast" sync, and why is it faster? – lungj Dec 25 '17 at 21:06
  • 1
    Past answers haven't mentioned Events – GusGorman402 Dec 25 '17 at 21:18
  • The answer (and PR) states that the blocks and transaction receipts (and nothing else) are downloaded. So it answered, indirectly. It is my understanding that transaction receipts contain events so the answer, in that case, is yes. If you edit your question to ask whether transaction receipts contain events, I don't think that would be a duplicate question. – lungj Dec 25 '17 at 21:49
  • @lungj That's not fair. The 'duplicate' flagging is about duplicate questions, not about duplicate answer. It's irrelevant that the answer to this question happens to be contained in the answer to a completely different question. That question has a completely different goal from this one. We want people on Google to find answers to questions easily without having to read completely different Q&A's. – Jesse Busman Dec 25 '17 at 22:29
  • @JesseBusman I personally don't see how the question as originally posed is materially different." What is X?" vs. what "What does X do?" when X relates to the action of X sounds the same to me. E.g., "What is an actor?" vs. "What does an actor do?" But I guess it's just me. In any case, if the answers to both are the same, doesn't it make sense to close the question as duplicate so contributors can add to the original question? There's a delete question feature for questions that are entirely redundant. – lungj Dec 25 '17 at 22:37
2

Yes. I added tags contract design and solidity because emitting events correctly is crucial for clients that depend on event logs to sync up with the contract state.

Yes, event emissions will arrive as expected.

Hope it helps.

  • Yes. I am about to resync again because my archival node is running out of SSD space. And I use events for queries, such as select all token transfers that happen from block 1 until block 1000. – GusGorman402 Dec 26 '17 at 0:39

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.