Skip to content

Add StreamAllTransactions to notification service API#117

Merged
cendhu merged 1 commit into
hyperledger:mainfrom
liran-funaro:notify-new-api
Jun 4, 2026
Merged

Add StreamAllTransactions to notification service API#117
cendhu merged 1 commit into
hyperledger:mainfrom
liran-funaro:notify-new-api

Conversation

@liran-funaro

Copy link
Copy Markdown
Contributor

Type of change

  • New feature

Description

  • Add StreamAllTransactions to notification service API

Related issues

@liran-funaro liran-funaro requested a review from cendhu June 3, 2026 14:14
@liran-funaro liran-funaro added the enhancement New feature or request label Jun 3, 2026
@coveralls

coveralls commented Jun 3, 2026

Copy link
Copy Markdown

Coverage Status

coverage: 82.691% (+0.03%) from 82.663% — liran-funaro:notify-new-api into hyperledger:main

Signed-off-by: Liran Funaro <liran.funaro@gmail.com>
Comment thread api/committerpb/notify.proto
@liran-funaro liran-funaro requested review from ale-linux and cendhu June 3, 2026 15:16

@cendhu cendhu left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM.

Comment on lines +53 to +81

// StreamAllRequest is sent by clients to subscribe to all committed transactions.
message StreamAllRequest {
// Filter by namespace IDs (OR logic: transaction touches ANY of these namespaces).
// Empty list means no namespace filtering (all namespaces included).
repeated string filter_namespaces = 1;

// Filter by transaction status (multiple statuses can be specified).
// Empty list means no status filtering (all statuses included).
repeated Status filter_status = 2;

// Include transaction content (read/write sets) in the response.
// Default: false (only transaction reference and status).
bool include_read_write_sets = 3;

// Include endorsements in the response.
// Default: false (only transaction reference and status).
bool include_endorsements = 4;
}

// TxEventBatch contains a batch of transaction events from a single block.
message TxEventBatch {
// The block number from which these transactions originated.
uint64 block_number = 1;

// List of transaction events (may be filtered based on request).
repeated TxEvent events = 2;
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Maybe we can rename this to StreamRequest without All as we have filters.

@cendhu cendhu merged commit cb25c7c into hyperledger:main Jun 4, 2026
6 checks passed
@liran-funaro liran-funaro deleted the notify-new-api branch June 4, 2026 07:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants