Skip to content

Commit b612458

Browse files
committed
refactor AckBundles
1 parent 0ea2809 commit b612458

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

proto/cusf/mainchain/v1/mainchain.proto

+12-10
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,6 @@ message BlockInfo {
6363
optional bytes bmm_commitment = 3;
6464
}
6565

66-
enum AckBundlesTag {
67-
ACK_BUNDLES_TAG_UNSPECIFIED = 0;
68-
ACK_BUNDLES_TAG_REPEAT_PREVIOUS = 1;
69-
ACK_BUNDLES_TAG_LEADING_BY_50 = 2;
70-
ACK_BUNDLES_TAG_UPVOTES = 3;
71-
}
72-
7366
service MainchainService {
7467
rpc BroadcastWithdrawalBundle(BroadcastWithdrawalBundleRequest)
7568
returns (BroadcastWithdrawalBundleResponse);
@@ -201,11 +194,20 @@ message GetCoinbasePSBTRequest {
201194
google.protobuf.BytesValue bundle_txid = 2;
202195
}
203196
message AckBundles {
204-
AckBundlesTag tag = 1;
205-
repeated uint32 upvotes = 2;
197+
message RepeatPrevious {
198+
}
199+
message LeadingBy50 {
200+
}
201+
message Upvotes {
202+
repeated uint32 upvotes = 1;
203+
}
204+
oneof ack_bundles {
205+
RepeatPrevious repeat_previous = 1;
206+
LeadingBy50 leading_by_50 = 2;
207+
Upvotes upvotes = 3;
208+
}
206209
}
207210

208-
209211
repeated ProposeSidechain propose_sidechains = 1;
210212
repeated AckSidechain ack_sidechains = 2;
211213
repeated ProposeBundle propose_bundles = 3;

0 commit comments

Comments
 (0)