github.com/amazechain/amc@v0.1.3/api/protocol/sync_proto/sync.pb.go (about) 1 // Copyright 2022 The AmazeChain Authors 2 // This file is part of the AmazeChain library. 3 // 4 // The AmazeChain library is free software: you can redistribute it and/or modify 5 // it under the terms of the GNU Lesser General Public License as published by 6 // the Free Software Foundation, either version 3 of the License, or 7 // (at your option) any later version. 8 // 9 // The AmazeChain library is distributed in the hope that it will be useful, 10 // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 // GNU Lesser General Public License for more details. 13 // 14 // You should have received a copy of the GNU Lesser General Public License 15 // along with the AmazeChain library. If not, see <http://www.gnu.org/licenses/>. 16 17 // Code generated by protoc-gen-go. DO NOT EDIT. 18 // versions: 19 // protoc-gen-go v1.28.0 20 // protoc v3.20.0 21 // source: sync_pb.proto 22 23 package sync_proto 24 25 import ( 26 types_pb "github.com/amazechain/amc/api/protocol/types_pb" 27 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 28 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 29 reflect "reflect" 30 sync "sync" 31 ) 32 33 const ( 34 // Verify that this generated code is sufficiently up-to-date. 35 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 36 // Verify that runtime/protoimpl is sufficiently up-to-date. 37 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 38 ) 39 40 type SyncType int32 41 42 const ( 43 SyncType_FINDReq SyncType = 0 44 SyncType_FindRes SyncType = 1 45 SyncType_HeaderReq SyncType = 2 46 SyncType_HeaderRes SyncType = 3 47 SyncType_BodyReq SyncType = 4 48 SyncType_BodyRes SyncType = 5 49 SyncType_StateReq SyncType = 6 50 SyncType_StateRes SyncType = 7 51 SyncType_TransactionReq SyncType = 8 52 SyncType_TransactionRes SyncType = 9 53 SyncType_PeerInfoBroadcast SyncType = 10 54 ) 55 56 // Enum value maps for SyncType. 57 var ( 58 SyncType_name = map[int32]string{ 59 0: "FINDReq", 60 1: "FindRes", 61 2: "HeaderReq", 62 3: "HeaderRes", 63 4: "BodyReq", 64 5: "BodyRes", 65 6: "StateReq", 66 7: "StateRes", 67 8: "TransactionReq", 68 9: "TransactionRes", 69 10: "PeerInfoBroadcast", 70 } 71 SyncType_value = map[string]int32{ 72 "FINDReq": 0, 73 "FindRes": 1, 74 "HeaderReq": 2, 75 "HeaderRes": 3, 76 "BodyReq": 4, 77 "BodyRes": 5, 78 "StateReq": 6, 79 "StateRes": 7, 80 "TransactionReq": 8, 81 "TransactionRes": 9, 82 "PeerInfoBroadcast": 10, 83 } 84 ) 85 86 func (x SyncType) Enum() *SyncType { 87 p := new(SyncType) 88 *p = x 89 return p 90 } 91 92 func (x SyncType) String() string { 93 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 94 } 95 96 func (SyncType) Descriptor() protoreflect.EnumDescriptor { 97 return file_sync_proto_enumTypes[0].Descriptor() 98 } 99 100 func (SyncType) Type() protoreflect.EnumType { 101 return &file_sync_proto_enumTypes[0] 102 } 103 104 func (x SyncType) Number() protoreflect.EnumNumber { 105 return protoreflect.EnumNumber(x) 106 } 107 108 // Deprecated: Use SyncType.Descriptor instead. 109 func (SyncType) EnumDescriptor() ([]byte, []int) { 110 return file_sync_proto_rawDescGZIP(), []int{0} 111 } 112 113 type SyncProtocol struct { 114 state protoimpl.MessageState 115 sizeCache protoimpl.SizeCache 116 unknownFields protoimpl.UnknownFields 117 } 118 119 func (x *SyncProtocol) Reset() { 120 *x = SyncProtocol{} 121 if protoimpl.UnsafeEnabled { 122 mi := &file_sync_proto_msgTypes[0] 123 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 124 ms.StoreMessageInfo(mi) 125 } 126 } 127 128 func (x *SyncProtocol) String() string { 129 return protoimpl.X.MessageStringOf(x) 130 } 131 132 func (*SyncProtocol) ProtoMessage() {} 133 134 func (x *SyncProtocol) ProtoReflect() protoreflect.Message { 135 mi := &file_sync_proto_msgTypes[0] 136 if protoimpl.UnsafeEnabled && x != nil { 137 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 138 if ms.LoadMessageInfo() == nil { 139 ms.StoreMessageInfo(mi) 140 } 141 return ms 142 } 143 return mi.MessageOf(x) 144 } 145 146 // Deprecated: Use SyncProtocol.ProtoReflect.Descriptor instead. 147 func (*SyncProtocol) Descriptor() ([]byte, []int) { 148 return file_sync_proto_rawDescGZIP(), []int{0} 149 } 150 151 type Value struct { 152 state protoimpl.MessageState 153 sizeCache protoimpl.SizeCache 154 unknownFields protoimpl.UnknownFields 155 156 Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` 157 Height uint64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` 158 } 159 160 func (x *Value) Reset() { 161 *x = Value{} 162 if protoimpl.UnsafeEnabled { 163 mi := &file_sync_proto_msgTypes[1] 164 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 165 ms.StoreMessageInfo(mi) 166 } 167 } 168 169 func (x *Value) String() string { 170 return protoimpl.X.MessageStringOf(x) 171 } 172 173 func (*Value) ProtoMessage() {} 174 175 func (x *Value) ProtoReflect() protoreflect.Message { 176 mi := &file_sync_proto_msgTypes[1] 177 if protoimpl.UnsafeEnabled && x != nil { 178 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 179 if ms.LoadMessageInfo() == nil { 180 ms.StoreMessageInfo(mi) 181 } 182 return ms 183 } 184 return mi.MessageOf(x) 185 } 186 187 // Deprecated: Use Value.ProtoReflect.Descriptor instead. 188 func (*Value) Descriptor() ([]byte, []int) { 189 return file_sync_proto_rawDescGZIP(), []int{1} 190 } 191 192 func (x *Value) GetHash() string { 193 if x != nil { 194 return x.Hash 195 } 196 return "" 197 } 198 199 func (x *Value) GetHeight() uint64 { 200 if x != nil { 201 return x.Height 202 } 203 return 0 204 } 205 206 type SyncBlockRequest struct { 207 state protoimpl.MessageState 208 sizeCache protoimpl.SizeCache 209 unknownFields protoimpl.UnknownFields 210 211 Number []*types_pb.H256 `protobuf:"bytes,1,rep,name=number,proto3" json:"number,omitempty"` 212 } 213 214 func (x *SyncBlockRequest) Reset() { 215 *x = SyncBlockRequest{} 216 if protoimpl.UnsafeEnabled { 217 mi := &file_sync_proto_msgTypes[2] 218 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 219 ms.StoreMessageInfo(mi) 220 } 221 } 222 223 func (x *SyncBlockRequest) String() string { 224 return protoimpl.X.MessageStringOf(x) 225 } 226 227 func (*SyncBlockRequest) ProtoMessage() {} 228 229 func (x *SyncBlockRequest) ProtoReflect() protoreflect.Message { 230 mi := &file_sync_proto_msgTypes[2] 231 if protoimpl.UnsafeEnabled && x != nil { 232 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 233 if ms.LoadMessageInfo() == nil { 234 ms.StoreMessageInfo(mi) 235 } 236 return ms 237 } 238 return mi.MessageOf(x) 239 } 240 241 // Deprecated: Use SyncBlockRequest.ProtoReflect.Descriptor instead. 242 func (*SyncBlockRequest) Descriptor() ([]byte, []int) { 243 return file_sync_proto_rawDescGZIP(), []int{2} 244 } 245 246 func (x *SyncBlockRequest) GetNumber() []*types_pb.H256 { 247 if x != nil { 248 return x.Number 249 } 250 return nil 251 } 252 253 type SyncBlockResponse struct { 254 state protoimpl.MessageState 255 sizeCache protoimpl.SizeCache 256 unknownFields protoimpl.UnknownFields 257 258 Blocks []*types_pb.Block `protobuf:"bytes,1,rep,name=blocks,proto3" json:"blocks,omitempty"` 259 } 260 261 func (x *SyncBlockResponse) Reset() { 262 *x = SyncBlockResponse{} 263 if protoimpl.UnsafeEnabled { 264 mi := &file_sync_proto_msgTypes[3] 265 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 266 ms.StoreMessageInfo(mi) 267 } 268 } 269 270 func (x *SyncBlockResponse) String() string { 271 return protoimpl.X.MessageStringOf(x) 272 } 273 274 func (*SyncBlockResponse) ProtoMessage() {} 275 276 func (x *SyncBlockResponse) ProtoReflect() protoreflect.Message { 277 mi := &file_sync_proto_msgTypes[3] 278 if protoimpl.UnsafeEnabled && x != nil { 279 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 280 if ms.LoadMessageInfo() == nil { 281 ms.StoreMessageInfo(mi) 282 } 283 return ms 284 } 285 return mi.MessageOf(x) 286 } 287 288 // Deprecated: Use SyncBlockResponse.ProtoReflect.Descriptor instead. 289 func (*SyncBlockResponse) Descriptor() ([]byte, []int) { 290 return file_sync_proto_rawDescGZIP(), []int{3} 291 } 292 293 func (x *SyncBlockResponse) GetBlocks() []*types_pb.Block { 294 if x != nil { 295 return x.Blocks 296 } 297 return nil 298 } 299 300 type SyncHeaderRequest struct { 301 state protoimpl.MessageState 302 sizeCache protoimpl.SizeCache 303 unknownFields protoimpl.UnknownFields 304 305 Number *types_pb.H256 `protobuf:"bytes,1,opt,name=number,proto3" json:"number,omitempty"` 306 Amount *types_pb.H256 `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"` 307 } 308 309 func (x *SyncHeaderRequest) Reset() { 310 *x = SyncHeaderRequest{} 311 if protoimpl.UnsafeEnabled { 312 mi := &file_sync_proto_msgTypes[4] 313 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 314 ms.StoreMessageInfo(mi) 315 } 316 } 317 318 func (x *SyncHeaderRequest) String() string { 319 return protoimpl.X.MessageStringOf(x) 320 } 321 322 func (*SyncHeaderRequest) ProtoMessage() {} 323 324 func (x *SyncHeaderRequest) ProtoReflect() protoreflect.Message { 325 mi := &file_sync_proto_msgTypes[4] 326 if protoimpl.UnsafeEnabled && x != nil { 327 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 328 if ms.LoadMessageInfo() == nil { 329 ms.StoreMessageInfo(mi) 330 } 331 return ms 332 } 333 return mi.MessageOf(x) 334 } 335 336 // Deprecated: Use SyncHeaderRequest.ProtoReflect.Descriptor instead. 337 func (*SyncHeaderRequest) Descriptor() ([]byte, []int) { 338 return file_sync_proto_rawDescGZIP(), []int{4} 339 } 340 341 func (x *SyncHeaderRequest) GetNumber() *types_pb.H256 { 342 if x != nil { 343 return x.Number 344 } 345 return nil 346 } 347 348 func (x *SyncHeaderRequest) GetAmount() *types_pb.H256 { 349 if x != nil { 350 return x.Amount 351 } 352 return nil 353 } 354 355 type SyncHeaderResponse struct { 356 state protoimpl.MessageState 357 sizeCache protoimpl.SizeCache 358 unknownFields protoimpl.UnknownFields 359 360 Headers []*types_pb.Header `protobuf:"bytes,1,rep,name=headers,proto3" json:"headers,omitempty"` 361 } 362 363 func (x *SyncHeaderResponse) Reset() { 364 *x = SyncHeaderResponse{} 365 if protoimpl.UnsafeEnabled { 366 mi := &file_sync_proto_msgTypes[5] 367 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 368 ms.StoreMessageInfo(mi) 369 } 370 } 371 372 func (x *SyncHeaderResponse) String() string { 373 return protoimpl.X.MessageStringOf(x) 374 } 375 376 func (*SyncHeaderResponse) ProtoMessage() {} 377 378 func (x *SyncHeaderResponse) ProtoReflect() protoreflect.Message { 379 mi := &file_sync_proto_msgTypes[5] 380 if protoimpl.UnsafeEnabled && x != nil { 381 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 382 if ms.LoadMessageInfo() == nil { 383 ms.StoreMessageInfo(mi) 384 } 385 return ms 386 } 387 return mi.MessageOf(x) 388 } 389 390 // Deprecated: Use SyncHeaderResponse.ProtoReflect.Descriptor instead. 391 func (*SyncHeaderResponse) Descriptor() ([]byte, []int) { 392 return file_sync_proto_rawDescGZIP(), []int{5} 393 } 394 395 func (x *SyncHeaderResponse) GetHeaders() []*types_pb.Header { 396 if x != nil { 397 return x.Headers 398 } 399 return nil 400 } 401 402 type SyncTransactionRequest struct { 403 state protoimpl.MessageState 404 sizeCache protoimpl.SizeCache 405 unknownFields protoimpl.UnknownFields 406 407 Bloom []byte `protobuf:"bytes,1,opt,name=bloom,proto3" json:"bloom,omitempty"` 408 } 409 410 func (x *SyncTransactionRequest) Reset() { 411 *x = SyncTransactionRequest{} 412 if protoimpl.UnsafeEnabled { 413 mi := &file_sync_proto_msgTypes[6] 414 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 415 ms.StoreMessageInfo(mi) 416 } 417 } 418 419 func (x *SyncTransactionRequest) String() string { 420 return protoimpl.X.MessageStringOf(x) 421 } 422 423 func (*SyncTransactionRequest) ProtoMessage() {} 424 425 func (x *SyncTransactionRequest) ProtoReflect() protoreflect.Message { 426 mi := &file_sync_proto_msgTypes[6] 427 if protoimpl.UnsafeEnabled && x != nil { 428 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 429 if ms.LoadMessageInfo() == nil { 430 ms.StoreMessageInfo(mi) 431 } 432 return ms 433 } 434 return mi.MessageOf(x) 435 } 436 437 // Deprecated: Use SyncTransactionRequest.ProtoReflect.Descriptor instead. 438 func (*SyncTransactionRequest) Descriptor() ([]byte, []int) { 439 return file_sync_proto_rawDescGZIP(), []int{6} 440 } 441 442 func (x *SyncTransactionRequest) GetBloom() []byte { 443 if x != nil { 444 return x.Bloom 445 } 446 return nil 447 } 448 449 type SyncTransactionResponse struct { 450 state protoimpl.MessageState 451 sizeCache protoimpl.SizeCache 452 unknownFields protoimpl.UnknownFields 453 454 Transactions []*types_pb.Transaction `protobuf:"bytes,1,rep,name=transactions,proto3" json:"transactions,omitempty"` 455 } 456 457 func (x *SyncTransactionResponse) Reset() { 458 *x = SyncTransactionResponse{} 459 if protoimpl.UnsafeEnabled { 460 mi := &file_sync_proto_msgTypes[7] 461 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 462 ms.StoreMessageInfo(mi) 463 } 464 } 465 466 func (x *SyncTransactionResponse) String() string { 467 return protoimpl.X.MessageStringOf(x) 468 } 469 470 func (*SyncTransactionResponse) ProtoMessage() {} 471 472 func (x *SyncTransactionResponse) ProtoReflect() protoreflect.Message { 473 mi := &file_sync_proto_msgTypes[7] 474 if protoimpl.UnsafeEnabled && x != nil { 475 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 476 if ms.LoadMessageInfo() == nil { 477 ms.StoreMessageInfo(mi) 478 } 479 return ms 480 } 481 return mi.MessageOf(x) 482 } 483 484 // Deprecated: Use SyncTransactionResponse.ProtoReflect.Descriptor instead. 485 func (*SyncTransactionResponse) Descriptor() ([]byte, []int) { 486 return file_sync_proto_rawDescGZIP(), []int{7} 487 } 488 489 func (x *SyncTransactionResponse) GetTransactions() []*types_pb.Transaction { 490 if x != nil { 491 return x.Transactions 492 } 493 return nil 494 } 495 496 type SyncPeerInfoBroadcast struct { 497 state protoimpl.MessageState 498 sizeCache protoimpl.SizeCache 499 unknownFields protoimpl.UnknownFields 500 501 Difficulty *types_pb.H256 `protobuf:"bytes,1,opt,name=Difficulty,proto3" json:"Difficulty,omitempty"` 502 Number *types_pb.H256 `protobuf:"bytes,2,opt,name=Number,proto3" json:"Number,omitempty"` 503 } 504 505 func (x *SyncPeerInfoBroadcast) Reset() { 506 *x = SyncPeerInfoBroadcast{} 507 if protoimpl.UnsafeEnabled { 508 mi := &file_sync_proto_msgTypes[8] 509 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 510 ms.StoreMessageInfo(mi) 511 } 512 } 513 514 func (x *SyncPeerInfoBroadcast) String() string { 515 return protoimpl.X.MessageStringOf(x) 516 } 517 518 func (*SyncPeerInfoBroadcast) ProtoMessage() {} 519 520 func (x *SyncPeerInfoBroadcast) ProtoReflect() protoreflect.Message { 521 mi := &file_sync_proto_msgTypes[8] 522 if protoimpl.UnsafeEnabled && x != nil { 523 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 524 if ms.LoadMessageInfo() == nil { 525 ms.StoreMessageInfo(mi) 526 } 527 return ms 528 } 529 return mi.MessageOf(x) 530 } 531 532 // Deprecated: Use SyncPeerInfoBroadcast.ProtoReflect.Descriptor instead. 533 func (*SyncPeerInfoBroadcast) Descriptor() ([]byte, []int) { 534 return file_sync_proto_rawDescGZIP(), []int{8} 535 } 536 537 func (x *SyncPeerInfoBroadcast) GetDifficulty() *types_pb.H256 { 538 if x != nil { 539 return x.Difficulty 540 } 541 return nil 542 } 543 544 func (x *SyncPeerInfoBroadcast) GetNumber() *types_pb.H256 { 545 if x != nil { 546 return x.Number 547 } 548 return nil 549 } 550 551 type SyncTask struct { 552 state protoimpl.MessageState 553 sizeCache protoimpl.SizeCache 554 unknownFields protoimpl.UnknownFields 555 556 Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // task id 557 Ok bool `protobuf:"varint,2,opt,name=ok,proto3" json:"ok,omitempty"` 558 SyncType SyncType `protobuf:"varint,3,opt,name=syncType,proto3,enum=sync_proto.SyncType" json:"syncType,omitempty"` 559 // Types that are assignable to Payload: 560 // *SyncTask_SyncHeaderRequest 561 // *SyncTask_SyncHeaderResponse 562 // *SyncTask_SyncBlockRequest 563 // *SyncTask_SyncBlockResponse 564 // *SyncTask_SyncTransactionRequest 565 // *SyncTask_SyncTransactionResponse 566 // *SyncTask_SyncPeerInfoBroadcast 567 Payload isSyncTask_Payload `protobuf_oneof:"payload"` 568 } 569 570 func (x *SyncTask) Reset() { 571 *x = SyncTask{} 572 if protoimpl.UnsafeEnabled { 573 mi := &file_sync_proto_msgTypes[9] 574 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 575 ms.StoreMessageInfo(mi) 576 } 577 } 578 579 func (x *SyncTask) String() string { 580 return protoimpl.X.MessageStringOf(x) 581 } 582 583 func (*SyncTask) ProtoMessage() {} 584 585 func (x *SyncTask) ProtoReflect() protoreflect.Message { 586 mi := &file_sync_proto_msgTypes[9] 587 if protoimpl.UnsafeEnabled && x != nil { 588 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 589 if ms.LoadMessageInfo() == nil { 590 ms.StoreMessageInfo(mi) 591 } 592 return ms 593 } 594 return mi.MessageOf(x) 595 } 596 597 // Deprecated: Use SyncTask.ProtoReflect.Descriptor instead. 598 func (*SyncTask) Descriptor() ([]byte, []int) { 599 return file_sync_proto_rawDescGZIP(), []int{9} 600 } 601 602 func (x *SyncTask) GetId() uint64 { 603 if x != nil { 604 return x.Id 605 } 606 return 0 607 } 608 609 func (x *SyncTask) GetOk() bool { 610 if x != nil { 611 return x.Ok 612 } 613 return false 614 } 615 616 func (x *SyncTask) GetSyncType() SyncType { 617 if x != nil { 618 return x.SyncType 619 } 620 return SyncType_FINDReq 621 } 622 623 func (m *SyncTask) GetPayload() isSyncTask_Payload { 624 if m != nil { 625 return m.Payload 626 } 627 return nil 628 } 629 630 func (x *SyncTask) GetSyncHeaderRequest() *SyncHeaderRequest { 631 if x, ok := x.GetPayload().(*SyncTask_SyncHeaderRequest); ok { 632 return x.SyncHeaderRequest 633 } 634 return nil 635 } 636 637 func (x *SyncTask) GetSyncHeaderResponse() *SyncHeaderResponse { 638 if x, ok := x.GetPayload().(*SyncTask_SyncHeaderResponse); ok { 639 return x.SyncHeaderResponse 640 } 641 return nil 642 } 643 644 func (x *SyncTask) GetSyncBlockRequest() *SyncBlockRequest { 645 if x, ok := x.GetPayload().(*SyncTask_SyncBlockRequest); ok { 646 return x.SyncBlockRequest 647 } 648 return nil 649 } 650 651 func (x *SyncTask) GetSyncBlockResponse() *SyncBlockResponse { 652 if x, ok := x.GetPayload().(*SyncTask_SyncBlockResponse); ok { 653 return x.SyncBlockResponse 654 } 655 return nil 656 } 657 658 func (x *SyncTask) GetSyncTransactionRequest() *SyncTransactionRequest { 659 if x, ok := x.GetPayload().(*SyncTask_SyncTransactionRequest); ok { 660 return x.SyncTransactionRequest 661 } 662 return nil 663 } 664 665 func (x *SyncTask) GetSyncTransactionResponse() *SyncTransactionResponse { 666 if x, ok := x.GetPayload().(*SyncTask_SyncTransactionResponse); ok { 667 return x.SyncTransactionResponse 668 } 669 return nil 670 } 671 672 func (x *SyncTask) GetSyncPeerInfoBroadcast() *SyncPeerInfoBroadcast { 673 if x, ok := x.GetPayload().(*SyncTask_SyncPeerInfoBroadcast); ok { 674 return x.SyncPeerInfoBroadcast 675 } 676 return nil 677 } 678 679 type isSyncTask_Payload interface { 680 isSyncTask_Payload() 681 } 682 683 type SyncTask_SyncHeaderRequest struct { 684 //header 685 SyncHeaderRequest *SyncHeaderRequest `protobuf:"bytes,4,opt,name=syncHeaderRequest,proto3,oneof"` 686 } 687 688 type SyncTask_SyncHeaderResponse struct { 689 SyncHeaderResponse *SyncHeaderResponse `protobuf:"bytes,5,opt,name=syncHeaderResponse,proto3,oneof"` 690 } 691 692 type SyncTask_SyncBlockRequest struct { 693 //body 694 SyncBlockRequest *SyncBlockRequest `protobuf:"bytes,6,opt,name=syncBlockRequest,proto3,oneof"` 695 } 696 697 type SyncTask_SyncBlockResponse struct { 698 SyncBlockResponse *SyncBlockResponse `protobuf:"bytes,7,opt,name=syncBlockResponse,proto3,oneof"` 699 } 700 701 type SyncTask_SyncTransactionRequest struct { 702 //Transaction 703 SyncTransactionRequest *SyncTransactionRequest `protobuf:"bytes,8,opt,name=syncTransactionRequest,proto3,oneof"` 704 } 705 706 type SyncTask_SyncTransactionResponse struct { 707 SyncTransactionResponse *SyncTransactionResponse `protobuf:"bytes,9,opt,name=syncTransactionResponse,proto3,oneof"` 708 } 709 710 type SyncTask_SyncPeerInfoBroadcast struct { 711 // 712 SyncPeerInfoBroadcast *SyncPeerInfoBroadcast `protobuf:"bytes,10,opt,name=syncPeerInfoBroadcast,proto3,oneof"` 713 } 714 715 func (*SyncTask_SyncHeaderRequest) isSyncTask_Payload() {} 716 717 func (*SyncTask_SyncHeaderResponse) isSyncTask_Payload() {} 718 719 func (*SyncTask_SyncBlockRequest) isSyncTask_Payload() {} 720 721 func (*SyncTask_SyncBlockResponse) isSyncTask_Payload() {} 722 723 func (*SyncTask_SyncTransactionRequest) isSyncTask_Payload() {} 724 725 func (*SyncTask_SyncTransactionResponse) isSyncTask_Payload() {} 726 727 func (*SyncTask_SyncPeerInfoBroadcast) isSyncTask_Payload() {} 728 729 var File_sync_proto protoreflect.FileDescriptor 730 731 var file_sync_proto_rawDesc = []byte{ 732 0x0a, 0x0a, 0x73, 0x79, 0x6e, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x73, 0x79, 733 0x6e, 0x63, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x74, 0x79, 0x70, 0x65, 0x73, 0x5f, 734 0x70, 0x62, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x0e, 735 0x0a, 0x0c, 0x53, 0x79, 0x6e, 0x63, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x22, 0x33, 736 0x0a, 0x05, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x61, 0x73, 0x68, 0x18, 737 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x68, 0x61, 0x73, 0x68, 0x12, 0x16, 0x0a, 0x06, 0x68, 738 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x68, 0x65, 0x69, 739 0x67, 0x68, 0x74, 0x22, 0x3a, 0x0a, 0x10, 0x53, 0x79, 0x6e, 0x63, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 740 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x26, 0x0a, 0x06, 0x6e, 0x75, 0x6d, 0x62, 0x65, 741 0x72, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x5f, 742 0x70, 0x62, 0x2e, 0x48, 0x32, 0x35, 0x36, 0x52, 0x06, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x22, 743 0x3c, 0x0a, 0x11, 0x53, 0x79, 0x6e, 0x63, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 744 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x27, 0x0a, 0x06, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x18, 0x01, 745 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x5f, 0x70, 0x62, 0x2e, 746 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x06, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x22, 0x63, 0x0a, 747 0x11, 0x53, 0x79, 0x6e, 0x63, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 748 0x73, 0x74, 0x12, 0x26, 0x0a, 0x06, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 749 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x5f, 0x70, 0x62, 0x2e, 0x48, 0x32, 750 0x35, 0x36, 0x52, 0x06, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x26, 0x0a, 0x06, 0x61, 0x6d, 751 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x74, 0x79, 0x70, 752 0x65, 0x73, 0x5f, 0x70, 0x62, 0x2e, 0x48, 0x32, 0x35, 0x36, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 753 0x6e, 0x74, 0x22, 0x40, 0x0a, 0x12, 0x53, 0x79, 0x6e, 0x63, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 754 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2a, 0x0a, 0x07, 0x68, 0x65, 0x61, 0x64, 755 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x74, 0x79, 0x70, 0x65, 756 0x73, 0x5f, 0x70, 0x62, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x07, 0x68, 0x65, 0x61, 757 0x64, 0x65, 0x72, 0x73, 0x22, 0x2e, 0x0a, 0x16, 0x53, 0x79, 0x6e, 0x63, 0x54, 0x72, 0x61, 0x6e, 758 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 759 0x0a, 0x05, 0x62, 0x6c, 0x6f, 0x6f, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x62, 760 0x6c, 0x6f, 0x6f, 0x6d, 0x22, 0x54, 0x0a, 0x17, 0x53, 0x79, 0x6e, 0x63, 0x54, 0x72, 0x61, 0x6e, 761 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 762 0x39, 0x0a, 0x0c, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 763 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x5f, 0x70, 0x62, 764 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0c, 0x74, 0x72, 765 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x6f, 0x0a, 0x15, 0x53, 0x79, 766 0x6e, 0x63, 0x50, 0x65, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x42, 0x72, 0x6f, 0x61, 0x64, 0x63, 767 0x61, 0x73, 0x74, 0x12, 0x2e, 0x0a, 0x0a, 0x44, 0x69, 0x66, 0x66, 0x69, 0x63, 0x75, 0x6c, 0x74, 768 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x5f, 769 0x70, 0x62, 0x2e, 0x48, 0x32, 0x35, 0x36, 0x52, 0x0a, 0x44, 0x69, 0x66, 0x66, 0x69, 0x63, 0x75, 770 0x6c, 0x74, 0x79, 0x12, 0x26, 0x0a, 0x06, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x02, 0x20, 771 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x5f, 0x70, 0x62, 0x2e, 0x48, 772 0x32, 0x35, 0x36, 0x52, 0x06, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x22, 0xbd, 0x05, 0x0a, 0x08, 773 0x53, 0x79, 0x6e, 0x63, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 774 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x6f, 0x6b, 0x18, 0x02, 775 0x20, 0x01, 0x28, 0x08, 0x52, 0x02, 0x6f, 0x6b, 0x12, 0x30, 0x0a, 0x08, 0x73, 0x79, 0x6e, 0x63, 776 0x54, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x14, 0x2e, 0x73, 0x79, 0x6e, 777 0x63, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x53, 0x79, 0x6e, 0x63, 0x54, 0x79, 0x70, 0x65, 778 0x52, 0x08, 0x73, 0x79, 0x6e, 0x63, 0x54, 0x79, 0x70, 0x65, 0x12, 0x4d, 0x0a, 0x11, 0x73, 0x79, 779 0x6e, 0x63, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 780 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x73, 0x79, 0x6e, 0x63, 0x5f, 0x70, 0x72, 0x6f, 781 0x74, 0x6f, 0x2e, 0x53, 0x79, 0x6e, 0x63, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 782 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x11, 0x73, 0x79, 0x6e, 0x63, 0x48, 0x65, 0x61, 0x64, 783 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x50, 0x0a, 0x12, 0x73, 0x79, 0x6e, 784 0x63, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 785 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x73, 0x79, 0x6e, 0x63, 0x5f, 0x70, 0x72, 0x6f, 786 0x74, 0x6f, 0x2e, 0x53, 0x79, 0x6e, 0x63, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x65, 0x73, 787 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x12, 0x73, 0x79, 0x6e, 0x63, 0x48, 0x65, 0x61, 788 0x64, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4a, 0x0a, 0x10, 0x73, 789 0x79, 0x6e, 0x63, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 790 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x73, 0x79, 0x6e, 0x63, 0x5f, 0x70, 0x72, 0x6f, 791 0x74, 0x6f, 0x2e, 0x53, 0x79, 0x6e, 0x63, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 792 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x10, 0x73, 0x79, 0x6e, 0x63, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 793 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4d, 0x0a, 0x11, 0x73, 0x79, 0x6e, 0x63, 0x42, 794 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x07, 0x20, 0x01, 795 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x73, 0x79, 0x6e, 0x63, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 796 0x53, 0x79, 0x6e, 0x63, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 797 0x65, 0x48, 0x00, 0x52, 0x11, 0x73, 0x79, 0x6e, 0x63, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 798 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5c, 0x0a, 0x16, 0x73, 0x79, 0x6e, 0x63, 0x54, 0x72, 799 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 800 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x73, 0x79, 0x6e, 0x63, 0x5f, 0x70, 0x72, 801 0x6f, 0x74, 0x6f, 0x2e, 0x53, 0x79, 0x6e, 0x63, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 802 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x16, 0x73, 0x79, 803 0x6e, 0x63, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 804 0x75, 0x65, 0x73, 0x74, 0x12, 0x5f, 0x0a, 0x17, 0x73, 0x79, 0x6e, 0x63, 0x54, 0x72, 0x61, 0x6e, 805 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 806 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x73, 0x79, 0x6e, 0x63, 0x5f, 0x70, 0x72, 0x6f, 807 0x74, 0x6f, 0x2e, 0x53, 0x79, 0x6e, 0x63, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 808 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x17, 0x73, 0x79, 809 0x6e, 0x63, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 810 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x59, 0x0a, 0x15, 0x73, 0x79, 0x6e, 0x63, 0x50, 0x65, 0x65, 811 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x42, 0x72, 0x6f, 0x61, 0x64, 0x63, 0x61, 0x73, 0x74, 0x18, 0x0a, 812 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x73, 0x79, 0x6e, 0x63, 0x5f, 0x70, 0x72, 0x6f, 0x74, 813 0x6f, 0x2e, 0x53, 0x79, 0x6e, 0x63, 0x50, 0x65, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x42, 0x72, 814 0x6f, 0x61, 0x64, 0x63, 0x61, 0x73, 0x74, 0x48, 0x00, 0x52, 0x15, 0x73, 0x79, 0x6e, 0x63, 0x50, 815 0x65, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x42, 0x72, 0x6f, 0x61, 0x64, 0x63, 0x61, 0x73, 0x74, 816 0x42, 0x09, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2a, 0xb7, 0x01, 0x0a, 0x08, 817 0x53, 0x79, 0x6e, 0x63, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x46, 0x49, 0x4e, 0x44, 818 0x52, 0x65, 0x71, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x46, 0x69, 0x6e, 0x64, 0x52, 0x65, 0x73, 819 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x10, 820 0x02, 0x12, 0x0d, 0x0a, 0x09, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x65, 0x73, 0x10, 0x03, 821 0x12, 0x0b, 0x0a, 0x07, 0x42, 0x6f, 0x64, 0x79, 0x52, 0x65, 0x71, 0x10, 0x04, 0x12, 0x0b, 0x0a, 822 0x07, 0x42, 0x6f, 0x64, 0x79, 0x52, 0x65, 0x73, 0x10, 0x05, 0x12, 0x0c, 0x0a, 0x08, 0x53, 0x74, 823 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x10, 0x06, 0x12, 0x0c, 0x0a, 0x08, 0x53, 0x74, 0x61, 0x74, 824 0x65, 0x52, 0x65, 0x73, 0x10, 0x07, 0x12, 0x12, 0x0a, 0x0e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 825 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x10, 0x08, 0x12, 0x12, 0x0a, 0x0e, 0x54, 0x72, 826 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x10, 0x09, 0x12, 0x15, 827 0x0a, 0x11, 0x50, 0x65, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x42, 0x72, 0x6f, 0x61, 0x64, 0x63, 828 0x61, 0x73, 0x74, 0x10, 0x0a, 0x42, 0x33, 0x5a, 0x31, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 829 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x6d, 0x61, 0x7a, 0x65, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x61, 830 0x6d, 0x63, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 831 0x73, 0x79, 0x6e, 0x63, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 832 0x6f, 0x33, 833 } 834 835 var ( 836 file_sync_proto_rawDescOnce sync.Once 837 file_sync_proto_rawDescData = file_sync_proto_rawDesc 838 ) 839 840 func file_sync_proto_rawDescGZIP() []byte { 841 file_sync_proto_rawDescOnce.Do(func() { 842 file_sync_proto_rawDescData = protoimpl.X.CompressGZIP(file_sync_proto_rawDescData) 843 }) 844 return file_sync_proto_rawDescData 845 } 846 847 var file_sync_proto_enumTypes = make([]protoimpl.EnumInfo, 1) 848 var file_sync_proto_msgTypes = make([]protoimpl.MessageInfo, 10) 849 var file_sync_proto_goTypes = []interface{}{ 850 (SyncType)(0), // 0: sync_proto.SyncType 851 (*SyncProtocol)(nil), // 1: sync_proto.SyncProtocol 852 (*Value)(nil), // 2: sync_proto.Value 853 (*SyncBlockRequest)(nil), // 3: sync_proto.SyncBlockRequest 854 (*SyncBlockResponse)(nil), // 4: sync_proto.SyncBlockResponse 855 (*SyncHeaderRequest)(nil), // 5: sync_proto.SyncHeaderRequest 856 (*SyncHeaderResponse)(nil), // 6: sync_proto.SyncHeaderResponse 857 (*SyncTransactionRequest)(nil), // 7: sync_proto.SyncTransactionRequest 858 (*SyncTransactionResponse)(nil), // 8: sync_proto.SyncTransactionResponse 859 (*SyncPeerInfoBroadcast)(nil), // 9: sync_proto.SyncPeerInfoBroadcast 860 (*SyncTask)(nil), // 10: sync_proto.SyncTask 861 (*types_pb.H256)(nil), // 11: types_pb.H256 862 (*types_pb.Block)(nil), // 12: types_pb.Block 863 (*types_pb.Header)(nil), // 13: types_pb.Header 864 (*types_pb.Transaction)(nil), // 14: types_pb.Transaction 865 } 866 var file_sync_proto_depIdxs = []int32{ 867 11, // 0: sync_proto.SyncBlockRequest.number:type_name -> types_pb.H256 868 12, // 1: sync_proto.SyncBlockResponse.blocks:type_name -> types_pb.Block 869 11, // 2: sync_proto.SyncHeaderRequest.number:type_name -> types_pb.H256 870 11, // 3: sync_proto.SyncHeaderRequest.amount:type_name -> types_pb.H256 871 13, // 4: sync_proto.SyncHeaderResponse.headers:type_name -> types_pb.Header 872 14, // 5: sync_proto.SyncTransactionResponse.transactions:type_name -> types_pb.Transaction 873 11, // 6: sync_proto.SyncPeerInfoBroadcast.Difficulty:type_name -> types_pb.H256 874 11, // 7: sync_proto.SyncPeerInfoBroadcast.Number:type_name -> types_pb.H256 875 0, // 8: sync_proto.SyncTask.syncType:type_name -> sync_proto.SyncType 876 5, // 9: sync_proto.SyncTask.syncHeaderRequest:type_name -> sync_proto.SyncHeaderRequest 877 6, // 10: sync_proto.SyncTask.syncHeaderResponse:type_name -> sync_proto.SyncHeaderResponse 878 3, // 11: sync_proto.SyncTask.syncBlockRequest:type_name -> sync_proto.SyncBlockRequest 879 4, // 12: sync_proto.SyncTask.syncBlockResponse:type_name -> sync_proto.SyncBlockResponse 880 7, // 13: sync_proto.SyncTask.syncTransactionRequest:type_name -> sync_proto.SyncTransactionRequest 881 8, // 14: sync_proto.SyncTask.syncTransactionResponse:type_name -> sync_proto.SyncTransactionResponse 882 9, // 15: sync_proto.SyncTask.syncPeerInfoBroadcast:type_name -> sync_proto.SyncPeerInfoBroadcast 883 16, // [16:16] is the sub-list for method output_type 884 16, // [16:16] is the sub-list for method input_type 885 16, // [16:16] is the sub-list for extension type_name 886 16, // [16:16] is the sub-list for extension extendee 887 0, // [0:16] is the sub-list for field type_name 888 } 889 890 func init() { file_sync_proto_init() } 891 func file_sync_proto_init() { 892 if File_sync_proto != nil { 893 return 894 } 895 if !protoimpl.UnsafeEnabled { 896 file_sync_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 897 switch v := v.(*SyncProtocol); i { 898 case 0: 899 return &v.state 900 case 1: 901 return &v.sizeCache 902 case 2: 903 return &v.unknownFields 904 default: 905 return nil 906 } 907 } 908 file_sync_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 909 switch v := v.(*Value); i { 910 case 0: 911 return &v.state 912 case 1: 913 return &v.sizeCache 914 case 2: 915 return &v.unknownFields 916 default: 917 return nil 918 } 919 } 920 file_sync_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 921 switch v := v.(*SyncBlockRequest); i { 922 case 0: 923 return &v.state 924 case 1: 925 return &v.sizeCache 926 case 2: 927 return &v.unknownFields 928 default: 929 return nil 930 } 931 } 932 file_sync_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 933 switch v := v.(*SyncBlockResponse); i { 934 case 0: 935 return &v.state 936 case 1: 937 return &v.sizeCache 938 case 2: 939 return &v.unknownFields 940 default: 941 return nil 942 } 943 } 944 file_sync_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { 945 switch v := v.(*SyncHeaderRequest); i { 946 case 0: 947 return &v.state 948 case 1: 949 return &v.sizeCache 950 case 2: 951 return &v.unknownFields 952 default: 953 return nil 954 } 955 } 956 file_sync_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { 957 switch v := v.(*SyncHeaderResponse); i { 958 case 0: 959 return &v.state 960 case 1: 961 return &v.sizeCache 962 case 2: 963 return &v.unknownFields 964 default: 965 return nil 966 } 967 } 968 file_sync_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { 969 switch v := v.(*SyncTransactionRequest); i { 970 case 0: 971 return &v.state 972 case 1: 973 return &v.sizeCache 974 case 2: 975 return &v.unknownFields 976 default: 977 return nil 978 } 979 } 980 file_sync_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { 981 switch v := v.(*SyncTransactionResponse); i { 982 case 0: 983 return &v.state 984 case 1: 985 return &v.sizeCache 986 case 2: 987 return &v.unknownFields 988 default: 989 return nil 990 } 991 } 992 file_sync_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { 993 switch v := v.(*SyncPeerInfoBroadcast); i { 994 case 0: 995 return &v.state 996 case 1: 997 return &v.sizeCache 998 case 2: 999 return &v.unknownFields 1000 default: 1001 return nil 1002 } 1003 } 1004 file_sync_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { 1005 switch v := v.(*SyncTask); i { 1006 case 0: 1007 return &v.state 1008 case 1: 1009 return &v.sizeCache 1010 case 2: 1011 return &v.unknownFields 1012 default: 1013 return nil 1014 } 1015 } 1016 } 1017 file_sync_proto_msgTypes[9].OneofWrappers = []interface{}{ 1018 (*SyncTask_SyncHeaderRequest)(nil), 1019 (*SyncTask_SyncHeaderResponse)(nil), 1020 (*SyncTask_SyncBlockRequest)(nil), 1021 (*SyncTask_SyncBlockResponse)(nil), 1022 (*SyncTask_SyncTransactionRequest)(nil), 1023 (*SyncTask_SyncTransactionResponse)(nil), 1024 (*SyncTask_SyncPeerInfoBroadcast)(nil), 1025 } 1026 type x struct{} 1027 out := protoimpl.TypeBuilder{ 1028 File: protoimpl.DescBuilder{ 1029 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 1030 RawDescriptor: file_sync_proto_rawDesc, 1031 NumEnums: 1, 1032 NumMessages: 10, 1033 NumExtensions: 0, 1034 NumServices: 0, 1035 }, 1036 GoTypes: file_sync_proto_goTypes, 1037 DependencyIndexes: file_sync_proto_depIdxs, 1038 EnumInfos: file_sync_proto_enumTypes, 1039 MessageInfos: file_sync_proto_msgTypes, 1040 }.Build() 1041 File_sync_proto = out.File 1042 file_sync_proto_rawDesc = nil 1043 file_sync_proto_goTypes = nil 1044 file_sync_proto_depIdxs = nil 1045 }