-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: pass WorkObject through to SubscribeNewHeads #39
Conversation
quai/filters/api.go
Outdated
headersSub := api.events.SubscribeNewHeads(headers) | ||
|
||
for { | ||
select { | ||
case h := <-headers: | ||
// Marshal the header data | ||
marshalHeader := h.RPCMarshalHeader() | ||
marshalHeader := h.Header().RPCMarshalHeader() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
delete ".Header()"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
@@ -361,7 +361,7 @@ func (es *EventSystem) handleTxsEvent(filters filterIndex, ev core.NewTxsEvent) | |||
|
|||
func (es *EventSystem) handleChainEvent(filters filterIndex, ev core.ChainEvent) { | |||
for _, f := range filters[BlocksSubscription] { | |||
f.headers <- ev.Block.Header() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
delete .Header()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
ba8108d
to
4794600
Compare
4794600
to
79f6eb5
Compare
@dominant-strategies/core-dev