Skip to content

Implement SeekInfoNewestHeader in delivery requester#5413

Open
siewcapital wants to merge 1 commit intohyperledger:mainfrom
siewcapital:fix/seekinfo-newest-header
Open

Implement SeekInfoNewestHeader in delivery requester#5413
siewcapital wants to merge 1 commit intohyperledger:mainfrom
siewcapital:fix/seekinfo-newest-header

Conversation

@siewcapital
Copy link

What this PR does

  • implements DeliveryRequester.SeekInfoNewestHeader() by creating and signing a DELIVER_SEEK_INFO envelope
  • uses Start=Newest and Stop=Newest so the request returns exactly the newest header
  • sets ContentType=HEADER_WITH_SIG and keeps Behavior=BLOCK_UNTIL_READY
  • adds unit test coverage for the new method and verifies the encoded SeekInfo fields

Why

SeekInfoNewestHeader() was still returning "not implemented yet", which prevented callers from requesting a single latest header through DeliveryRequester.

Testing

  • go test ./common/deliverclient/blocksprovider -run TestDeliveryRequester -count=1
  • go test ./common/deliverclient/blocksprovider -count=1

@siewcapital siewcapital requested a review from a team as a code owner March 7, 2026 15:37
@pfi79
Copy link
Contributor

pfi79 commented Mar 7, 2026

Looks fine but you need to append your signed-off-by

https://www.secondstate.io/articles/dco/

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