Skip to content
This repository was archived by the owner on Oct 25, 2024. It is now read-only.

Conversation

@Ruteri
Copy link
Collaborator

@Ruteri Ruteri commented Apr 7, 2023

📝 Summary

Forces building on a single head. With how sse events are set up, as well as how proposers usually act, it's best to ignore blocks coming in after 4 seconds into the slot.
This might change in the future!

📚 References


@Ruteri Ruteri requested a review from avalonche April 7, 2023 14:59
b.slotAttrs = nil
b.slotCtx = slotCtx
b.slotCtxCancel = slotCtxCancel
if b.slotCtxCancel != nil {
Copy link
Contributor

Choose a reason for hiding this comment

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

shouldn't it check the payload is not already known before cancel?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It could, but it might just as well cancel anyway

b.slotCtx = slotCtx
b.slotCtxCancel = slotCtxCancel

for _, currentAttrs := range b.slotAttrs {
Copy link
Contributor

Choose a reason for hiding this comment

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

note for future clean up: this loop has no effect as slotAttrs = nil

@Ruteri Ruteri merged commit 840b3a8 into sse-subscription-multiple-beacon-endpoints Apr 10, 2023
@Ruteri Ruteri deleted the sse-multiple-beacons-single-head branch April 10, 2023 09:22
Ruteri added a commit that referenced this pull request Apr 10, 2023
* Add handling multiple beacon clients

* Initialize stop channel in builder.Builder

* fix withdrawals array pointer

* Build on a single head (#59)

* Build on a single head

* Forcibly stop building process for old sse events

---------

Co-authored-by: avalonche <[email protected]>
avalonche added a commit that referenced this pull request Apr 10, 2023
* Add SSE subscription to builder

* withdrawals marshalling

* add stop channel

* pr comments

* Add handling multiple beacon clients (#57)

* Add handling multiple beacon clients

* Initialize stop channel in builder.Builder

* fix withdrawals array pointer

* Build on a single head (#59)

* Build on a single head

* Forcibly stop building process for old sse events

---------

Co-authored-by: avalonche <[email protected]>

* linting

---------

Co-authored-by: Mateusz Morusiewicz <[email protected]>
avalonche added a commit that referenced this pull request Jul 6, 2023
* Add SSE subscription to builder

* withdrawals marshalling

* add stop channel

* pr comments

* Add handling multiple beacon clients (#57)

* Add handling multiple beacon clients

* Initialize stop channel in builder.Builder

* fix withdrawals array pointer

* Build on a single head (#59)

* Build on a single head

* Forcibly stop building process for old sse events

---------

Co-authored-by: avalonche <[email protected]>

* linting

---------

Co-authored-by: Mateusz Morusiewicz <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants