Skip to content

Commit c593a67

Browse files
committed
add GetTwoWayPegData RPC
1 parent b23aca0 commit c593a67

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

proto/mainchain.proto

+14
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ service Mainchain {
4141
rpc GetBmmHStarCommitments(GetBmmHStarCommitmentsRequest)
4242
returns (GetBmmHStarCommitmentsResponse);
4343
rpc GetChainTip(GetChainTipRequest) returns (GetChainTipResponse);
44+
rpc GetTwoWayPegData(GetTwoWayPegDataRequest)
45+
returns (GetTwoWayPegDataResponse);
4446
rpc SubscribeEvents(SubscribeEventsRequest) returns (stream EventResponse);
4547
}
4648

@@ -73,6 +75,18 @@ message GetChainTipResponse {
7375
BlockHeaderInfo block_header_info = 1;
7476
}
7577

78+
message GetTwoWayPegDataRequest {
79+
bytes start_block_hash = 1;
80+
bytes end_block_hash = 2;
81+
}
82+
message GetTwoWayPegDataResponse {
83+
message ResponseItem {
84+
BlockHeaderInfo block_header_info = 1;
85+
BlockInfo block_info = 2;
86+
}
87+
repeated ResponseItem blocks = 1;
88+
}
89+
7690
message SubscribeEventsRequest {
7791
}
7892
message EventResponse {

0 commit comments

Comments
 (0)