Skip to content

Conversation

@AaronGoldman
Copy link
Contributor

No description provided.

Comment on lines +71 to +73
* `blockNumber` is the ETH blockNumber from the after header or a prev time event.
* If the after header is not present then follow the prev cain to a time event.
* If there is no time event in the chain then use 0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we use block_timestamp instead of blockNumber? This would give us flexibility in the future if we wanted to support other ways than ethereum blocks as a source of truth for this value.

* `separator_value` is the value in the field specified by the separator_key
* `context_key` is the header field that has the context_value in it.
* `context_value` is the first 8 bytes of the value in the field specified by the context_key.
* `blockNumber` is the ETH blockNumber from the after header or a prev time event.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"after header" isn't really defined yet (CIP is pending) does it make sense to mention it here? Maybe we need to merge the after CIP before this PR?

Comment on lines 75 to -69
* `init_event_cid_bytes` is the CID of the first Event of the this stream.
* `event_height` is the "height" of the event InitEvent. For InitEvents this value is `0` else `prev.event_height + 1`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given that we are removing event_height, is init_event_cid_bytes still relevant? Seems like this would sort multiple events from the same stream next to each other given that they happen at the same ethereum block. There would be no specific logic to the order between these events though.
Seems to me that having the InitEvent hash here adds marginal value given that we sort by controller before that?

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

Successfully merging this pull request may close these issues.

3 participants