We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 810ddaa commit ef4006cCopy full SHA for ef4006c
engine/execution/ingestion/throttle_test.go
@@ -242,3 +242,13 @@ func (h *headerStore) Store(proposal *flow.ProposalHeader) error {
242
func (h *headerStore) ProposalByBlockID(blockID flow.Identifier) (*flow.ProposalHeader, error) {
243
return nil, nil
244
}
245
+
246
+func (h *headerStore) ByView(view uint64) (*flow.Header, error) {
247
+ // Find header with matching view
248
+ for _, header := range h.byID {
249
+ if header.View == view {
250
+ return header, nil
251
+ }
252
253
+ return nil, fmt.Errorf("no header found for view %d", view)
254
+}
0 commit comments