Skip to content

adjusted the vspc-v2 RPC data structure#12

Closed
5bb55b wants to merge 1 commit intoD-Stacks:vspcc-v2-guttedfrom
5bb55b:vspcc-v2-gutted
Closed

adjusted the vspc-v2 RPC data structure#12
5bb55b wants to merge 1 commit intoD-Stacks:vspcc-v2-guttedfrom
5bb55b:vspcc-v2-gutted

Conversation

@5bb55b
Copy link

@5bb55b 5bb55b commented Sep 20, 2025

Adjusted the RPC data structure so that "mergesetBlockAcceptanceData" no longer contains "acceptedTransactions" but makes them parallel, and added "transactionIds".

message RpcAcceptanceDataVerbosity {
  optional RpcBlockHeaderVerbosity acceptingChainHeaderVerbosity = 1;
  optional RpcBlockHeaderVerbosity mergedHeaderVerbosity = 2;
  optional RpcTransactionVerbosity acceptedTransactionsVerbosity = 4;
}

message RpcBlockHeaderVerbosity {
  // ..
  optional bool includeTransactionIds = 14;
}

// removed message RpcMergesetBlockAcceptanceDataVerbosity {..

message RpcAcceptanceData {
  optional RpcBlockHeader acceptingChainHeader = 1;
  repeated RpcMergesetBlockAcceptanceData mergesetBlockAcceptanceData = 20;
  repeated RpcTransaction acceptedTransactions = 21; // accepted tx data list in each vspcs
}

message RpcMergesetBlockAcceptanceData {
  optional RpcBlockHeader mergedHeader = 2;
  repeated string transactionIds = 4; // tx ids in each merged blocks (include unaccepted)
}

TODO: Add block_hash/block_time to each accepted transaction..
TODO: Maybe need to evaluate the appropriate batch_size.

@5bb55b 5bb55b closed this Feb 7, 2026
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.

1 participant