From 9efaa52d9fb589ef0cef170d2014e9e6f41a7619 Mon Sep 17 00:00:00 2001 From: Ori Newman Date: Mon, 21 Apr 2025 22:28:22 +0300 Subject: [PATCH] Export acceptance data to archival --- app/appmessage/rpc_add_archival_blocks.go | 16 +- cmd/archiveexport/main.go | 35 + .../grpcserver/protowire/messages.pb.go | 995 ++-- .../server/grpcserver/protowire/p2p.pb.go | 1864 +++++-- .../server/grpcserver/protowire/rpc.pb.go | 4802 ++++++++++++----- .../server/grpcserver/protowire/rpc.proto | 15 +- .../protowire/rpc_add_archival_blocks.go | 27 +- 7 files changed, 5380 insertions(+), 2374 deletions(-) diff --git a/app/appmessage/rpc_add_archival_blocks.go b/app/appmessage/rpc_add_archival_blocks.go index 5d2fc6779..1e60b5287 100644 --- a/app/appmessage/rpc_add_archival_blocks.go +++ b/app/appmessage/rpc_add_archival_blocks.go @@ -1,8 +1,20 @@ package appmessage +type AcceptedTxEntry struct { + TransactionID string + IndexWithinBlock uint32 +} + +type MergesetBlockAcceptanceData struct { + BlockHash string + AcceptedTxs []*AcceptedTxEntry +} + type ArchivalBlock struct { - Block *RPCBlock - Child string + Block *RPCBlock + Child string + AcceptanceData []*MergesetBlockAcceptanceData + SelectedParent string } // AddArchivalBlocksRequestMessage represents a request to add archival blocks diff --git a/cmd/archiveexport/main.go b/cmd/archiveexport/main.go index 3fc77b7ab..30650acae 100644 --- a/cmd/archiveexport/main.go +++ b/cmd/archiveexport/main.go @@ -94,6 +94,10 @@ func mainImpl(cfg *configFlags) error { return err } + if int(root.PPIndex-1) >= len(ppHeaders) { + continue + } + nextPP := ppHeaders[root.PPIndex-1] blockToChild := make(map[externalapi.DomainHash]externalapi.DomainHash) @@ -140,6 +144,37 @@ func mainImpl(cfg *configFlags) error { archivalBlock.Child = child.String() } + acceptanceData, err := tc.AcceptanceDataStore().Get(tc.DatabaseContext(), model.NewStagingArea(), hash) + isNotFoundErr := database.IsNotFoundError(err) + if !isNotFoundErr && err != nil { + return err + } + + if blockGHOSTDAGData.SelectedParent() != model.VirtualGenesisBlockHash && !isNotFoundErr && len(acceptanceData) > 0 { + acceptanceDataRPC := make([]*appmessage.MergesetBlockAcceptanceData, 0, len(acceptanceData)) + for _, data := range acceptanceData { + acceptedTxs := make([]*appmessage.AcceptedTxEntry, 0, len(data.TransactionAcceptanceData)) + for i, tx := range data.TransactionAcceptanceData { + if !tx.IsAccepted { + continue + } + + acceptedTxs = append(acceptedTxs, &appmessage.AcceptedTxEntry{ + TransactionID: consensushashing.TransactionID(tx.Transaction).String(), + IndexWithinBlock: uint32(i), + }) + } + + acceptanceDataRPC = append(acceptanceDataRPC, &appmessage.MergesetBlockAcceptanceData{ + BlockHash: data.BlockHash.String(), + AcceptedTxs: acceptedTxs, + }) + } + + archivalBlock.AcceptanceData = acceptanceDataRPC + archivalBlock.SelectedParent = blockGHOSTDAGData.SelectedParent().String() + } + chunk = append(chunk, archivalBlock) if len(chunk) == 1 { diff --git a/infrastructure/network/netadapter/server/grpcserver/protowire/messages.pb.go b/infrastructure/network/netadapter/server/grpcserver/protowire/messages.pb.go index 14a39a614..7f93e6cda 100644 --- a/infrastructure/network/netadapter/server/grpcserver/protowire/messages.pb.go +++ b/infrastructure/network/netadapter/server/grpcserver/protowire/messages.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.5 +// protoc-gen-go v1.33.0 // protoc v3.12.4 // source: messages.proto @@ -11,7 +11,6 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" - unsafe "unsafe" ) const ( @@ -22,8 +21,11 @@ const ( ) type KaspadMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - // Types that are valid to be assigned to Payload: + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to Payload: // // *KaspadMessage_Addresses // *KaspadMessage_Block @@ -181,16 +183,16 @@ type KaspadMessage struct { // *KaspadMessage_GetPruningWindowRootsResponse // *KaspadMessage_AddArchivalBlocksRequest // *KaspadMessage_AddArchivalBlocksResponse - Payload isKaspadMessage_Payload `protobuf_oneof:"payload"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + Payload isKaspadMessage_Payload `protobuf_oneof:"payload"` } func (x *KaspadMessage) Reset() { *x = KaspadMessage{} - mi := &file_messages_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_messages_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *KaspadMessage) String() string { @@ -201,7 +203,7 @@ func (*KaspadMessage) ProtoMessage() {} func (x *KaspadMessage) ProtoReflect() protoreflect.Message { mi := &file_messages_proto_msgTypes[0] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -216,1413 +218,1101 @@ func (*KaspadMessage) Descriptor() ([]byte, []int) { return file_messages_proto_rawDescGZIP(), []int{0} } -func (x *KaspadMessage) GetPayload() isKaspadMessage_Payload { - if x != nil { - return x.Payload +func (m *KaspadMessage) GetPayload() isKaspadMessage_Payload { + if m != nil { + return m.Payload } return nil } func (x *KaspadMessage) GetAddresses() *AddressesMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_Addresses); ok { - return x.Addresses - } + if x, ok := x.GetPayload().(*KaspadMessage_Addresses); ok { + return x.Addresses } return nil } func (x *KaspadMessage) GetBlock() *BlockMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_Block); ok { - return x.Block - } + if x, ok := x.GetPayload().(*KaspadMessage_Block); ok { + return x.Block } return nil } func (x *KaspadMessage) GetTransaction() *TransactionMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_Transaction); ok { - return x.Transaction - } + if x, ok := x.GetPayload().(*KaspadMessage_Transaction); ok { + return x.Transaction } return nil } func (x *KaspadMessage) GetBlockLocator() *BlockLocatorMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_BlockLocator); ok { - return x.BlockLocator - } + if x, ok := x.GetPayload().(*KaspadMessage_BlockLocator); ok { + return x.BlockLocator } return nil } func (x *KaspadMessage) GetRequestAddresses() *RequestAddressesMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_RequestAddresses); ok { - return x.RequestAddresses - } + if x, ok := x.GetPayload().(*KaspadMessage_RequestAddresses); ok { + return x.RequestAddresses } return nil } func (x *KaspadMessage) GetRequestRelayBlocks() *RequestRelayBlocksMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_RequestRelayBlocks); ok { - return x.RequestRelayBlocks - } + if x, ok := x.GetPayload().(*KaspadMessage_RequestRelayBlocks); ok { + return x.RequestRelayBlocks } return nil } func (x *KaspadMessage) GetRequestTransactions() *RequestTransactionsMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_RequestTransactions); ok { - return x.RequestTransactions - } + if x, ok := x.GetPayload().(*KaspadMessage_RequestTransactions); ok { + return x.RequestTransactions } return nil } func (x *KaspadMessage) GetIbdBlock() *BlockMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_IbdBlock); ok { - return x.IbdBlock - } + if x, ok := x.GetPayload().(*KaspadMessage_IbdBlock); ok { + return x.IbdBlock } return nil } func (x *KaspadMessage) GetInvRelayBlock() *InvRelayBlockMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_InvRelayBlock); ok { - return x.InvRelayBlock - } + if x, ok := x.GetPayload().(*KaspadMessage_InvRelayBlock); ok { + return x.InvRelayBlock } return nil } func (x *KaspadMessage) GetInvTransactions() *InvTransactionsMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_InvTransactions); ok { - return x.InvTransactions - } + if x, ok := x.GetPayload().(*KaspadMessage_InvTransactions); ok { + return x.InvTransactions } return nil } func (x *KaspadMessage) GetPing() *PingMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_Ping); ok { - return x.Ping - } + if x, ok := x.GetPayload().(*KaspadMessage_Ping); ok { + return x.Ping } return nil } func (x *KaspadMessage) GetPong() *PongMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_Pong); ok { - return x.Pong - } + if x, ok := x.GetPayload().(*KaspadMessage_Pong); ok { + return x.Pong } return nil } func (x *KaspadMessage) GetVerack() *VerackMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_Verack); ok { - return x.Verack - } + if x, ok := x.GetPayload().(*KaspadMessage_Verack); ok { + return x.Verack } return nil } func (x *KaspadMessage) GetVersion() *VersionMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_Version); ok { - return x.Version - } + if x, ok := x.GetPayload().(*KaspadMessage_Version); ok { + return x.Version } return nil } func (x *KaspadMessage) GetTransactionNotFound() *TransactionNotFoundMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_TransactionNotFound); ok { - return x.TransactionNotFound - } + if x, ok := x.GetPayload().(*KaspadMessage_TransactionNotFound); ok { + return x.TransactionNotFound } return nil } func (x *KaspadMessage) GetReject() *RejectMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_Reject); ok { - return x.Reject - } + if x, ok := x.GetPayload().(*KaspadMessage_Reject); ok { + return x.Reject } return nil } func (x *KaspadMessage) GetPruningPointUtxoSetChunk() *PruningPointUtxoSetChunkMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_PruningPointUtxoSetChunk); ok { - return x.PruningPointUtxoSetChunk - } + if x, ok := x.GetPayload().(*KaspadMessage_PruningPointUtxoSetChunk); ok { + return x.PruningPointUtxoSetChunk } return nil } func (x *KaspadMessage) GetRequestIBDBlocks() *RequestIBDBlocksMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_RequestIBDBlocks); ok { - return x.RequestIBDBlocks - } + if x, ok := x.GetPayload().(*KaspadMessage_RequestIBDBlocks); ok { + return x.RequestIBDBlocks } return nil } func (x *KaspadMessage) GetUnexpectedPruningPoint() *UnexpectedPruningPointMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_UnexpectedPruningPoint); ok { - return x.UnexpectedPruningPoint - } + if x, ok := x.GetPayload().(*KaspadMessage_UnexpectedPruningPoint); ok { + return x.UnexpectedPruningPoint } return nil } func (x *KaspadMessage) GetIbdBlockLocator() *IbdBlockLocatorMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_IbdBlockLocator); ok { - return x.IbdBlockLocator - } + if x, ok := x.GetPayload().(*KaspadMessage_IbdBlockLocator); ok { + return x.IbdBlockLocator } return nil } func (x *KaspadMessage) GetIbdBlockLocatorHighestHash() *IbdBlockLocatorHighestHashMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_IbdBlockLocatorHighestHash); ok { - return x.IbdBlockLocatorHighestHash - } + if x, ok := x.GetPayload().(*KaspadMessage_IbdBlockLocatorHighestHash); ok { + return x.IbdBlockLocatorHighestHash } return nil } func (x *KaspadMessage) GetRequestNextPruningPointUtxoSetChunk() *RequestNextPruningPointUtxoSetChunkMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_RequestNextPruningPointUtxoSetChunk); ok { - return x.RequestNextPruningPointUtxoSetChunk - } + if x, ok := x.GetPayload().(*KaspadMessage_RequestNextPruningPointUtxoSetChunk); ok { + return x.RequestNextPruningPointUtxoSetChunk } return nil } func (x *KaspadMessage) GetDonePruningPointUtxoSetChunks() *DonePruningPointUtxoSetChunksMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_DonePruningPointUtxoSetChunks); ok { - return x.DonePruningPointUtxoSetChunks - } + if x, ok := x.GetPayload().(*KaspadMessage_DonePruningPointUtxoSetChunks); ok { + return x.DonePruningPointUtxoSetChunks } return nil } func (x *KaspadMessage) GetIbdBlockLocatorHighestHashNotFound() *IbdBlockLocatorHighestHashNotFoundMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_IbdBlockLocatorHighestHashNotFound); ok { - return x.IbdBlockLocatorHighestHashNotFound - } + if x, ok := x.GetPayload().(*KaspadMessage_IbdBlockLocatorHighestHashNotFound); ok { + return x.IbdBlockLocatorHighestHashNotFound } return nil } func (x *KaspadMessage) GetBlockWithTrustedData() *BlockWithTrustedDataMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_BlockWithTrustedData); ok { - return x.BlockWithTrustedData - } + if x, ok := x.GetPayload().(*KaspadMessage_BlockWithTrustedData); ok { + return x.BlockWithTrustedData } return nil } func (x *KaspadMessage) GetDoneBlocksWithTrustedData() *DoneBlocksWithTrustedDataMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_DoneBlocksWithTrustedData); ok { - return x.DoneBlocksWithTrustedData - } + if x, ok := x.GetPayload().(*KaspadMessage_DoneBlocksWithTrustedData); ok { + return x.DoneBlocksWithTrustedData } return nil } func (x *KaspadMessage) GetRequestPruningPointAndItsAnticone() *RequestPruningPointAndItsAnticoneMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_RequestPruningPointAndItsAnticone); ok { - return x.RequestPruningPointAndItsAnticone - } + if x, ok := x.GetPayload().(*KaspadMessage_RequestPruningPointAndItsAnticone); ok { + return x.RequestPruningPointAndItsAnticone } return nil } func (x *KaspadMessage) GetBlockHeaders() *BlockHeadersMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_BlockHeaders); ok { - return x.BlockHeaders - } + if x, ok := x.GetPayload().(*KaspadMessage_BlockHeaders); ok { + return x.BlockHeaders } return nil } func (x *KaspadMessage) GetRequestNextHeaders() *RequestNextHeadersMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_RequestNextHeaders); ok { - return x.RequestNextHeaders - } + if x, ok := x.GetPayload().(*KaspadMessage_RequestNextHeaders); ok { + return x.RequestNextHeaders } return nil } func (x *KaspadMessage) GetDoneHeaders() *DoneHeadersMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_DoneHeaders); ok { - return x.DoneHeaders - } + if x, ok := x.GetPayload().(*KaspadMessage_DoneHeaders); ok { + return x.DoneHeaders } return nil } func (x *KaspadMessage) GetRequestPruningPointUTXOSet() *RequestPruningPointUTXOSetMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_RequestPruningPointUTXOSet); ok { - return x.RequestPruningPointUTXOSet - } + if x, ok := x.GetPayload().(*KaspadMessage_RequestPruningPointUTXOSet); ok { + return x.RequestPruningPointUTXOSet } return nil } func (x *KaspadMessage) GetRequestHeaders() *RequestHeadersMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_RequestHeaders); ok { - return x.RequestHeaders - } + if x, ok := x.GetPayload().(*KaspadMessage_RequestHeaders); ok { + return x.RequestHeaders } return nil } func (x *KaspadMessage) GetRequestBlockLocator() *RequestBlockLocatorMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_RequestBlockLocator); ok { - return x.RequestBlockLocator - } + if x, ok := x.GetPayload().(*KaspadMessage_RequestBlockLocator); ok { + return x.RequestBlockLocator } return nil } func (x *KaspadMessage) GetPruningPoints() *PruningPointsMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_PruningPoints); ok { - return x.PruningPoints - } + if x, ok := x.GetPayload().(*KaspadMessage_PruningPoints); ok { + return x.PruningPoints } return nil } func (x *KaspadMessage) GetRequestPruningPointProof() *RequestPruningPointProofMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_RequestPruningPointProof); ok { - return x.RequestPruningPointProof - } + if x, ok := x.GetPayload().(*KaspadMessage_RequestPruningPointProof); ok { + return x.RequestPruningPointProof } return nil } func (x *KaspadMessage) GetPruningPointProof() *PruningPointProofMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_PruningPointProof); ok { - return x.PruningPointProof - } + if x, ok := x.GetPayload().(*KaspadMessage_PruningPointProof); ok { + return x.PruningPointProof } return nil } func (x *KaspadMessage) GetReady() *ReadyMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_Ready); ok { - return x.Ready - } + if x, ok := x.GetPayload().(*KaspadMessage_Ready); ok { + return x.Ready } return nil } func (x *KaspadMessage) GetBlockWithTrustedDataV4() *BlockWithTrustedDataV4Message { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_BlockWithTrustedDataV4); ok { - return x.BlockWithTrustedDataV4 - } + if x, ok := x.GetPayload().(*KaspadMessage_BlockWithTrustedDataV4); ok { + return x.BlockWithTrustedDataV4 } return nil } func (x *KaspadMessage) GetTrustedData() *TrustedDataMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_TrustedData); ok { - return x.TrustedData - } + if x, ok := x.GetPayload().(*KaspadMessage_TrustedData); ok { + return x.TrustedData } return nil } func (x *KaspadMessage) GetRequestIBDChainBlockLocator() *RequestIBDChainBlockLocatorMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_RequestIBDChainBlockLocator); ok { - return x.RequestIBDChainBlockLocator - } + if x, ok := x.GetPayload().(*KaspadMessage_RequestIBDChainBlockLocator); ok { + return x.RequestIBDChainBlockLocator } return nil } func (x *KaspadMessage) GetIbdChainBlockLocator() *IbdChainBlockLocatorMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_IbdChainBlockLocator); ok { - return x.IbdChainBlockLocator - } + if x, ok := x.GetPayload().(*KaspadMessage_IbdChainBlockLocator); ok { + return x.IbdChainBlockLocator } return nil } func (x *KaspadMessage) GetRequestAnticone() *RequestAnticoneMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_RequestAnticone); ok { - return x.RequestAnticone - } + if x, ok := x.GetPayload().(*KaspadMessage_RequestAnticone); ok { + return x.RequestAnticone } return nil } func (x *KaspadMessage) GetRequestNextPruningPointAndItsAnticoneBlocks() *RequestNextPruningPointAndItsAnticoneBlocksMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_RequestNextPruningPointAndItsAnticoneBlocks); ok { - return x.RequestNextPruningPointAndItsAnticoneBlocks - } + if x, ok := x.GetPayload().(*KaspadMessage_RequestNextPruningPointAndItsAnticoneBlocks); ok { + return x.RequestNextPruningPointAndItsAnticoneBlocks } return nil } func (x *KaspadMessage) GetGetCurrentNetworkRequest() *GetCurrentNetworkRequestMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_GetCurrentNetworkRequest); ok { - return x.GetCurrentNetworkRequest - } + if x, ok := x.GetPayload().(*KaspadMessage_GetCurrentNetworkRequest); ok { + return x.GetCurrentNetworkRequest } return nil } func (x *KaspadMessage) GetGetCurrentNetworkResponse() *GetCurrentNetworkResponseMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_GetCurrentNetworkResponse); ok { - return x.GetCurrentNetworkResponse - } + if x, ok := x.GetPayload().(*KaspadMessage_GetCurrentNetworkResponse); ok { + return x.GetCurrentNetworkResponse } return nil } func (x *KaspadMessage) GetSubmitBlockRequest() *SubmitBlockRequestMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_SubmitBlockRequest); ok { - return x.SubmitBlockRequest - } + if x, ok := x.GetPayload().(*KaspadMessage_SubmitBlockRequest); ok { + return x.SubmitBlockRequest } return nil } func (x *KaspadMessage) GetSubmitBlockResponse() *SubmitBlockResponseMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_SubmitBlockResponse); ok { - return x.SubmitBlockResponse - } + if x, ok := x.GetPayload().(*KaspadMessage_SubmitBlockResponse); ok { + return x.SubmitBlockResponse } return nil } func (x *KaspadMessage) GetGetBlockTemplateRequest() *GetBlockTemplateRequestMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_GetBlockTemplateRequest); ok { - return x.GetBlockTemplateRequest - } + if x, ok := x.GetPayload().(*KaspadMessage_GetBlockTemplateRequest); ok { + return x.GetBlockTemplateRequest } return nil } func (x *KaspadMessage) GetGetBlockTemplateResponse() *GetBlockTemplateResponseMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_GetBlockTemplateResponse); ok { - return x.GetBlockTemplateResponse - } + if x, ok := x.GetPayload().(*KaspadMessage_GetBlockTemplateResponse); ok { + return x.GetBlockTemplateResponse } return nil } func (x *KaspadMessage) GetNotifyBlockAddedRequest() *NotifyBlockAddedRequestMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_NotifyBlockAddedRequest); ok { - return x.NotifyBlockAddedRequest - } + if x, ok := x.GetPayload().(*KaspadMessage_NotifyBlockAddedRequest); ok { + return x.NotifyBlockAddedRequest } return nil } func (x *KaspadMessage) GetNotifyBlockAddedResponse() *NotifyBlockAddedResponseMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_NotifyBlockAddedResponse); ok { - return x.NotifyBlockAddedResponse - } + if x, ok := x.GetPayload().(*KaspadMessage_NotifyBlockAddedResponse); ok { + return x.NotifyBlockAddedResponse } return nil } func (x *KaspadMessage) GetBlockAddedNotification() *BlockAddedNotificationMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_BlockAddedNotification); ok { - return x.BlockAddedNotification - } + if x, ok := x.GetPayload().(*KaspadMessage_BlockAddedNotification); ok { + return x.BlockAddedNotification } return nil } func (x *KaspadMessage) GetGetPeerAddressesRequest() *GetPeerAddressesRequestMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_GetPeerAddressesRequest); ok { - return x.GetPeerAddressesRequest - } + if x, ok := x.GetPayload().(*KaspadMessage_GetPeerAddressesRequest); ok { + return x.GetPeerAddressesRequest } return nil } func (x *KaspadMessage) GetGetPeerAddressesResponse() *GetPeerAddressesResponseMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_GetPeerAddressesResponse); ok { - return x.GetPeerAddressesResponse - } + if x, ok := x.GetPayload().(*KaspadMessage_GetPeerAddressesResponse); ok { + return x.GetPeerAddressesResponse } return nil } func (x *KaspadMessage) GetGetSelectedTipHashRequest() *GetSelectedTipHashRequestMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_GetSelectedTipHashRequest); ok { - return x.GetSelectedTipHashRequest - } + if x, ok := x.GetPayload().(*KaspadMessage_GetSelectedTipHashRequest); ok { + return x.GetSelectedTipHashRequest } return nil } func (x *KaspadMessage) GetGetSelectedTipHashResponse() *GetSelectedTipHashResponseMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_GetSelectedTipHashResponse); ok { - return x.GetSelectedTipHashResponse - } + if x, ok := x.GetPayload().(*KaspadMessage_GetSelectedTipHashResponse); ok { + return x.GetSelectedTipHashResponse } return nil } func (x *KaspadMessage) GetGetMempoolEntryRequest() *GetMempoolEntryRequestMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_GetMempoolEntryRequest); ok { - return x.GetMempoolEntryRequest - } + if x, ok := x.GetPayload().(*KaspadMessage_GetMempoolEntryRequest); ok { + return x.GetMempoolEntryRequest } return nil } func (x *KaspadMessage) GetGetMempoolEntryResponse() *GetMempoolEntryResponseMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_GetMempoolEntryResponse); ok { - return x.GetMempoolEntryResponse - } + if x, ok := x.GetPayload().(*KaspadMessage_GetMempoolEntryResponse); ok { + return x.GetMempoolEntryResponse } return nil } func (x *KaspadMessage) GetGetConnectedPeerInfoRequest() *GetConnectedPeerInfoRequestMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_GetConnectedPeerInfoRequest); ok { - return x.GetConnectedPeerInfoRequest - } + if x, ok := x.GetPayload().(*KaspadMessage_GetConnectedPeerInfoRequest); ok { + return x.GetConnectedPeerInfoRequest } return nil } func (x *KaspadMessage) GetGetConnectedPeerInfoResponse() *GetConnectedPeerInfoResponseMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_GetConnectedPeerInfoResponse); ok { - return x.GetConnectedPeerInfoResponse - } + if x, ok := x.GetPayload().(*KaspadMessage_GetConnectedPeerInfoResponse); ok { + return x.GetConnectedPeerInfoResponse } return nil } func (x *KaspadMessage) GetAddPeerRequest() *AddPeerRequestMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_AddPeerRequest); ok { - return x.AddPeerRequest - } + if x, ok := x.GetPayload().(*KaspadMessage_AddPeerRequest); ok { + return x.AddPeerRequest } return nil } func (x *KaspadMessage) GetAddPeerResponse() *AddPeerResponseMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_AddPeerResponse); ok { - return x.AddPeerResponse - } + if x, ok := x.GetPayload().(*KaspadMessage_AddPeerResponse); ok { + return x.AddPeerResponse } return nil } func (x *KaspadMessage) GetSubmitTransactionRequest() *SubmitTransactionRequestMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_SubmitTransactionRequest); ok { - return x.SubmitTransactionRequest - } + if x, ok := x.GetPayload().(*KaspadMessage_SubmitTransactionRequest); ok { + return x.SubmitTransactionRequest } return nil } func (x *KaspadMessage) GetSubmitTransactionResponse() *SubmitTransactionResponseMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_SubmitTransactionResponse); ok { - return x.SubmitTransactionResponse - } + if x, ok := x.GetPayload().(*KaspadMessage_SubmitTransactionResponse); ok { + return x.SubmitTransactionResponse } return nil } func (x *KaspadMessage) GetNotifyVirtualSelectedParentChainChangedRequest() *NotifyVirtualSelectedParentChainChangedRequestMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_NotifyVirtualSelectedParentChainChangedRequest); ok { - return x.NotifyVirtualSelectedParentChainChangedRequest - } + if x, ok := x.GetPayload().(*KaspadMessage_NotifyVirtualSelectedParentChainChangedRequest); ok { + return x.NotifyVirtualSelectedParentChainChangedRequest } return nil } func (x *KaspadMessage) GetNotifyVirtualSelectedParentChainChangedResponse() *NotifyVirtualSelectedParentChainChangedResponseMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_NotifyVirtualSelectedParentChainChangedResponse); ok { - return x.NotifyVirtualSelectedParentChainChangedResponse - } + if x, ok := x.GetPayload().(*KaspadMessage_NotifyVirtualSelectedParentChainChangedResponse); ok { + return x.NotifyVirtualSelectedParentChainChangedResponse } return nil } func (x *KaspadMessage) GetVirtualSelectedParentChainChangedNotification() *VirtualSelectedParentChainChangedNotificationMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_VirtualSelectedParentChainChangedNotification); ok { - return x.VirtualSelectedParentChainChangedNotification - } + if x, ok := x.GetPayload().(*KaspadMessage_VirtualSelectedParentChainChangedNotification); ok { + return x.VirtualSelectedParentChainChangedNotification } return nil } func (x *KaspadMessage) GetGetBlockRequest() *GetBlockRequestMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_GetBlockRequest); ok { - return x.GetBlockRequest - } + if x, ok := x.GetPayload().(*KaspadMessage_GetBlockRequest); ok { + return x.GetBlockRequest } return nil } func (x *KaspadMessage) GetGetBlockResponse() *GetBlockResponseMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_GetBlockResponse); ok { - return x.GetBlockResponse - } + if x, ok := x.GetPayload().(*KaspadMessage_GetBlockResponse); ok { + return x.GetBlockResponse } return nil } func (x *KaspadMessage) GetGetSubnetworkRequest() *GetSubnetworkRequestMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_GetSubnetworkRequest); ok { - return x.GetSubnetworkRequest - } + if x, ok := x.GetPayload().(*KaspadMessage_GetSubnetworkRequest); ok { + return x.GetSubnetworkRequest } return nil } func (x *KaspadMessage) GetGetSubnetworkResponse() *GetSubnetworkResponseMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_GetSubnetworkResponse); ok { - return x.GetSubnetworkResponse - } + if x, ok := x.GetPayload().(*KaspadMessage_GetSubnetworkResponse); ok { + return x.GetSubnetworkResponse } return nil } func (x *KaspadMessage) GetGetVirtualSelectedParentChainFromBlockRequest() *GetVirtualSelectedParentChainFromBlockRequestMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_GetVirtualSelectedParentChainFromBlockRequest); ok { - return x.GetVirtualSelectedParentChainFromBlockRequest - } + if x, ok := x.GetPayload().(*KaspadMessage_GetVirtualSelectedParentChainFromBlockRequest); ok { + return x.GetVirtualSelectedParentChainFromBlockRequest } return nil } func (x *KaspadMessage) GetGetVirtualSelectedParentChainFromBlockResponse() *GetVirtualSelectedParentChainFromBlockResponseMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_GetVirtualSelectedParentChainFromBlockResponse); ok { - return x.GetVirtualSelectedParentChainFromBlockResponse - } + if x, ok := x.GetPayload().(*KaspadMessage_GetVirtualSelectedParentChainFromBlockResponse); ok { + return x.GetVirtualSelectedParentChainFromBlockResponse } return nil } func (x *KaspadMessage) GetGetBlocksRequest() *GetBlocksRequestMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_GetBlocksRequest); ok { - return x.GetBlocksRequest - } + if x, ok := x.GetPayload().(*KaspadMessage_GetBlocksRequest); ok { + return x.GetBlocksRequest } return nil } func (x *KaspadMessage) GetGetBlocksResponse() *GetBlocksResponseMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_GetBlocksResponse); ok { - return x.GetBlocksResponse - } + if x, ok := x.GetPayload().(*KaspadMessage_GetBlocksResponse); ok { + return x.GetBlocksResponse } return nil } func (x *KaspadMessage) GetGetBlockCountRequest() *GetBlockCountRequestMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_GetBlockCountRequest); ok { - return x.GetBlockCountRequest - } + if x, ok := x.GetPayload().(*KaspadMessage_GetBlockCountRequest); ok { + return x.GetBlockCountRequest } return nil } func (x *KaspadMessage) GetGetBlockCountResponse() *GetBlockCountResponseMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_GetBlockCountResponse); ok { - return x.GetBlockCountResponse - } + if x, ok := x.GetPayload().(*KaspadMessage_GetBlockCountResponse); ok { + return x.GetBlockCountResponse } return nil } func (x *KaspadMessage) GetGetBlockDagInfoRequest() *GetBlockDagInfoRequestMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_GetBlockDagInfoRequest); ok { - return x.GetBlockDagInfoRequest - } + if x, ok := x.GetPayload().(*KaspadMessage_GetBlockDagInfoRequest); ok { + return x.GetBlockDagInfoRequest } return nil } func (x *KaspadMessage) GetGetBlockDagInfoResponse() *GetBlockDagInfoResponseMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_GetBlockDagInfoResponse); ok { - return x.GetBlockDagInfoResponse - } + if x, ok := x.GetPayload().(*KaspadMessage_GetBlockDagInfoResponse); ok { + return x.GetBlockDagInfoResponse } return nil } func (x *KaspadMessage) GetResolveFinalityConflictRequest() *ResolveFinalityConflictRequestMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_ResolveFinalityConflictRequest); ok { - return x.ResolveFinalityConflictRequest - } + if x, ok := x.GetPayload().(*KaspadMessage_ResolveFinalityConflictRequest); ok { + return x.ResolveFinalityConflictRequest } return nil } func (x *KaspadMessage) GetResolveFinalityConflictResponse() *ResolveFinalityConflictResponseMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_ResolveFinalityConflictResponse); ok { - return x.ResolveFinalityConflictResponse - } + if x, ok := x.GetPayload().(*KaspadMessage_ResolveFinalityConflictResponse); ok { + return x.ResolveFinalityConflictResponse } return nil } func (x *KaspadMessage) GetNotifyFinalityConflictsRequest() *NotifyFinalityConflictsRequestMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_NotifyFinalityConflictsRequest); ok { - return x.NotifyFinalityConflictsRequest - } + if x, ok := x.GetPayload().(*KaspadMessage_NotifyFinalityConflictsRequest); ok { + return x.NotifyFinalityConflictsRequest } return nil } func (x *KaspadMessage) GetNotifyFinalityConflictsResponse() *NotifyFinalityConflictsResponseMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_NotifyFinalityConflictsResponse); ok { - return x.NotifyFinalityConflictsResponse - } + if x, ok := x.GetPayload().(*KaspadMessage_NotifyFinalityConflictsResponse); ok { + return x.NotifyFinalityConflictsResponse } return nil } func (x *KaspadMessage) GetFinalityConflictNotification() *FinalityConflictNotificationMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_FinalityConflictNotification); ok { - return x.FinalityConflictNotification - } + if x, ok := x.GetPayload().(*KaspadMessage_FinalityConflictNotification); ok { + return x.FinalityConflictNotification } return nil } func (x *KaspadMessage) GetFinalityConflictResolvedNotification() *FinalityConflictResolvedNotificationMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_FinalityConflictResolvedNotification); ok { - return x.FinalityConflictResolvedNotification - } + if x, ok := x.GetPayload().(*KaspadMessage_FinalityConflictResolvedNotification); ok { + return x.FinalityConflictResolvedNotification } return nil } func (x *KaspadMessage) GetGetMempoolEntriesRequest() *GetMempoolEntriesRequestMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_GetMempoolEntriesRequest); ok { - return x.GetMempoolEntriesRequest - } + if x, ok := x.GetPayload().(*KaspadMessage_GetMempoolEntriesRequest); ok { + return x.GetMempoolEntriesRequest } return nil } func (x *KaspadMessage) GetGetMempoolEntriesResponse() *GetMempoolEntriesResponseMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_GetMempoolEntriesResponse); ok { - return x.GetMempoolEntriesResponse - } + if x, ok := x.GetPayload().(*KaspadMessage_GetMempoolEntriesResponse); ok { + return x.GetMempoolEntriesResponse } return nil } func (x *KaspadMessage) GetShutDownRequest() *ShutDownRequestMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_ShutDownRequest); ok { - return x.ShutDownRequest - } + if x, ok := x.GetPayload().(*KaspadMessage_ShutDownRequest); ok { + return x.ShutDownRequest } return nil } func (x *KaspadMessage) GetShutDownResponse() *ShutDownResponseMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_ShutDownResponse); ok { - return x.ShutDownResponse - } + if x, ok := x.GetPayload().(*KaspadMessage_ShutDownResponse); ok { + return x.ShutDownResponse } return nil } func (x *KaspadMessage) GetGetHeadersRequest() *GetHeadersRequestMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_GetHeadersRequest); ok { - return x.GetHeadersRequest - } + if x, ok := x.GetPayload().(*KaspadMessage_GetHeadersRequest); ok { + return x.GetHeadersRequest } return nil } func (x *KaspadMessage) GetGetHeadersResponse() *GetHeadersResponseMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_GetHeadersResponse); ok { - return x.GetHeadersResponse - } + if x, ok := x.GetPayload().(*KaspadMessage_GetHeadersResponse); ok { + return x.GetHeadersResponse } return nil } func (x *KaspadMessage) GetNotifyUtxosChangedRequest() *NotifyUtxosChangedRequestMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_NotifyUtxosChangedRequest); ok { - return x.NotifyUtxosChangedRequest - } + if x, ok := x.GetPayload().(*KaspadMessage_NotifyUtxosChangedRequest); ok { + return x.NotifyUtxosChangedRequest } return nil } func (x *KaspadMessage) GetNotifyUtxosChangedResponse() *NotifyUtxosChangedResponseMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_NotifyUtxosChangedResponse); ok { - return x.NotifyUtxosChangedResponse - } + if x, ok := x.GetPayload().(*KaspadMessage_NotifyUtxosChangedResponse); ok { + return x.NotifyUtxosChangedResponse } return nil } func (x *KaspadMessage) GetUtxosChangedNotification() *UtxosChangedNotificationMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_UtxosChangedNotification); ok { - return x.UtxosChangedNotification - } + if x, ok := x.GetPayload().(*KaspadMessage_UtxosChangedNotification); ok { + return x.UtxosChangedNotification } return nil } func (x *KaspadMessage) GetGetUtxosByAddressesRequest() *GetUtxosByAddressesRequestMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_GetUtxosByAddressesRequest); ok { - return x.GetUtxosByAddressesRequest - } + if x, ok := x.GetPayload().(*KaspadMessage_GetUtxosByAddressesRequest); ok { + return x.GetUtxosByAddressesRequest } return nil } func (x *KaspadMessage) GetGetUtxosByAddressesResponse() *GetUtxosByAddressesResponseMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_GetUtxosByAddressesResponse); ok { - return x.GetUtxosByAddressesResponse - } + if x, ok := x.GetPayload().(*KaspadMessage_GetUtxosByAddressesResponse); ok { + return x.GetUtxosByAddressesResponse } return nil } func (x *KaspadMessage) GetGetVirtualSelectedParentBlueScoreRequest() *GetVirtualSelectedParentBlueScoreRequestMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_GetVirtualSelectedParentBlueScoreRequest); ok { - return x.GetVirtualSelectedParentBlueScoreRequest - } + if x, ok := x.GetPayload().(*KaspadMessage_GetVirtualSelectedParentBlueScoreRequest); ok { + return x.GetVirtualSelectedParentBlueScoreRequest } return nil } func (x *KaspadMessage) GetGetVirtualSelectedParentBlueScoreResponse() *GetVirtualSelectedParentBlueScoreResponseMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_GetVirtualSelectedParentBlueScoreResponse); ok { - return x.GetVirtualSelectedParentBlueScoreResponse - } + if x, ok := x.GetPayload().(*KaspadMessage_GetVirtualSelectedParentBlueScoreResponse); ok { + return x.GetVirtualSelectedParentBlueScoreResponse } return nil } func (x *KaspadMessage) GetNotifyVirtualSelectedParentBlueScoreChangedRequest() *NotifyVirtualSelectedParentBlueScoreChangedRequestMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_NotifyVirtualSelectedParentBlueScoreChangedRequest); ok { - return x.NotifyVirtualSelectedParentBlueScoreChangedRequest - } + if x, ok := x.GetPayload().(*KaspadMessage_NotifyVirtualSelectedParentBlueScoreChangedRequest); ok { + return x.NotifyVirtualSelectedParentBlueScoreChangedRequest } return nil } func (x *KaspadMessage) GetNotifyVirtualSelectedParentBlueScoreChangedResponse() *NotifyVirtualSelectedParentBlueScoreChangedResponseMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_NotifyVirtualSelectedParentBlueScoreChangedResponse); ok { - return x.NotifyVirtualSelectedParentBlueScoreChangedResponse - } + if x, ok := x.GetPayload().(*KaspadMessage_NotifyVirtualSelectedParentBlueScoreChangedResponse); ok { + return x.NotifyVirtualSelectedParentBlueScoreChangedResponse } return nil } func (x *KaspadMessage) GetVirtualSelectedParentBlueScoreChangedNotification() *VirtualSelectedParentBlueScoreChangedNotificationMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_VirtualSelectedParentBlueScoreChangedNotification); ok { - return x.VirtualSelectedParentBlueScoreChangedNotification - } + if x, ok := x.GetPayload().(*KaspadMessage_VirtualSelectedParentBlueScoreChangedNotification); ok { + return x.VirtualSelectedParentBlueScoreChangedNotification } return nil } func (x *KaspadMessage) GetBanRequest() *BanRequestMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_BanRequest); ok { - return x.BanRequest - } + if x, ok := x.GetPayload().(*KaspadMessage_BanRequest); ok { + return x.BanRequest } return nil } func (x *KaspadMessage) GetBanResponse() *BanResponseMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_BanResponse); ok { - return x.BanResponse - } + if x, ok := x.GetPayload().(*KaspadMessage_BanResponse); ok { + return x.BanResponse } return nil } func (x *KaspadMessage) GetUnbanRequest() *UnbanRequestMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_UnbanRequest); ok { - return x.UnbanRequest - } + if x, ok := x.GetPayload().(*KaspadMessage_UnbanRequest); ok { + return x.UnbanRequest } return nil } func (x *KaspadMessage) GetUnbanResponse() *UnbanResponseMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_UnbanResponse); ok { - return x.UnbanResponse - } + if x, ok := x.GetPayload().(*KaspadMessage_UnbanResponse); ok { + return x.UnbanResponse } return nil } func (x *KaspadMessage) GetGetInfoRequest() *GetInfoRequestMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_GetInfoRequest); ok { - return x.GetInfoRequest - } + if x, ok := x.GetPayload().(*KaspadMessage_GetInfoRequest); ok { + return x.GetInfoRequest } return nil } func (x *KaspadMessage) GetGetInfoResponse() *GetInfoResponseMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_GetInfoResponse); ok { - return x.GetInfoResponse - } + if x, ok := x.GetPayload().(*KaspadMessage_GetInfoResponse); ok { + return x.GetInfoResponse } return nil } func (x *KaspadMessage) GetStopNotifyingUtxosChangedRequest() *StopNotifyingUtxosChangedRequestMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_StopNotifyingUtxosChangedRequest); ok { - return x.StopNotifyingUtxosChangedRequest - } + if x, ok := x.GetPayload().(*KaspadMessage_StopNotifyingUtxosChangedRequest); ok { + return x.StopNotifyingUtxosChangedRequest } return nil } func (x *KaspadMessage) GetStopNotifyingUtxosChangedResponse() *StopNotifyingUtxosChangedResponseMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_StopNotifyingUtxosChangedResponse); ok { - return x.StopNotifyingUtxosChangedResponse - } + if x, ok := x.GetPayload().(*KaspadMessage_StopNotifyingUtxosChangedResponse); ok { + return x.StopNotifyingUtxosChangedResponse } return nil } func (x *KaspadMessage) GetNotifyPruningPointUTXOSetOverrideRequest() *NotifyPruningPointUTXOSetOverrideRequestMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_NotifyPruningPointUTXOSetOverrideRequest); ok { - return x.NotifyPruningPointUTXOSetOverrideRequest - } + if x, ok := x.GetPayload().(*KaspadMessage_NotifyPruningPointUTXOSetOverrideRequest); ok { + return x.NotifyPruningPointUTXOSetOverrideRequest } return nil } func (x *KaspadMessage) GetNotifyPruningPointUTXOSetOverrideResponse() *NotifyPruningPointUTXOSetOverrideResponseMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_NotifyPruningPointUTXOSetOverrideResponse); ok { - return x.NotifyPruningPointUTXOSetOverrideResponse - } + if x, ok := x.GetPayload().(*KaspadMessage_NotifyPruningPointUTXOSetOverrideResponse); ok { + return x.NotifyPruningPointUTXOSetOverrideResponse } return nil } func (x *KaspadMessage) GetPruningPointUTXOSetOverrideNotification() *PruningPointUTXOSetOverrideNotificationMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_PruningPointUTXOSetOverrideNotification); ok { - return x.PruningPointUTXOSetOverrideNotification - } + if x, ok := x.GetPayload().(*KaspadMessage_PruningPointUTXOSetOverrideNotification); ok { + return x.PruningPointUTXOSetOverrideNotification } return nil } func (x *KaspadMessage) GetStopNotifyingPruningPointUTXOSetOverrideRequest() *StopNotifyingPruningPointUTXOSetOverrideRequestMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_StopNotifyingPruningPointUTXOSetOverrideRequest); ok { - return x.StopNotifyingPruningPointUTXOSetOverrideRequest - } + if x, ok := x.GetPayload().(*KaspadMessage_StopNotifyingPruningPointUTXOSetOverrideRequest); ok { + return x.StopNotifyingPruningPointUTXOSetOverrideRequest } return nil } func (x *KaspadMessage) GetStopNotifyingPruningPointUTXOSetOverrideResponse() *StopNotifyingPruningPointUTXOSetOverrideResponseMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_StopNotifyingPruningPointUTXOSetOverrideResponse); ok { - return x.StopNotifyingPruningPointUTXOSetOverrideResponse - } + if x, ok := x.GetPayload().(*KaspadMessage_StopNotifyingPruningPointUTXOSetOverrideResponse); ok { + return x.StopNotifyingPruningPointUTXOSetOverrideResponse } return nil } func (x *KaspadMessage) GetEstimateNetworkHashesPerSecondRequest() *EstimateNetworkHashesPerSecondRequestMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_EstimateNetworkHashesPerSecondRequest); ok { - return x.EstimateNetworkHashesPerSecondRequest - } + if x, ok := x.GetPayload().(*KaspadMessage_EstimateNetworkHashesPerSecondRequest); ok { + return x.EstimateNetworkHashesPerSecondRequest } return nil } func (x *KaspadMessage) GetEstimateNetworkHashesPerSecondResponse() *EstimateNetworkHashesPerSecondResponseMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_EstimateNetworkHashesPerSecondResponse); ok { - return x.EstimateNetworkHashesPerSecondResponse - } + if x, ok := x.GetPayload().(*KaspadMessage_EstimateNetworkHashesPerSecondResponse); ok { + return x.EstimateNetworkHashesPerSecondResponse } return nil } func (x *KaspadMessage) GetNotifyVirtualDaaScoreChangedRequest() *NotifyVirtualDaaScoreChangedRequestMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_NotifyVirtualDaaScoreChangedRequest); ok { - return x.NotifyVirtualDaaScoreChangedRequest - } + if x, ok := x.GetPayload().(*KaspadMessage_NotifyVirtualDaaScoreChangedRequest); ok { + return x.NotifyVirtualDaaScoreChangedRequest } return nil } func (x *KaspadMessage) GetNotifyVirtualDaaScoreChangedResponse() *NotifyVirtualDaaScoreChangedResponseMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_NotifyVirtualDaaScoreChangedResponse); ok { - return x.NotifyVirtualDaaScoreChangedResponse - } + if x, ok := x.GetPayload().(*KaspadMessage_NotifyVirtualDaaScoreChangedResponse); ok { + return x.NotifyVirtualDaaScoreChangedResponse } return nil } func (x *KaspadMessage) GetVirtualDaaScoreChangedNotification() *VirtualDaaScoreChangedNotificationMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_VirtualDaaScoreChangedNotification); ok { - return x.VirtualDaaScoreChangedNotification - } + if x, ok := x.GetPayload().(*KaspadMessage_VirtualDaaScoreChangedNotification); ok { + return x.VirtualDaaScoreChangedNotification } return nil } func (x *KaspadMessage) GetGetBalanceByAddressRequest() *GetBalanceByAddressRequestMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_GetBalanceByAddressRequest); ok { - return x.GetBalanceByAddressRequest - } + if x, ok := x.GetPayload().(*KaspadMessage_GetBalanceByAddressRequest); ok { + return x.GetBalanceByAddressRequest } return nil } func (x *KaspadMessage) GetGetBalanceByAddressResponse() *GetBalanceByAddressResponseMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_GetBalanceByAddressResponse); ok { - return x.GetBalanceByAddressResponse - } + if x, ok := x.GetPayload().(*KaspadMessage_GetBalanceByAddressResponse); ok { + return x.GetBalanceByAddressResponse } return nil } func (x *KaspadMessage) GetGetBalancesByAddressesRequest() *GetBalancesByAddressesRequestMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_GetBalancesByAddressesRequest); ok { - return x.GetBalancesByAddressesRequest - } + if x, ok := x.GetPayload().(*KaspadMessage_GetBalancesByAddressesRequest); ok { + return x.GetBalancesByAddressesRequest } return nil } func (x *KaspadMessage) GetGetBalancesByAddressesResponse() *GetBalancesByAddressesResponseMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_GetBalancesByAddressesResponse); ok { - return x.GetBalancesByAddressesResponse - } + if x, ok := x.GetPayload().(*KaspadMessage_GetBalancesByAddressesResponse); ok { + return x.GetBalancesByAddressesResponse } return nil } func (x *KaspadMessage) GetNotifyNewBlockTemplateRequest() *NotifyNewBlockTemplateRequestMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_NotifyNewBlockTemplateRequest); ok { - return x.NotifyNewBlockTemplateRequest - } + if x, ok := x.GetPayload().(*KaspadMessage_NotifyNewBlockTemplateRequest); ok { + return x.NotifyNewBlockTemplateRequest } return nil } func (x *KaspadMessage) GetNotifyNewBlockTemplateResponse() *NotifyNewBlockTemplateResponseMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_NotifyNewBlockTemplateResponse); ok { - return x.NotifyNewBlockTemplateResponse - } + if x, ok := x.GetPayload().(*KaspadMessage_NotifyNewBlockTemplateResponse); ok { + return x.NotifyNewBlockTemplateResponse } return nil } func (x *KaspadMessage) GetNewBlockTemplateNotification() *NewBlockTemplateNotificationMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_NewBlockTemplateNotification); ok { - return x.NewBlockTemplateNotification - } + if x, ok := x.GetPayload().(*KaspadMessage_NewBlockTemplateNotification); ok { + return x.NewBlockTemplateNotification } return nil } func (x *KaspadMessage) GetGetMempoolEntriesByAddressesRequest() *GetMempoolEntriesByAddressesRequestMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_GetMempoolEntriesByAddressesRequest); ok { - return x.GetMempoolEntriesByAddressesRequest - } + if x, ok := x.GetPayload().(*KaspadMessage_GetMempoolEntriesByAddressesRequest); ok { + return x.GetMempoolEntriesByAddressesRequest } return nil } func (x *KaspadMessage) GetGetMempoolEntriesByAddressesResponse() *GetMempoolEntriesByAddressesResponseMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_GetMempoolEntriesByAddressesResponse); ok { - return x.GetMempoolEntriesByAddressesResponse - } + if x, ok := x.GetPayload().(*KaspadMessage_GetMempoolEntriesByAddressesResponse); ok { + return x.GetMempoolEntriesByAddressesResponse } return nil } func (x *KaspadMessage) GetGetCoinSupplyRequest() *GetCoinSupplyRequestMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_GetCoinSupplyRequest); ok { - return x.GetCoinSupplyRequest - } + if x, ok := x.GetPayload().(*KaspadMessage_GetCoinSupplyRequest); ok { + return x.GetCoinSupplyRequest } return nil } func (x *KaspadMessage) GetGetCoinSupplyResponse() *GetCoinSupplyResponseMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_GetCoinSupplyResponse); ok { - return x.GetCoinSupplyResponse - } + if x, ok := x.GetPayload().(*KaspadMessage_GetCoinSupplyResponse); ok { + return x.GetCoinSupplyResponse } return nil } func (x *KaspadMessage) GetPingRequest() *PingRequestMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_PingRequest); ok { - return x.PingRequest - } + if x, ok := x.GetPayload().(*KaspadMessage_PingRequest); ok { + return x.PingRequest } return nil } func (x *KaspadMessage) GetGetMetricsRequest() *GetMetricsRequestMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_GetMetricsRequest); ok { - return x.GetMetricsRequest - } + if x, ok := x.GetPayload().(*KaspadMessage_GetMetricsRequest); ok { + return x.GetMetricsRequest } return nil } func (x *KaspadMessage) GetGetServerInfoRequest() *GetServerInfoRequestMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_GetServerInfoRequest); ok { - return x.GetServerInfoRequest - } + if x, ok := x.GetPayload().(*KaspadMessage_GetServerInfoRequest); ok { + return x.GetServerInfoRequest } return nil } func (x *KaspadMessage) GetGetSyncStatusRequest() *GetSyncStatusRequestMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_GetSyncStatusRequest); ok { - return x.GetSyncStatusRequest - } + if x, ok := x.GetPayload().(*KaspadMessage_GetSyncStatusRequest); ok { + return x.GetSyncStatusRequest } return nil } func (x *KaspadMessage) GetGetDaaScoreTimestampEstimateRequest() *GetDaaScoreTimestampEstimateRequestMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_GetDaaScoreTimestampEstimateRequest); ok { - return x.GetDaaScoreTimestampEstimateRequest - } + if x, ok := x.GetPayload().(*KaspadMessage_GetDaaScoreTimestampEstimateRequest); ok { + return x.GetDaaScoreTimestampEstimateRequest } return nil } func (x *KaspadMessage) GetSubmitTransactionReplacementRequest() *SubmitTransactionReplacementRequestMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_SubmitTransactionReplacementRequest); ok { - return x.SubmitTransactionReplacementRequest - } + if x, ok := x.GetPayload().(*KaspadMessage_SubmitTransactionReplacementRequest); ok { + return x.SubmitTransactionReplacementRequest } return nil } func (x *KaspadMessage) GetGetConnectionsRequest() *GetConnectionsRequestMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_GetConnectionsRequest); ok { - return x.GetConnectionsRequest - } + if x, ok := x.GetPayload().(*KaspadMessage_GetConnectionsRequest); ok { + return x.GetConnectionsRequest } return nil } func (x *KaspadMessage) GetGetSystemInfoRequest() *GetSystemInfoRequestMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_GetSystemInfoRequest); ok { - return x.GetSystemInfoRequest - } + if x, ok := x.GetPayload().(*KaspadMessage_GetSystemInfoRequest); ok { + return x.GetSystemInfoRequest } return nil } func (x *KaspadMessage) GetGetFeeEstimateRequest() *GetFeeEstimateRequestMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_GetFeeEstimateRequest); ok { - return x.GetFeeEstimateRequest - } + if x, ok := x.GetPayload().(*KaspadMessage_GetFeeEstimateRequest); ok { + return x.GetFeeEstimateRequest } return nil } func (x *KaspadMessage) GetGetFeeEstimateExperimentalRequest() *GetFeeEstimateExperimentalRequestMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_GetFeeEstimateExperimentalRequest); ok { - return x.GetFeeEstimateExperimentalRequest - } + if x, ok := x.GetPayload().(*KaspadMessage_GetFeeEstimateExperimentalRequest); ok { + return x.GetFeeEstimateExperimentalRequest } return nil } func (x *KaspadMessage) GetGetCurrentBlockColorRequest() *GetCurrentBlockColorRequestMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_GetCurrentBlockColorRequest); ok { - return x.GetCurrentBlockColorRequest - } + if x, ok := x.GetPayload().(*KaspadMessage_GetCurrentBlockColorRequest); ok { + return x.GetCurrentBlockColorRequest } return nil } func (x *KaspadMessage) GetPingResponse() *PingResponseMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_PingResponse); ok { - return x.PingResponse - } + if x, ok := x.GetPayload().(*KaspadMessage_PingResponse); ok { + return x.PingResponse } return nil } func (x *KaspadMessage) GetGetMetricsResponse() *GetMetricsResponseMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_GetMetricsResponse); ok { - return x.GetMetricsResponse - } + if x, ok := x.GetPayload().(*KaspadMessage_GetMetricsResponse); ok { + return x.GetMetricsResponse } return nil } func (x *KaspadMessage) GetGetServerInfoResponse() *GetServerInfoResponseMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_GetServerInfoResponse); ok { - return x.GetServerInfoResponse - } + if x, ok := x.GetPayload().(*KaspadMessage_GetServerInfoResponse); ok { + return x.GetServerInfoResponse } return nil } func (x *KaspadMessage) GetGetSyncStatusResponse() *GetSyncStatusResponseMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_GetSyncStatusResponse); ok { - return x.GetSyncStatusResponse - } + if x, ok := x.GetPayload().(*KaspadMessage_GetSyncStatusResponse); ok { + return x.GetSyncStatusResponse } return nil } func (x *KaspadMessage) GetGetDaaScoreTimestampEstimateResponse() *GetDaaScoreTimestampEstimateResponseMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_GetDaaScoreTimestampEstimateResponse); ok { - return x.GetDaaScoreTimestampEstimateResponse - } + if x, ok := x.GetPayload().(*KaspadMessage_GetDaaScoreTimestampEstimateResponse); ok { + return x.GetDaaScoreTimestampEstimateResponse } return nil } func (x *KaspadMessage) GetSubmitTransactionReplacementResponse() *SubmitTransactionReplacementResponseMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_SubmitTransactionReplacementResponse); ok { - return x.SubmitTransactionReplacementResponse - } + if x, ok := x.GetPayload().(*KaspadMessage_SubmitTransactionReplacementResponse); ok { + return x.SubmitTransactionReplacementResponse } return nil } func (x *KaspadMessage) GetGetConnectionsResponse() *GetConnectionsResponseMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_GetConnectionsResponse); ok { - return x.GetConnectionsResponse - } + if x, ok := x.GetPayload().(*KaspadMessage_GetConnectionsResponse); ok { + return x.GetConnectionsResponse } return nil } func (x *KaspadMessage) GetGetSystemInfoResponse() *GetSystemInfoResponseMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_GetSystemInfoResponse); ok { - return x.GetSystemInfoResponse - } + if x, ok := x.GetPayload().(*KaspadMessage_GetSystemInfoResponse); ok { + return x.GetSystemInfoResponse } return nil } func (x *KaspadMessage) GetGetFeeEstimateResponse() *GetFeeEstimateResponseMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_GetFeeEstimateResponse); ok { - return x.GetFeeEstimateResponse - } + if x, ok := x.GetPayload().(*KaspadMessage_GetFeeEstimateResponse); ok { + return x.GetFeeEstimateResponse } return nil } func (x *KaspadMessage) GetGetFeeEstimateExperimentalResponse() *GetFeeEstimateExperimentalResponseMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_GetFeeEstimateExperimentalResponse); ok { - return x.GetFeeEstimateExperimentalResponse - } + if x, ok := x.GetPayload().(*KaspadMessage_GetFeeEstimateExperimentalResponse); ok { + return x.GetFeeEstimateExperimentalResponse } return nil } func (x *KaspadMessage) GetGetCurrentBlockColorResponse() *GetCurrentBlockColorResponseMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_GetCurrentBlockColorResponse); ok { - return x.GetCurrentBlockColorResponse - } + if x, ok := x.GetPayload().(*KaspadMessage_GetCurrentBlockColorResponse); ok { + return x.GetCurrentBlockColorResponse } return nil } func (x *KaspadMessage) GetGetPruningWindowRootsRequest() *GetPruningWindowRootsRequestMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_GetPruningWindowRootsRequest); ok { - return x.GetPruningWindowRootsRequest - } + if x, ok := x.GetPayload().(*KaspadMessage_GetPruningWindowRootsRequest); ok { + return x.GetPruningWindowRootsRequest } return nil } func (x *KaspadMessage) GetGetPruningWindowRootsResponse() *GetPruningWindowRootsResponseMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_GetPruningWindowRootsResponse); ok { - return x.GetPruningWindowRootsResponse - } + if x, ok := x.GetPayload().(*KaspadMessage_GetPruningWindowRootsResponse); ok { + return x.GetPruningWindowRootsResponse } return nil } func (x *KaspadMessage) GetAddArchivalBlocksRequest() *AddArchivalBlocksRequestMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_AddArchivalBlocksRequest); ok { - return x.AddArchivalBlocksRequest - } + if x, ok := x.GetPayload().(*KaspadMessage_AddArchivalBlocksRequest); ok { + return x.AddArchivalBlocksRequest } return nil } func (x *KaspadMessage) GetAddArchivalBlocksResponse() *AddArchivalBlocksResponseMessage { - if x != nil { - if x, ok := x.Payload.(*KaspadMessage_AddArchivalBlocksResponse); ok { - return x.AddArchivalBlocksResponse - } + if x, ok := x.GetPayload().(*KaspadMessage_AddArchivalBlocksResponse); ok { + return x.AddArchivalBlocksResponse } return nil } @@ -2569,7 +2259,7 @@ func (*KaspadMessage_AddArchivalBlocksResponse) isKaspadMessage_Payload() {} var File_messages_proto protoreflect.FileDescriptor -var file_messages_proto_rawDesc = string([]byte{ +var file_messages_proto_rawDesc = []byte{ 0x0a, 0x0e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x09, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x77, 0x69, 0x72, 0x65, 0x1a, 0x09, 0x70, 0x32, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x09, 0x72, 0x70, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, @@ -3640,22 +3330,22 @@ var file_messages_proto_rawDesc = string([]byte{ 0x6d, 0x2f, 0x6b, 0x61, 0x73, 0x70, 0x61, 0x6e, 0x65, 0x74, 0x2f, 0x6b, 0x61, 0x73, 0x70, 0x61, 0x64, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x77, 0x69, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -}) +} var ( file_messages_proto_rawDescOnce sync.Once - file_messages_proto_rawDescData []byte + file_messages_proto_rawDescData = file_messages_proto_rawDesc ) func file_messages_proto_rawDescGZIP() []byte { file_messages_proto_rawDescOnce.Do(func() { - file_messages_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_messages_proto_rawDesc), len(file_messages_proto_rawDesc))) + file_messages_proto_rawDescData = protoimpl.X.CompressGZIP(file_messages_proto_rawDescData) }) return file_messages_proto_rawDescData } var file_messages_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_messages_proto_goTypes = []any{ +var file_messages_proto_goTypes = []interface{}{ (*KaspadMessage)(nil), // 0: protowire.KaspadMessage (*AddressesMessage)(nil), // 1: protowire.AddressesMessage (*BlockMessage)(nil), // 2: protowire.BlockMessage @@ -3988,7 +3678,21 @@ func file_messages_proto_init() { } file_p2p_proto_init() file_rpc_proto_init() - file_messages_proto_msgTypes[0].OneofWrappers = []any{ + if !protoimpl.UnsafeEnabled { + file_messages_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*KaspadMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_messages_proto_msgTypes[0].OneofWrappers = []interface{}{ (*KaspadMessage_Addresses)(nil), (*KaspadMessage_Block)(nil), (*KaspadMessage_Transaction)(nil), @@ -4150,7 +3854,7 @@ func file_messages_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: unsafe.Slice(unsafe.StringData(file_messages_proto_rawDesc), len(file_messages_proto_rawDesc)), + RawDescriptor: file_messages_proto_rawDesc, NumEnums: 0, NumMessages: 1, NumExtensions: 0, @@ -4161,6 +3865,7 @@ func file_messages_proto_init() { MessageInfos: file_messages_proto_msgTypes, }.Build() File_messages_proto = out.File + file_messages_proto_rawDesc = nil file_messages_proto_goTypes = nil file_messages_proto_depIdxs = nil } diff --git a/infrastructure/network/netadapter/server/grpcserver/protowire/p2p.pb.go b/infrastructure/network/netadapter/server/grpcserver/protowire/p2p.pb.go index 43910f787..655dc9cf7 100644 --- a/infrastructure/network/netadapter/server/grpcserver/protowire/p2p.pb.go +++ b/infrastructure/network/netadapter/server/grpcserver/protowire/p2p.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.5 +// protoc-gen-go v1.33.0 // protoc v3.12.4 // source: p2p.proto @@ -11,7 +11,6 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" - unsafe "unsafe" ) const ( @@ -22,18 +21,21 @@ const ( ) type RequestAddressesMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - IncludeAllSubnetworks bool `protobuf:"varint,1,opt,name=includeAllSubnetworks,proto3" json:"includeAllSubnetworks,omitempty"` - SubnetworkId *SubnetworkId `protobuf:"bytes,2,opt,name=subnetworkId,proto3" json:"subnetworkId,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + IncludeAllSubnetworks bool `protobuf:"varint,1,opt,name=includeAllSubnetworks,proto3" json:"includeAllSubnetworks,omitempty"` + SubnetworkId *SubnetworkId `protobuf:"bytes,2,opt,name=subnetworkId,proto3" json:"subnetworkId,omitempty"` } func (x *RequestAddressesMessage) Reset() { *x = RequestAddressesMessage{} - mi := &file_p2p_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_p2p_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *RequestAddressesMessage) String() string { @@ -44,7 +46,7 @@ func (*RequestAddressesMessage) ProtoMessage() {} func (x *RequestAddressesMessage) ProtoReflect() protoreflect.Message { mi := &file_p2p_proto_msgTypes[0] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -74,17 +76,20 @@ func (x *RequestAddressesMessage) GetSubnetworkId() *SubnetworkId { } type AddressesMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - AddressList []*NetAddress `protobuf:"bytes,1,rep,name=addressList,proto3" json:"addressList,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + AddressList []*NetAddress `protobuf:"bytes,1,rep,name=addressList,proto3" json:"addressList,omitempty"` } func (x *AddressesMessage) Reset() { *x = AddressesMessage{} - mi := &file_p2p_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_p2p_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *AddressesMessage) String() string { @@ -95,7 +100,7 @@ func (*AddressesMessage) ProtoMessage() {} func (x *AddressesMessage) ProtoReflect() protoreflect.Message { mi := &file_p2p_proto_msgTypes[1] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -118,19 +123,22 @@ func (x *AddressesMessage) GetAddressList() []*NetAddress { } type NetAddress struct { - state protoimpl.MessageState `protogen:"open.v1"` - Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` - Ip []byte `protobuf:"bytes,3,opt,name=ip,proto3" json:"ip,omitempty"` - Port uint32 `protobuf:"varint,4,opt,name=port,proto3" json:"port,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + Ip []byte `protobuf:"bytes,3,opt,name=ip,proto3" json:"ip,omitempty"` + Port uint32 `protobuf:"varint,4,opt,name=port,proto3" json:"port,omitempty"` } func (x *NetAddress) Reset() { *x = NetAddress{} - mi := &file_p2p_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_p2p_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *NetAddress) String() string { @@ -141,7 +149,7 @@ func (*NetAddress) ProtoMessage() {} func (x *NetAddress) ProtoReflect() protoreflect.Message { mi := &file_p2p_proto_msgTypes[2] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -178,17 +186,20 @@ func (x *NetAddress) GetPort() uint32 { } type SubnetworkId struct { - state protoimpl.MessageState `protogen:"open.v1"` - Bytes []byte `protobuf:"bytes,1,opt,name=bytes,proto3" json:"bytes,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Bytes []byte `protobuf:"bytes,1,opt,name=bytes,proto3" json:"bytes,omitempty"` } func (x *SubnetworkId) Reset() { *x = SubnetworkId{} - mi := &file_p2p_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_p2p_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *SubnetworkId) String() string { @@ -199,7 +210,7 @@ func (*SubnetworkId) ProtoMessage() {} func (x *SubnetworkId) ProtoReflect() protoreflect.Message { mi := &file_p2p_proto_msgTypes[3] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -222,24 +233,27 @@ func (x *SubnetworkId) GetBytes() []byte { } type TransactionMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - Version uint32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` - Inputs []*TransactionInput `protobuf:"bytes,2,rep,name=inputs,proto3" json:"inputs,omitempty"` - Outputs []*TransactionOutput `protobuf:"bytes,3,rep,name=outputs,proto3" json:"outputs,omitempty"` - LockTime uint64 `protobuf:"varint,4,opt,name=lockTime,proto3" json:"lockTime,omitempty"` - SubnetworkId *SubnetworkId `protobuf:"bytes,5,opt,name=subnetworkId,proto3" json:"subnetworkId,omitempty"` - Gas uint64 `protobuf:"varint,6,opt,name=gas,proto3" json:"gas,omitempty"` - Payload []byte `protobuf:"bytes,8,opt,name=payload,proto3" json:"payload,omitempty"` - Mass uint64 `protobuf:"varint,9,opt,name=mass,proto3" json:"mass,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Version uint32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` + Inputs []*TransactionInput `protobuf:"bytes,2,rep,name=inputs,proto3" json:"inputs,omitempty"` + Outputs []*TransactionOutput `protobuf:"bytes,3,rep,name=outputs,proto3" json:"outputs,omitempty"` + LockTime uint64 `protobuf:"varint,4,opt,name=lockTime,proto3" json:"lockTime,omitempty"` + SubnetworkId *SubnetworkId `protobuf:"bytes,5,opt,name=subnetworkId,proto3" json:"subnetworkId,omitempty"` + Gas uint64 `protobuf:"varint,6,opt,name=gas,proto3" json:"gas,omitempty"` + Payload []byte `protobuf:"bytes,8,opt,name=payload,proto3" json:"payload,omitempty"` + Mass uint64 `protobuf:"varint,9,opt,name=mass,proto3" json:"mass,omitempty"` } func (x *TransactionMessage) Reset() { *x = TransactionMessage{} - mi := &file_p2p_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_p2p_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *TransactionMessage) String() string { @@ -250,7 +264,7 @@ func (*TransactionMessage) ProtoMessage() {} func (x *TransactionMessage) ProtoReflect() protoreflect.Message { mi := &file_p2p_proto_msgTypes[4] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -322,20 +336,23 @@ func (x *TransactionMessage) GetMass() uint64 { } type TransactionInput struct { - state protoimpl.MessageState `protogen:"open.v1"` - PreviousOutpoint *Outpoint `protobuf:"bytes,1,opt,name=previousOutpoint,proto3" json:"previousOutpoint,omitempty"` - SignatureScript []byte `protobuf:"bytes,2,opt,name=signatureScript,proto3" json:"signatureScript,omitempty"` - Sequence uint64 `protobuf:"varint,3,opt,name=sequence,proto3" json:"sequence,omitempty"` - SigOpCount uint32 `protobuf:"varint,4,opt,name=sigOpCount,proto3" json:"sigOpCount,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + PreviousOutpoint *Outpoint `protobuf:"bytes,1,opt,name=previousOutpoint,proto3" json:"previousOutpoint,omitempty"` + SignatureScript []byte `protobuf:"bytes,2,opt,name=signatureScript,proto3" json:"signatureScript,omitempty"` + Sequence uint64 `protobuf:"varint,3,opt,name=sequence,proto3" json:"sequence,omitempty"` + SigOpCount uint32 `protobuf:"varint,4,opt,name=sigOpCount,proto3" json:"sigOpCount,omitempty"` } func (x *TransactionInput) Reset() { *x = TransactionInput{} - mi := &file_p2p_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_p2p_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *TransactionInput) String() string { @@ -346,7 +363,7 @@ func (*TransactionInput) ProtoMessage() {} func (x *TransactionInput) ProtoReflect() protoreflect.Message { mi := &file_p2p_proto_msgTypes[5] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -390,18 +407,21 @@ func (x *TransactionInput) GetSigOpCount() uint32 { } type Outpoint struct { - state protoimpl.MessageState `protogen:"open.v1"` - TransactionId *TransactionId `protobuf:"bytes,1,opt,name=transactionId,proto3" json:"transactionId,omitempty"` - Index uint32 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + TransactionId *TransactionId `protobuf:"bytes,1,opt,name=transactionId,proto3" json:"transactionId,omitempty"` + Index uint32 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"` } func (x *Outpoint) Reset() { *x = Outpoint{} - mi := &file_p2p_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_p2p_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *Outpoint) String() string { @@ -412,7 +432,7 @@ func (*Outpoint) ProtoMessage() {} func (x *Outpoint) ProtoReflect() protoreflect.Message { mi := &file_p2p_proto_msgTypes[6] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -442,17 +462,20 @@ func (x *Outpoint) GetIndex() uint32 { } type TransactionId struct { - state protoimpl.MessageState `protogen:"open.v1"` - Bytes []byte `protobuf:"bytes,1,opt,name=bytes,proto3" json:"bytes,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Bytes []byte `protobuf:"bytes,1,opt,name=bytes,proto3" json:"bytes,omitempty"` } func (x *TransactionId) Reset() { *x = TransactionId{} - mi := &file_p2p_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_p2p_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *TransactionId) String() string { @@ -463,7 +486,7 @@ func (*TransactionId) ProtoMessage() {} func (x *TransactionId) ProtoReflect() protoreflect.Message { mi := &file_p2p_proto_msgTypes[7] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -486,18 +509,21 @@ func (x *TransactionId) GetBytes() []byte { } type ScriptPublicKey struct { - state protoimpl.MessageState `protogen:"open.v1"` - Script []byte `protobuf:"bytes,1,opt,name=script,proto3" json:"script,omitempty"` - Version uint32 `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Script []byte `protobuf:"bytes,1,opt,name=script,proto3" json:"script,omitempty"` + Version uint32 `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"` } func (x *ScriptPublicKey) Reset() { *x = ScriptPublicKey{} - mi := &file_p2p_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_p2p_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *ScriptPublicKey) String() string { @@ -508,7 +534,7 @@ func (*ScriptPublicKey) ProtoMessage() {} func (x *ScriptPublicKey) ProtoReflect() protoreflect.Message { mi := &file_p2p_proto_msgTypes[8] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -538,18 +564,21 @@ func (x *ScriptPublicKey) GetVersion() uint32 { } type TransactionOutput struct { - state protoimpl.MessageState `protogen:"open.v1"` - Value uint64 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` - ScriptPublicKey *ScriptPublicKey `protobuf:"bytes,2,opt,name=scriptPublicKey,proto3" json:"scriptPublicKey,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Value uint64 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` + ScriptPublicKey *ScriptPublicKey `protobuf:"bytes,2,opt,name=scriptPublicKey,proto3" json:"scriptPublicKey,omitempty"` } func (x *TransactionOutput) Reset() { *x = TransactionOutput{} - mi := &file_p2p_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_p2p_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *TransactionOutput) String() string { @@ -560,7 +589,7 @@ func (*TransactionOutput) ProtoMessage() {} func (x *TransactionOutput) ProtoReflect() protoreflect.Message { mi := &file_p2p_proto_msgTypes[9] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -590,18 +619,21 @@ func (x *TransactionOutput) GetScriptPublicKey() *ScriptPublicKey { } type BlockMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - Header *BlockHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - Transactions []*TransactionMessage `protobuf:"bytes,2,rep,name=transactions,proto3" json:"transactions,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Header *BlockHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Transactions []*TransactionMessage `protobuf:"bytes,2,rep,name=transactions,proto3" json:"transactions,omitempty"` } func (x *BlockMessage) Reset() { *x = BlockMessage{} - mi := &file_p2p_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_p2p_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *BlockMessage) String() string { @@ -612,7 +644,7 @@ func (*BlockMessage) ProtoMessage() {} func (x *BlockMessage) ProtoReflect() protoreflect.Message { mi := &file_p2p_proto_msgTypes[10] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -642,28 +674,31 @@ func (x *BlockMessage) GetTransactions() []*TransactionMessage { } type BlockHeader struct { - state protoimpl.MessageState `protogen:"open.v1"` - Version uint32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` - Parents []*BlockLevelParents `protobuf:"bytes,12,rep,name=parents,proto3" json:"parents,omitempty"` - HashMerkleRoot *Hash `protobuf:"bytes,3,opt,name=hashMerkleRoot,proto3" json:"hashMerkleRoot,omitempty"` - AcceptedIdMerkleRoot *Hash `protobuf:"bytes,4,opt,name=acceptedIdMerkleRoot,proto3" json:"acceptedIdMerkleRoot,omitempty"` - UtxoCommitment *Hash `protobuf:"bytes,5,opt,name=utxoCommitment,proto3" json:"utxoCommitment,omitempty"` - Timestamp int64 `protobuf:"varint,6,opt,name=timestamp,proto3" json:"timestamp,omitempty"` - Bits uint32 `protobuf:"varint,7,opt,name=bits,proto3" json:"bits,omitempty"` - Nonce uint64 `protobuf:"varint,8,opt,name=nonce,proto3" json:"nonce,omitempty"` - DaaScore uint64 `protobuf:"varint,9,opt,name=daaScore,proto3" json:"daaScore,omitempty"` - BlueWork []byte `protobuf:"bytes,10,opt,name=blueWork,proto3" json:"blueWork,omitempty"` - PruningPoint *Hash `protobuf:"bytes,14,opt,name=pruningPoint,proto3" json:"pruningPoint,omitempty"` - BlueScore uint64 `protobuf:"varint,13,opt,name=blueScore,proto3" json:"blueScore,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Version uint32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` + Parents []*BlockLevelParents `protobuf:"bytes,12,rep,name=parents,proto3" json:"parents,omitempty"` + HashMerkleRoot *Hash `protobuf:"bytes,3,opt,name=hashMerkleRoot,proto3" json:"hashMerkleRoot,omitempty"` + AcceptedIdMerkleRoot *Hash `protobuf:"bytes,4,opt,name=acceptedIdMerkleRoot,proto3" json:"acceptedIdMerkleRoot,omitempty"` + UtxoCommitment *Hash `protobuf:"bytes,5,opt,name=utxoCommitment,proto3" json:"utxoCommitment,omitempty"` + Timestamp int64 `protobuf:"varint,6,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + Bits uint32 `protobuf:"varint,7,opt,name=bits,proto3" json:"bits,omitempty"` + Nonce uint64 `protobuf:"varint,8,opt,name=nonce,proto3" json:"nonce,omitempty"` + DaaScore uint64 `protobuf:"varint,9,opt,name=daaScore,proto3" json:"daaScore,omitempty"` + BlueWork []byte `protobuf:"bytes,10,opt,name=blueWork,proto3" json:"blueWork,omitempty"` + PruningPoint *Hash `protobuf:"bytes,14,opt,name=pruningPoint,proto3" json:"pruningPoint,omitempty"` + BlueScore uint64 `protobuf:"varint,13,opt,name=blueScore,proto3" json:"blueScore,omitempty"` } func (x *BlockHeader) Reset() { *x = BlockHeader{} - mi := &file_p2p_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_p2p_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *BlockHeader) String() string { @@ -674,7 +709,7 @@ func (*BlockHeader) ProtoMessage() {} func (x *BlockHeader) ProtoReflect() protoreflect.Message { mi := &file_p2p_proto_msgTypes[11] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -774,17 +809,20 @@ func (x *BlockHeader) GetBlueScore() uint64 { } type BlockLevelParents struct { - state protoimpl.MessageState `protogen:"open.v1"` - ParentHashes []*Hash `protobuf:"bytes,1,rep,name=parentHashes,proto3" json:"parentHashes,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ParentHashes []*Hash `protobuf:"bytes,1,rep,name=parentHashes,proto3" json:"parentHashes,omitempty"` } func (x *BlockLevelParents) Reset() { *x = BlockLevelParents{} - mi := &file_p2p_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_p2p_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *BlockLevelParents) String() string { @@ -795,7 +833,7 @@ func (*BlockLevelParents) ProtoMessage() {} func (x *BlockLevelParents) ProtoReflect() protoreflect.Message { mi := &file_p2p_proto_msgTypes[12] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -818,17 +856,20 @@ func (x *BlockLevelParents) GetParentHashes() []*Hash { } type Hash struct { - state protoimpl.MessageState `protogen:"open.v1"` - Bytes []byte `protobuf:"bytes,1,opt,name=bytes,proto3" json:"bytes,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Bytes []byte `protobuf:"bytes,1,opt,name=bytes,proto3" json:"bytes,omitempty"` } func (x *Hash) Reset() { *x = Hash{} - mi := &file_p2p_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_p2p_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *Hash) String() string { @@ -839,7 +880,7 @@ func (*Hash) ProtoMessage() {} func (x *Hash) ProtoReflect() protoreflect.Message { mi := &file_p2p_proto_msgTypes[13] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -862,18 +903,21 @@ func (x *Hash) GetBytes() []byte { } type RequestBlockLocatorMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - HighHash *Hash `protobuf:"bytes,1,opt,name=highHash,proto3" json:"highHash,omitempty"` - Limit uint32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + HighHash *Hash `protobuf:"bytes,1,opt,name=highHash,proto3" json:"highHash,omitempty"` + Limit uint32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` } func (x *RequestBlockLocatorMessage) Reset() { *x = RequestBlockLocatorMessage{} - mi := &file_p2p_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_p2p_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *RequestBlockLocatorMessage) String() string { @@ -884,7 +928,7 @@ func (*RequestBlockLocatorMessage) ProtoMessage() {} func (x *RequestBlockLocatorMessage) ProtoReflect() protoreflect.Message { mi := &file_p2p_proto_msgTypes[14] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -914,17 +958,20 @@ func (x *RequestBlockLocatorMessage) GetLimit() uint32 { } type BlockLocatorMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - Hashes []*Hash `protobuf:"bytes,1,rep,name=hashes,proto3" json:"hashes,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Hashes []*Hash `protobuf:"bytes,1,rep,name=hashes,proto3" json:"hashes,omitempty"` } func (x *BlockLocatorMessage) Reset() { *x = BlockLocatorMessage{} - mi := &file_p2p_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_p2p_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *BlockLocatorMessage) String() string { @@ -935,7 +982,7 @@ func (*BlockLocatorMessage) ProtoMessage() {} func (x *BlockLocatorMessage) ProtoReflect() protoreflect.Message { mi := &file_p2p_proto_msgTypes[15] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -958,18 +1005,21 @@ func (x *BlockLocatorMessage) GetHashes() []*Hash { } type RequestHeadersMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - LowHash *Hash `protobuf:"bytes,1,opt,name=lowHash,proto3" json:"lowHash,omitempty"` - HighHash *Hash `protobuf:"bytes,2,opt,name=highHash,proto3" json:"highHash,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + LowHash *Hash `protobuf:"bytes,1,opt,name=lowHash,proto3" json:"lowHash,omitempty"` + HighHash *Hash `protobuf:"bytes,2,opt,name=highHash,proto3" json:"highHash,omitempty"` } func (x *RequestHeadersMessage) Reset() { *x = RequestHeadersMessage{} - mi := &file_p2p_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_p2p_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *RequestHeadersMessage) String() string { @@ -980,7 +1030,7 @@ func (*RequestHeadersMessage) ProtoMessage() {} func (x *RequestHeadersMessage) ProtoReflect() protoreflect.Message { mi := &file_p2p_proto_msgTypes[16] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1010,16 +1060,18 @@ func (x *RequestHeadersMessage) GetHighHash() *Hash { } type RequestNextHeadersMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } func (x *RequestNextHeadersMessage) Reset() { *x = RequestNextHeadersMessage{} - mi := &file_p2p_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_p2p_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *RequestNextHeadersMessage) String() string { @@ -1030,7 +1082,7 @@ func (*RequestNextHeadersMessage) ProtoMessage() {} func (x *RequestNextHeadersMessage) ProtoReflect() protoreflect.Message { mi := &file_p2p_proto_msgTypes[17] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1046,16 +1098,18 @@ func (*RequestNextHeadersMessage) Descriptor() ([]byte, []int) { } type DoneHeadersMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } func (x *DoneHeadersMessage) Reset() { *x = DoneHeadersMessage{} - mi := &file_p2p_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_p2p_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *DoneHeadersMessage) String() string { @@ -1066,7 +1120,7 @@ func (*DoneHeadersMessage) ProtoMessage() {} func (x *DoneHeadersMessage) ProtoReflect() protoreflect.Message { mi := &file_p2p_proto_msgTypes[18] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1082,17 +1136,20 @@ func (*DoneHeadersMessage) Descriptor() ([]byte, []int) { } type RequestRelayBlocksMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - Hashes []*Hash `protobuf:"bytes,1,rep,name=hashes,proto3" json:"hashes,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Hashes []*Hash `protobuf:"bytes,1,rep,name=hashes,proto3" json:"hashes,omitempty"` } func (x *RequestRelayBlocksMessage) Reset() { *x = RequestRelayBlocksMessage{} - mi := &file_p2p_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_p2p_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *RequestRelayBlocksMessage) String() string { @@ -1103,7 +1160,7 @@ func (*RequestRelayBlocksMessage) ProtoMessage() {} func (x *RequestRelayBlocksMessage) ProtoReflect() protoreflect.Message { mi := &file_p2p_proto_msgTypes[19] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1126,17 +1183,20 @@ func (x *RequestRelayBlocksMessage) GetHashes() []*Hash { } type RequestTransactionsMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - Ids []*TransactionId `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Ids []*TransactionId `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"` } func (x *RequestTransactionsMessage) Reset() { *x = RequestTransactionsMessage{} - mi := &file_p2p_proto_msgTypes[20] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_p2p_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *RequestTransactionsMessage) String() string { @@ -1147,7 +1207,7 @@ func (*RequestTransactionsMessage) ProtoMessage() {} func (x *RequestTransactionsMessage) ProtoReflect() protoreflect.Message { mi := &file_p2p_proto_msgTypes[20] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1170,17 +1230,20 @@ func (x *RequestTransactionsMessage) GetIds() []*TransactionId { } type TransactionNotFoundMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - Id *TransactionId `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id *TransactionId `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` } func (x *TransactionNotFoundMessage) Reset() { *x = TransactionNotFoundMessage{} - mi := &file_p2p_proto_msgTypes[21] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_p2p_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *TransactionNotFoundMessage) String() string { @@ -1191,7 +1254,7 @@ func (*TransactionNotFoundMessage) ProtoMessage() {} func (x *TransactionNotFoundMessage) ProtoReflect() protoreflect.Message { mi := &file_p2p_proto_msgTypes[21] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1214,17 +1277,20 @@ func (x *TransactionNotFoundMessage) GetId() *TransactionId { } type InvRelayBlockMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - Hash *Hash `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Hash *Hash `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` } func (x *InvRelayBlockMessage) Reset() { *x = InvRelayBlockMessage{} - mi := &file_p2p_proto_msgTypes[22] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_p2p_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *InvRelayBlockMessage) String() string { @@ -1235,7 +1301,7 @@ func (*InvRelayBlockMessage) ProtoMessage() {} func (x *InvRelayBlockMessage) ProtoReflect() protoreflect.Message { mi := &file_p2p_proto_msgTypes[22] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1258,17 +1324,20 @@ func (x *InvRelayBlockMessage) GetHash() *Hash { } type InvTransactionsMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - Ids []*TransactionId `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Ids []*TransactionId `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"` } func (x *InvTransactionsMessage) Reset() { *x = InvTransactionsMessage{} - mi := &file_p2p_proto_msgTypes[23] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_p2p_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *InvTransactionsMessage) String() string { @@ -1279,7 +1348,7 @@ func (*InvTransactionsMessage) ProtoMessage() {} func (x *InvTransactionsMessage) ProtoReflect() protoreflect.Message { mi := &file_p2p_proto_msgTypes[23] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1302,17 +1371,20 @@ func (x *InvTransactionsMessage) GetIds() []*TransactionId { } type PingMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - Nonce uint64 `protobuf:"varint,1,opt,name=nonce,proto3" json:"nonce,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Nonce uint64 `protobuf:"varint,1,opt,name=nonce,proto3" json:"nonce,omitempty"` } func (x *PingMessage) Reset() { *x = PingMessage{} - mi := &file_p2p_proto_msgTypes[24] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_p2p_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *PingMessage) String() string { @@ -1323,7 +1395,7 @@ func (*PingMessage) ProtoMessage() {} func (x *PingMessage) ProtoReflect() protoreflect.Message { mi := &file_p2p_proto_msgTypes[24] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1346,17 +1418,20 @@ func (x *PingMessage) GetNonce() uint64 { } type PongMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - Nonce uint64 `protobuf:"varint,1,opt,name=nonce,proto3" json:"nonce,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Nonce uint64 `protobuf:"varint,1,opt,name=nonce,proto3" json:"nonce,omitempty"` } func (x *PongMessage) Reset() { *x = PongMessage{} - mi := &file_p2p_proto_msgTypes[25] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_p2p_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *PongMessage) String() string { @@ -1367,7 +1442,7 @@ func (*PongMessage) ProtoMessage() {} func (x *PongMessage) ProtoReflect() protoreflect.Message { mi := &file_p2p_proto_msgTypes[25] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1390,16 +1465,18 @@ func (x *PongMessage) GetNonce() uint64 { } type VerackMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } func (x *VerackMessage) Reset() { *x = VerackMessage{} - mi := &file_p2p_proto_msgTypes[26] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_p2p_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *VerackMessage) String() string { @@ -1410,7 +1487,7 @@ func (*VerackMessage) ProtoMessage() {} func (x *VerackMessage) ProtoReflect() protoreflect.Message { mi := &file_p2p_proto_msgTypes[26] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1426,25 +1503,28 @@ func (*VerackMessage) Descriptor() ([]byte, []int) { } type VersionMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - ProtocolVersion uint32 `protobuf:"varint,1,opt,name=protocolVersion,proto3" json:"protocolVersion,omitempty"` - Services uint64 `protobuf:"varint,2,opt,name=services,proto3" json:"services,omitempty"` - Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` - Address *NetAddress `protobuf:"bytes,4,opt,name=address,proto3" json:"address,omitempty"` - Id []byte `protobuf:"bytes,5,opt,name=id,proto3" json:"id,omitempty"` - UserAgent string `protobuf:"bytes,6,opt,name=userAgent,proto3" json:"userAgent,omitempty"` - DisableRelayTx bool `protobuf:"varint,8,opt,name=disableRelayTx,proto3" json:"disableRelayTx,omitempty"` - SubnetworkId *SubnetworkId `protobuf:"bytes,9,opt,name=subnetworkId,proto3" json:"subnetworkId,omitempty"` - Network string `protobuf:"bytes,10,opt,name=network,proto3" json:"network,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ProtocolVersion uint32 `protobuf:"varint,1,opt,name=protocolVersion,proto3" json:"protocolVersion,omitempty"` + Services uint64 `protobuf:"varint,2,opt,name=services,proto3" json:"services,omitempty"` + Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + Address *NetAddress `protobuf:"bytes,4,opt,name=address,proto3" json:"address,omitempty"` + Id []byte `protobuf:"bytes,5,opt,name=id,proto3" json:"id,omitempty"` + UserAgent string `protobuf:"bytes,6,opt,name=userAgent,proto3" json:"userAgent,omitempty"` + DisableRelayTx bool `protobuf:"varint,8,opt,name=disableRelayTx,proto3" json:"disableRelayTx,omitempty"` + SubnetworkId *SubnetworkId `protobuf:"bytes,9,opt,name=subnetworkId,proto3" json:"subnetworkId,omitempty"` + Network string `protobuf:"bytes,10,opt,name=network,proto3" json:"network,omitempty"` } func (x *VersionMessage) Reset() { *x = VersionMessage{} - mi := &file_p2p_proto_msgTypes[27] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_p2p_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *VersionMessage) String() string { @@ -1455,7 +1535,7 @@ func (*VersionMessage) ProtoMessage() {} func (x *VersionMessage) ProtoReflect() protoreflect.Message { mi := &file_p2p_proto_msgTypes[27] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1534,17 +1614,20 @@ func (x *VersionMessage) GetNetwork() string { } type RejectMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - Reason string `protobuf:"bytes,1,opt,name=reason,proto3" json:"reason,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Reason string `protobuf:"bytes,1,opt,name=reason,proto3" json:"reason,omitempty"` } func (x *RejectMessage) Reset() { *x = RejectMessage{} - mi := &file_p2p_proto_msgTypes[28] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_p2p_proto_msgTypes[28] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *RejectMessage) String() string { @@ -1555,7 +1638,7 @@ func (*RejectMessage) ProtoMessage() {} func (x *RejectMessage) ProtoReflect() protoreflect.Message { mi := &file_p2p_proto_msgTypes[28] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1578,17 +1661,20 @@ func (x *RejectMessage) GetReason() string { } type RequestPruningPointUTXOSetMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - PruningPointHash *Hash `protobuf:"bytes,1,opt,name=pruningPointHash,proto3" json:"pruningPointHash,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + PruningPointHash *Hash `protobuf:"bytes,1,opt,name=pruningPointHash,proto3" json:"pruningPointHash,omitempty"` } func (x *RequestPruningPointUTXOSetMessage) Reset() { *x = RequestPruningPointUTXOSetMessage{} - mi := &file_p2p_proto_msgTypes[29] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_p2p_proto_msgTypes[29] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *RequestPruningPointUTXOSetMessage) String() string { @@ -1599,7 +1685,7 @@ func (*RequestPruningPointUTXOSetMessage) ProtoMessage() {} func (x *RequestPruningPointUTXOSetMessage) ProtoReflect() protoreflect.Message { mi := &file_p2p_proto_msgTypes[29] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1622,17 +1708,20 @@ func (x *RequestPruningPointUTXOSetMessage) GetPruningPointHash() *Hash { } type PruningPointUtxoSetChunkMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + OutpointAndUtxoEntryPairs []*OutpointAndUtxoEntryPair `protobuf:"bytes,1,rep,name=outpointAndUtxoEntryPairs,proto3" json:"outpointAndUtxoEntryPairs,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache } func (x *PruningPointUtxoSetChunkMessage) Reset() { *x = PruningPointUtxoSetChunkMessage{} - mi := &file_p2p_proto_msgTypes[30] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_p2p_proto_msgTypes[30] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *PruningPointUtxoSetChunkMessage) String() string { @@ -1643,7 +1732,7 @@ func (*PruningPointUtxoSetChunkMessage) ProtoMessage() {} func (x *PruningPointUtxoSetChunkMessage) ProtoReflect() protoreflect.Message { mi := &file_p2p_proto_msgTypes[30] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1666,18 +1755,21 @@ func (x *PruningPointUtxoSetChunkMessage) GetOutpointAndUtxoEntryPairs() []*Outp } type OutpointAndUtxoEntryPair struct { - state protoimpl.MessageState `protogen:"open.v1"` - Outpoint *Outpoint `protobuf:"bytes,1,opt,name=outpoint,proto3" json:"outpoint,omitempty"` - UtxoEntry *UtxoEntry `protobuf:"bytes,2,opt,name=utxoEntry,proto3" json:"utxoEntry,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Outpoint *Outpoint `protobuf:"bytes,1,opt,name=outpoint,proto3" json:"outpoint,omitempty"` + UtxoEntry *UtxoEntry `protobuf:"bytes,2,opt,name=utxoEntry,proto3" json:"utxoEntry,omitempty"` } func (x *OutpointAndUtxoEntryPair) Reset() { *x = OutpointAndUtxoEntryPair{} - mi := &file_p2p_proto_msgTypes[31] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_p2p_proto_msgTypes[31] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *OutpointAndUtxoEntryPair) String() string { @@ -1688,7 +1780,7 @@ func (*OutpointAndUtxoEntryPair) ProtoMessage() {} func (x *OutpointAndUtxoEntryPair) ProtoReflect() protoreflect.Message { mi := &file_p2p_proto_msgTypes[31] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1718,20 +1810,23 @@ func (x *OutpointAndUtxoEntryPair) GetUtxoEntry() *UtxoEntry { } type UtxoEntry struct { - state protoimpl.MessageState `protogen:"open.v1"` - Amount uint64 `protobuf:"varint,1,opt,name=amount,proto3" json:"amount,omitempty"` - ScriptPublicKey *ScriptPublicKey `protobuf:"bytes,2,opt,name=scriptPublicKey,proto3" json:"scriptPublicKey,omitempty"` - BlockDaaScore uint64 `protobuf:"varint,3,opt,name=blockDaaScore,proto3" json:"blockDaaScore,omitempty"` - IsCoinbase bool `protobuf:"varint,4,opt,name=isCoinbase,proto3" json:"isCoinbase,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Amount uint64 `protobuf:"varint,1,opt,name=amount,proto3" json:"amount,omitempty"` + ScriptPublicKey *ScriptPublicKey `protobuf:"bytes,2,opt,name=scriptPublicKey,proto3" json:"scriptPublicKey,omitempty"` + BlockDaaScore uint64 `protobuf:"varint,3,opt,name=blockDaaScore,proto3" json:"blockDaaScore,omitempty"` + IsCoinbase bool `protobuf:"varint,4,opt,name=isCoinbase,proto3" json:"isCoinbase,omitempty"` } func (x *UtxoEntry) Reset() { *x = UtxoEntry{} - mi := &file_p2p_proto_msgTypes[32] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_p2p_proto_msgTypes[32] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *UtxoEntry) String() string { @@ -1742,7 +1837,7 @@ func (*UtxoEntry) ProtoMessage() {} func (x *UtxoEntry) ProtoReflect() protoreflect.Message { mi := &file_p2p_proto_msgTypes[32] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1786,16 +1881,18 @@ func (x *UtxoEntry) GetIsCoinbase() bool { } type RequestNextPruningPointUtxoSetChunkMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } func (x *RequestNextPruningPointUtxoSetChunkMessage) Reset() { *x = RequestNextPruningPointUtxoSetChunkMessage{} - mi := &file_p2p_proto_msgTypes[33] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_p2p_proto_msgTypes[33] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *RequestNextPruningPointUtxoSetChunkMessage) String() string { @@ -1806,7 +1903,7 @@ func (*RequestNextPruningPointUtxoSetChunkMessage) ProtoMessage() {} func (x *RequestNextPruningPointUtxoSetChunkMessage) ProtoReflect() protoreflect.Message { mi := &file_p2p_proto_msgTypes[33] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1822,16 +1919,18 @@ func (*RequestNextPruningPointUtxoSetChunkMessage) Descriptor() ([]byte, []int) } type DonePruningPointUtxoSetChunksMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } func (x *DonePruningPointUtxoSetChunksMessage) Reset() { *x = DonePruningPointUtxoSetChunksMessage{} - mi := &file_p2p_proto_msgTypes[34] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_p2p_proto_msgTypes[34] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *DonePruningPointUtxoSetChunksMessage) String() string { @@ -1842,7 +1941,7 @@ func (*DonePruningPointUtxoSetChunksMessage) ProtoMessage() {} func (x *DonePruningPointUtxoSetChunksMessage) ProtoReflect() protoreflect.Message { mi := &file_p2p_proto_msgTypes[34] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1858,17 +1957,20 @@ func (*DonePruningPointUtxoSetChunksMessage) Descriptor() ([]byte, []int) { } type RequestIBDBlocksMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - Hashes []*Hash `protobuf:"bytes,1,rep,name=hashes,proto3" json:"hashes,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Hashes []*Hash `protobuf:"bytes,1,rep,name=hashes,proto3" json:"hashes,omitempty"` } func (x *RequestIBDBlocksMessage) Reset() { *x = RequestIBDBlocksMessage{} - mi := &file_p2p_proto_msgTypes[35] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_p2p_proto_msgTypes[35] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *RequestIBDBlocksMessage) String() string { @@ -1879,7 +1981,7 @@ func (*RequestIBDBlocksMessage) ProtoMessage() {} func (x *RequestIBDBlocksMessage) ProtoReflect() protoreflect.Message { mi := &file_p2p_proto_msgTypes[35] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1902,16 +2004,18 @@ func (x *RequestIBDBlocksMessage) GetHashes() []*Hash { } type UnexpectedPruningPointMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } func (x *UnexpectedPruningPointMessage) Reset() { *x = UnexpectedPruningPointMessage{} - mi := &file_p2p_proto_msgTypes[36] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_p2p_proto_msgTypes[36] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *UnexpectedPruningPointMessage) String() string { @@ -1922,7 +2026,7 @@ func (*UnexpectedPruningPointMessage) ProtoMessage() {} func (x *UnexpectedPruningPointMessage) ProtoReflect() protoreflect.Message { mi := &file_p2p_proto_msgTypes[36] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1938,18 +2042,21 @@ func (*UnexpectedPruningPointMessage) Descriptor() ([]byte, []int) { } type IbdBlockLocatorMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - TargetHash *Hash `protobuf:"bytes,1,opt,name=targetHash,proto3" json:"targetHash,omitempty"` - BlockLocatorHashes []*Hash `protobuf:"bytes,2,rep,name=blockLocatorHashes,proto3" json:"blockLocatorHashes,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + TargetHash *Hash `protobuf:"bytes,1,opt,name=targetHash,proto3" json:"targetHash,omitempty"` + BlockLocatorHashes []*Hash `protobuf:"bytes,2,rep,name=blockLocatorHashes,proto3" json:"blockLocatorHashes,omitempty"` } func (x *IbdBlockLocatorMessage) Reset() { *x = IbdBlockLocatorMessage{} - mi := &file_p2p_proto_msgTypes[37] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_p2p_proto_msgTypes[37] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *IbdBlockLocatorMessage) String() string { @@ -1960,7 +2067,7 @@ func (*IbdBlockLocatorMessage) ProtoMessage() {} func (x *IbdBlockLocatorMessage) ProtoReflect() protoreflect.Message { mi := &file_p2p_proto_msgTypes[37] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1990,18 +2097,21 @@ func (x *IbdBlockLocatorMessage) GetBlockLocatorHashes() []*Hash { } type RequestIBDChainBlockLocatorMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - LowHash *Hash `protobuf:"bytes,1,opt,name=lowHash,proto3" json:"lowHash,omitempty"` - HighHash *Hash `protobuf:"bytes,2,opt,name=highHash,proto3" json:"highHash,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + LowHash *Hash `protobuf:"bytes,1,opt,name=lowHash,proto3" json:"lowHash,omitempty"` + HighHash *Hash `protobuf:"bytes,2,opt,name=highHash,proto3" json:"highHash,omitempty"` } func (x *RequestIBDChainBlockLocatorMessage) Reset() { *x = RequestIBDChainBlockLocatorMessage{} - mi := &file_p2p_proto_msgTypes[38] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_p2p_proto_msgTypes[38] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *RequestIBDChainBlockLocatorMessage) String() string { @@ -2012,7 +2122,7 @@ func (*RequestIBDChainBlockLocatorMessage) ProtoMessage() {} func (x *RequestIBDChainBlockLocatorMessage) ProtoReflect() protoreflect.Message { mi := &file_p2p_proto_msgTypes[38] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2042,17 +2152,20 @@ func (x *RequestIBDChainBlockLocatorMessage) GetHighHash() *Hash { } type IbdChainBlockLocatorMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - BlockLocatorHashes []*Hash `protobuf:"bytes,1,rep,name=blockLocatorHashes,proto3" json:"blockLocatorHashes,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + BlockLocatorHashes []*Hash `protobuf:"bytes,1,rep,name=blockLocatorHashes,proto3" json:"blockLocatorHashes,omitempty"` } func (x *IbdChainBlockLocatorMessage) Reset() { *x = IbdChainBlockLocatorMessage{} - mi := &file_p2p_proto_msgTypes[39] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_p2p_proto_msgTypes[39] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *IbdChainBlockLocatorMessage) String() string { @@ -2063,7 +2176,7 @@ func (*IbdChainBlockLocatorMessage) ProtoMessage() {} func (x *IbdChainBlockLocatorMessage) ProtoReflect() protoreflect.Message { mi := &file_p2p_proto_msgTypes[39] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2086,18 +2199,21 @@ func (x *IbdChainBlockLocatorMessage) GetBlockLocatorHashes() []*Hash { } type RequestAnticoneMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - BlockHash *Hash `protobuf:"bytes,1,opt,name=blockHash,proto3" json:"blockHash,omitempty"` - ContextHash *Hash `protobuf:"bytes,2,opt,name=contextHash,proto3" json:"contextHash,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + BlockHash *Hash `protobuf:"bytes,1,opt,name=blockHash,proto3" json:"blockHash,omitempty"` + ContextHash *Hash `protobuf:"bytes,2,opt,name=contextHash,proto3" json:"contextHash,omitempty"` } func (x *RequestAnticoneMessage) Reset() { *x = RequestAnticoneMessage{} - mi := &file_p2p_proto_msgTypes[40] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_p2p_proto_msgTypes[40] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *RequestAnticoneMessage) String() string { @@ -2108,7 +2224,7 @@ func (*RequestAnticoneMessage) ProtoMessage() {} func (x *RequestAnticoneMessage) ProtoReflect() protoreflect.Message { mi := &file_p2p_proto_msgTypes[40] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2138,17 +2254,20 @@ func (x *RequestAnticoneMessage) GetContextHash() *Hash { } type IbdBlockLocatorHighestHashMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - HighestHash *Hash `protobuf:"bytes,1,opt,name=highestHash,proto3" json:"highestHash,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + HighestHash *Hash `protobuf:"bytes,1,opt,name=highestHash,proto3" json:"highestHash,omitempty"` } func (x *IbdBlockLocatorHighestHashMessage) Reset() { *x = IbdBlockLocatorHighestHashMessage{} - mi := &file_p2p_proto_msgTypes[41] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_p2p_proto_msgTypes[41] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *IbdBlockLocatorHighestHashMessage) String() string { @@ -2159,7 +2278,7 @@ func (*IbdBlockLocatorHighestHashMessage) ProtoMessage() {} func (x *IbdBlockLocatorHighestHashMessage) ProtoReflect() protoreflect.Message { mi := &file_p2p_proto_msgTypes[41] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2182,16 +2301,18 @@ func (x *IbdBlockLocatorHighestHashMessage) GetHighestHash() *Hash { } type IbdBlockLocatorHighestHashNotFoundMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } func (x *IbdBlockLocatorHighestHashNotFoundMessage) Reset() { *x = IbdBlockLocatorHighestHashNotFoundMessage{} - mi := &file_p2p_proto_msgTypes[42] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_p2p_proto_msgTypes[42] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *IbdBlockLocatorHighestHashNotFoundMessage) String() string { @@ -2202,7 +2323,7 @@ func (*IbdBlockLocatorHighestHashNotFoundMessage) ProtoMessage() {} func (x *IbdBlockLocatorHighestHashNotFoundMessage) ProtoReflect() protoreflect.Message { mi := &file_p2p_proto_msgTypes[42] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2218,17 +2339,20 @@ func (*IbdBlockLocatorHighestHashNotFoundMessage) Descriptor() ([]byte, []int) { } type BlockHeadersMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - BlockHeaders []*BlockHeader `protobuf:"bytes,1,rep,name=blockHeaders,proto3" json:"blockHeaders,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + BlockHeaders []*BlockHeader `protobuf:"bytes,1,rep,name=blockHeaders,proto3" json:"blockHeaders,omitempty"` } func (x *BlockHeadersMessage) Reset() { *x = BlockHeadersMessage{} - mi := &file_p2p_proto_msgTypes[43] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_p2p_proto_msgTypes[43] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *BlockHeadersMessage) String() string { @@ -2239,7 +2363,7 @@ func (*BlockHeadersMessage) ProtoMessage() {} func (x *BlockHeadersMessage) ProtoReflect() protoreflect.Message { mi := &file_p2p_proto_msgTypes[43] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2262,16 +2386,18 @@ func (x *BlockHeadersMessage) GetBlockHeaders() []*BlockHeader { } type RequestPruningPointAndItsAnticoneMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } func (x *RequestPruningPointAndItsAnticoneMessage) Reset() { *x = RequestPruningPointAndItsAnticoneMessage{} - mi := &file_p2p_proto_msgTypes[44] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_p2p_proto_msgTypes[44] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *RequestPruningPointAndItsAnticoneMessage) String() string { @@ -2282,7 +2408,7 @@ func (*RequestPruningPointAndItsAnticoneMessage) ProtoMessage() {} func (x *RequestPruningPointAndItsAnticoneMessage) ProtoReflect() protoreflect.Message { mi := &file_p2p_proto_msgTypes[44] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2298,16 +2424,18 @@ func (*RequestPruningPointAndItsAnticoneMessage) Descriptor() ([]byte, []int) { } type RequestNextPruningPointAndItsAnticoneBlocksMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } func (x *RequestNextPruningPointAndItsAnticoneBlocksMessage) Reset() { *x = RequestNextPruningPointAndItsAnticoneBlocksMessage{} - mi := &file_p2p_proto_msgTypes[45] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_p2p_proto_msgTypes[45] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *RequestNextPruningPointAndItsAnticoneBlocksMessage) String() string { @@ -2318,7 +2446,7 @@ func (*RequestNextPruningPointAndItsAnticoneBlocksMessage) ProtoMessage() {} func (x *RequestNextPruningPointAndItsAnticoneBlocksMessage) ProtoReflect() protoreflect.Message { mi := &file_p2p_proto_msgTypes[45] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2334,20 +2462,23 @@ func (*RequestNextPruningPointAndItsAnticoneBlocksMessage) Descriptor() ([]byte, } type BlockWithTrustedDataMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - Block *BlockMessage `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty"` - DaaScore uint64 `protobuf:"varint,2,opt,name=daaScore,proto3" json:"daaScore,omitempty"` - DaaWindow []*DaaBlock `protobuf:"bytes,3,rep,name=daaWindow,proto3" json:"daaWindow,omitempty"` - GhostdagData []*BlockGhostdagDataHashPair `protobuf:"bytes,4,rep,name=ghostdagData,proto3" json:"ghostdagData,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Block *BlockMessage `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty"` + DaaScore uint64 `protobuf:"varint,2,opt,name=daaScore,proto3" json:"daaScore,omitempty"` + DaaWindow []*DaaBlock `protobuf:"bytes,3,rep,name=daaWindow,proto3" json:"daaWindow,omitempty"` + GhostdagData []*BlockGhostdagDataHashPair `protobuf:"bytes,4,rep,name=ghostdagData,proto3" json:"ghostdagData,omitempty"` } func (x *BlockWithTrustedDataMessage) Reset() { *x = BlockWithTrustedDataMessage{} - mi := &file_p2p_proto_msgTypes[46] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_p2p_proto_msgTypes[46] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *BlockWithTrustedDataMessage) String() string { @@ -2358,7 +2489,7 @@ func (*BlockWithTrustedDataMessage) ProtoMessage() {} func (x *BlockWithTrustedDataMessage) ProtoReflect() protoreflect.Message { mi := &file_p2p_proto_msgTypes[46] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2402,18 +2533,21 @@ func (x *BlockWithTrustedDataMessage) GetGhostdagData() []*BlockGhostdagDataHash } type DaaBlock struct { - state protoimpl.MessageState `protogen:"open.v1"` - Block *BlockMessage `protobuf:"bytes,3,opt,name=block,proto3" json:"block,omitempty"` - GhostdagData *GhostdagData `protobuf:"bytes,2,opt,name=ghostdagData,proto3" json:"ghostdagData,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Block *BlockMessage `protobuf:"bytes,3,opt,name=block,proto3" json:"block,omitempty"` + GhostdagData *GhostdagData `protobuf:"bytes,2,opt,name=ghostdagData,proto3" json:"ghostdagData,omitempty"` } func (x *DaaBlock) Reset() { *x = DaaBlock{} - mi := &file_p2p_proto_msgTypes[47] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_p2p_proto_msgTypes[47] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *DaaBlock) String() string { @@ -2424,7 +2558,7 @@ func (*DaaBlock) ProtoMessage() {} func (x *DaaBlock) ProtoReflect() protoreflect.Message { mi := &file_p2p_proto_msgTypes[47] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2454,18 +2588,21 @@ func (x *DaaBlock) GetGhostdagData() *GhostdagData { } type DaaBlockV4 struct { - state protoimpl.MessageState `protogen:"open.v1"` - Header *BlockHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - GhostdagData *GhostdagData `protobuf:"bytes,2,opt,name=ghostdagData,proto3" json:"ghostdagData,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Header *BlockHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + GhostdagData *GhostdagData `protobuf:"bytes,2,opt,name=ghostdagData,proto3" json:"ghostdagData,omitempty"` } func (x *DaaBlockV4) Reset() { *x = DaaBlockV4{} - mi := &file_p2p_proto_msgTypes[48] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_p2p_proto_msgTypes[48] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *DaaBlockV4) String() string { @@ -2476,7 +2613,7 @@ func (*DaaBlockV4) ProtoMessage() {} func (x *DaaBlockV4) ProtoReflect() protoreflect.Message { mi := &file_p2p_proto_msgTypes[48] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2506,18 +2643,21 @@ func (x *DaaBlockV4) GetGhostdagData() *GhostdagData { } type BlockGhostdagDataHashPair struct { - state protoimpl.MessageState `protogen:"open.v1"` - Hash *Hash `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` - GhostdagData *GhostdagData `protobuf:"bytes,2,opt,name=ghostdagData,proto3" json:"ghostdagData,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Hash *Hash `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` + GhostdagData *GhostdagData `protobuf:"bytes,2,opt,name=ghostdagData,proto3" json:"ghostdagData,omitempty"` } func (x *BlockGhostdagDataHashPair) Reset() { *x = BlockGhostdagDataHashPair{} - mi := &file_p2p_proto_msgTypes[49] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_p2p_proto_msgTypes[49] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *BlockGhostdagDataHashPair) String() string { @@ -2528,7 +2668,7 @@ func (*BlockGhostdagDataHashPair) ProtoMessage() {} func (x *BlockGhostdagDataHashPair) ProtoReflect() protoreflect.Message { mi := &file_p2p_proto_msgTypes[49] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2558,22 +2698,25 @@ func (x *BlockGhostdagDataHashPair) GetGhostdagData() *GhostdagData { } type GhostdagData struct { - state protoimpl.MessageState `protogen:"open.v1"` - BlueScore uint64 `protobuf:"varint,1,opt,name=blueScore,proto3" json:"blueScore,omitempty"` - BlueWork []byte `protobuf:"bytes,2,opt,name=blueWork,proto3" json:"blueWork,omitempty"` - SelectedParent *Hash `protobuf:"bytes,3,opt,name=selectedParent,proto3" json:"selectedParent,omitempty"` - MergeSetBlues []*Hash `protobuf:"bytes,4,rep,name=mergeSetBlues,proto3" json:"mergeSetBlues,omitempty"` - MergeSetReds []*Hash `protobuf:"bytes,5,rep,name=mergeSetReds,proto3" json:"mergeSetReds,omitempty"` - BluesAnticoneSizes []*BluesAnticoneSizes `protobuf:"bytes,6,rep,name=bluesAnticoneSizes,proto3" json:"bluesAnticoneSizes,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + BlueScore uint64 `protobuf:"varint,1,opt,name=blueScore,proto3" json:"blueScore,omitempty"` + BlueWork []byte `protobuf:"bytes,2,opt,name=blueWork,proto3" json:"blueWork,omitempty"` + SelectedParent *Hash `protobuf:"bytes,3,opt,name=selectedParent,proto3" json:"selectedParent,omitempty"` + MergeSetBlues []*Hash `protobuf:"bytes,4,rep,name=mergeSetBlues,proto3" json:"mergeSetBlues,omitempty"` + MergeSetReds []*Hash `protobuf:"bytes,5,rep,name=mergeSetReds,proto3" json:"mergeSetReds,omitempty"` + BluesAnticoneSizes []*BluesAnticoneSizes `protobuf:"bytes,6,rep,name=bluesAnticoneSizes,proto3" json:"bluesAnticoneSizes,omitempty"` } func (x *GhostdagData) Reset() { *x = GhostdagData{} - mi := &file_p2p_proto_msgTypes[50] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_p2p_proto_msgTypes[50] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *GhostdagData) String() string { @@ -2584,7 +2727,7 @@ func (*GhostdagData) ProtoMessage() {} func (x *GhostdagData) ProtoReflect() protoreflect.Message { mi := &file_p2p_proto_msgTypes[50] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2642,18 +2785,21 @@ func (x *GhostdagData) GetBluesAnticoneSizes() []*BluesAnticoneSizes { } type BluesAnticoneSizes struct { - state protoimpl.MessageState `protogen:"open.v1"` - BlueHash *Hash `protobuf:"bytes,1,opt,name=blueHash,proto3" json:"blueHash,omitempty"` - AnticoneSize uint32 `protobuf:"varint,2,opt,name=anticoneSize,proto3" json:"anticoneSize,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + BlueHash *Hash `protobuf:"bytes,1,opt,name=blueHash,proto3" json:"blueHash,omitempty"` + AnticoneSize uint32 `protobuf:"varint,2,opt,name=anticoneSize,proto3" json:"anticoneSize,omitempty"` } func (x *BluesAnticoneSizes) Reset() { *x = BluesAnticoneSizes{} - mi := &file_p2p_proto_msgTypes[51] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_p2p_proto_msgTypes[51] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *BluesAnticoneSizes) String() string { @@ -2664,7 +2810,7 @@ func (*BluesAnticoneSizes) ProtoMessage() {} func (x *BluesAnticoneSizes) ProtoReflect() protoreflect.Message { mi := &file_p2p_proto_msgTypes[51] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2694,16 +2840,18 @@ func (x *BluesAnticoneSizes) GetAnticoneSize() uint32 { } type DoneBlocksWithTrustedDataMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } func (x *DoneBlocksWithTrustedDataMessage) Reset() { *x = DoneBlocksWithTrustedDataMessage{} - mi := &file_p2p_proto_msgTypes[52] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_p2p_proto_msgTypes[52] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *DoneBlocksWithTrustedDataMessage) String() string { @@ -2714,7 +2862,7 @@ func (*DoneBlocksWithTrustedDataMessage) ProtoMessage() {} func (x *DoneBlocksWithTrustedDataMessage) ProtoReflect() protoreflect.Message { mi := &file_p2p_proto_msgTypes[52] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2730,17 +2878,20 @@ func (*DoneBlocksWithTrustedDataMessage) Descriptor() ([]byte, []int) { } type PruningPointsMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - Headers []*BlockHeader `protobuf:"bytes,1,rep,name=headers,proto3" json:"headers,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Headers []*BlockHeader `protobuf:"bytes,1,rep,name=headers,proto3" json:"headers,omitempty"` } func (x *PruningPointsMessage) Reset() { *x = PruningPointsMessage{} - mi := &file_p2p_proto_msgTypes[53] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_p2p_proto_msgTypes[53] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *PruningPointsMessage) String() string { @@ -2751,7 +2902,7 @@ func (*PruningPointsMessage) ProtoMessage() {} func (x *PruningPointsMessage) ProtoReflect() protoreflect.Message { mi := &file_p2p_proto_msgTypes[53] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2774,16 +2925,18 @@ func (x *PruningPointsMessage) GetHeaders() []*BlockHeader { } type RequestPruningPointProofMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } func (x *RequestPruningPointProofMessage) Reset() { *x = RequestPruningPointProofMessage{} - mi := &file_p2p_proto_msgTypes[54] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_p2p_proto_msgTypes[54] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *RequestPruningPointProofMessage) String() string { @@ -2794,7 +2947,7 @@ func (*RequestPruningPointProofMessage) ProtoMessage() {} func (x *RequestPruningPointProofMessage) ProtoReflect() protoreflect.Message { mi := &file_p2p_proto_msgTypes[54] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2810,17 +2963,20 @@ func (*RequestPruningPointProofMessage) Descriptor() ([]byte, []int) { } type PruningPointProofMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - Headers []*PruningPointProofHeaderArray `protobuf:"bytes,1,rep,name=headers,proto3" json:"headers,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Headers []*PruningPointProofHeaderArray `protobuf:"bytes,1,rep,name=headers,proto3" json:"headers,omitempty"` } func (x *PruningPointProofMessage) Reset() { *x = PruningPointProofMessage{} - mi := &file_p2p_proto_msgTypes[55] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_p2p_proto_msgTypes[55] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *PruningPointProofMessage) String() string { @@ -2831,7 +2987,7 @@ func (*PruningPointProofMessage) ProtoMessage() {} func (x *PruningPointProofMessage) ProtoReflect() protoreflect.Message { mi := &file_p2p_proto_msgTypes[55] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2854,17 +3010,20 @@ func (x *PruningPointProofMessage) GetHeaders() []*PruningPointProofHeaderArray } type PruningPointProofHeaderArray struct { - state protoimpl.MessageState `protogen:"open.v1"` - Headers []*BlockHeader `protobuf:"bytes,1,rep,name=headers,proto3" json:"headers,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Headers []*BlockHeader `protobuf:"bytes,1,rep,name=headers,proto3" json:"headers,omitempty"` } func (x *PruningPointProofHeaderArray) Reset() { *x = PruningPointProofHeaderArray{} - mi := &file_p2p_proto_msgTypes[56] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_p2p_proto_msgTypes[56] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *PruningPointProofHeaderArray) String() string { @@ -2875,7 +3034,7 @@ func (*PruningPointProofHeaderArray) ProtoMessage() {} func (x *PruningPointProofHeaderArray) ProtoReflect() protoreflect.Message { mi := &file_p2p_proto_msgTypes[56] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2898,16 +3057,18 @@ func (x *PruningPointProofHeaderArray) GetHeaders() []*BlockHeader { } type ReadyMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } func (x *ReadyMessage) Reset() { *x = ReadyMessage{} - mi := &file_p2p_proto_msgTypes[57] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_p2p_proto_msgTypes[57] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *ReadyMessage) String() string { @@ -2918,7 +3079,7 @@ func (*ReadyMessage) ProtoMessage() {} func (x *ReadyMessage) ProtoReflect() protoreflect.Message { mi := &file_p2p_proto_msgTypes[57] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2934,19 +3095,22 @@ func (*ReadyMessage) Descriptor() ([]byte, []int) { } type BlockWithTrustedDataV4Message struct { - state protoimpl.MessageState `protogen:"open.v1"` - Block *BlockMessage `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty"` - DaaWindowIndices []uint64 `protobuf:"varint,2,rep,packed,name=daaWindowIndices,proto3" json:"daaWindowIndices,omitempty"` - GhostdagDataIndices []uint64 `protobuf:"varint,3,rep,packed,name=ghostdagDataIndices,proto3" json:"ghostdagDataIndices,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Block *BlockMessage `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty"` + DaaWindowIndices []uint64 `protobuf:"varint,2,rep,packed,name=daaWindowIndices,proto3" json:"daaWindowIndices,omitempty"` + GhostdagDataIndices []uint64 `protobuf:"varint,3,rep,packed,name=ghostdagDataIndices,proto3" json:"ghostdagDataIndices,omitempty"` } func (x *BlockWithTrustedDataV4Message) Reset() { *x = BlockWithTrustedDataV4Message{} - mi := &file_p2p_proto_msgTypes[58] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_p2p_proto_msgTypes[58] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *BlockWithTrustedDataV4Message) String() string { @@ -2957,7 +3121,7 @@ func (*BlockWithTrustedDataV4Message) ProtoMessage() {} func (x *BlockWithTrustedDataV4Message) ProtoReflect() protoreflect.Message { mi := &file_p2p_proto_msgTypes[58] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2994,18 +3158,21 @@ func (x *BlockWithTrustedDataV4Message) GetGhostdagDataIndices() []uint64 { } type TrustedDataMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - DaaWindow []*DaaBlockV4 `protobuf:"bytes,1,rep,name=daaWindow,proto3" json:"daaWindow,omitempty"` - GhostdagData []*BlockGhostdagDataHashPair `protobuf:"bytes,2,rep,name=ghostdagData,proto3" json:"ghostdagData,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + DaaWindow []*DaaBlockV4 `protobuf:"bytes,1,rep,name=daaWindow,proto3" json:"daaWindow,omitempty"` + GhostdagData []*BlockGhostdagDataHashPair `protobuf:"bytes,2,rep,name=ghostdagData,proto3" json:"ghostdagData,omitempty"` } func (x *TrustedDataMessage) Reset() { *x = TrustedDataMessage{} - mi := &file_p2p_proto_msgTypes[59] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_p2p_proto_msgTypes[59] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *TrustedDataMessage) String() string { @@ -3016,7 +3183,7 @@ func (*TrustedDataMessage) ProtoMessage() {} func (x *TrustedDataMessage) ProtoReflect() protoreflect.Message { mi := &file_p2p_proto_msgTypes[59] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3047,7 +3214,7 @@ func (x *TrustedDataMessage) GetGhostdagData() []*BlockGhostdagDataHashPair { var File_p2p_proto protoreflect.FileDescriptor -var file_p2p_proto_rawDesc = string([]byte{ +var file_p2p_proto_rawDesc = []byte{ 0x0a, 0x09, 0x70, 0x32, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x09, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x77, 0x69, 0x72, 0x65, 0x22, 0x8c, 0x01, 0x0a, 0x17, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x4d, 0x65, 0x73, 0x73, 0x61, @@ -3443,22 +3610,22 @@ var file_p2p_proto_rawDesc = string([]byte{ 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6b, 0x61, 0x73, 0x70, 0x61, 0x6e, 0x65, 0x74, 0x2f, 0x6b, 0x61, 0x73, 0x70, 0x61, 0x64, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x77, 0x69, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -}) +} var ( file_p2p_proto_rawDescOnce sync.Once - file_p2p_proto_rawDescData []byte + file_p2p_proto_rawDescData = file_p2p_proto_rawDesc ) func file_p2p_proto_rawDescGZIP() []byte { file_p2p_proto_rawDescOnce.Do(func() { - file_p2p_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_p2p_proto_rawDesc), len(file_p2p_proto_rawDesc))) + file_p2p_proto_rawDescData = protoimpl.X.CompressGZIP(file_p2p_proto_rawDescData) }) return file_p2p_proto_rawDescData } var file_p2p_proto_msgTypes = make([]protoimpl.MessageInfo, 60) -var file_p2p_proto_goTypes = []any{ +var file_p2p_proto_goTypes = []interface{}{ (*RequestAddressesMessage)(nil), // 0: protowire.RequestAddressesMessage (*AddressesMessage)(nil), // 1: protowire.AddressesMessage (*NetAddress)(nil), // 2: protowire.NetAddress @@ -3595,11 +3762,733 @@ func file_p2p_proto_init() { if File_p2p_proto != nil { return } + if !protoimpl.UnsafeEnabled { + file_p2p_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RequestAddressesMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_p2p_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AddressesMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_p2p_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NetAddress); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_p2p_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SubnetworkId); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_p2p_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TransactionMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_p2p_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TransactionInput); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_p2p_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Outpoint); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_p2p_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TransactionId); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_p2p_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ScriptPublicKey); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_p2p_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TransactionOutput); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_p2p_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BlockMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_p2p_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BlockHeader); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_p2p_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BlockLevelParents); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_p2p_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Hash); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_p2p_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RequestBlockLocatorMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_p2p_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BlockLocatorMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_p2p_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RequestHeadersMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_p2p_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RequestNextHeadersMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_p2p_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DoneHeadersMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_p2p_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RequestRelayBlocksMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_p2p_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RequestTransactionsMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_p2p_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TransactionNotFoundMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_p2p_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*InvRelayBlockMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_p2p_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*InvTransactionsMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_p2p_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PingMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_p2p_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PongMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_p2p_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*VerackMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_p2p_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*VersionMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_p2p_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RejectMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_p2p_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RequestPruningPointUTXOSetMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_p2p_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PruningPointUtxoSetChunkMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_p2p_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OutpointAndUtxoEntryPair); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_p2p_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UtxoEntry); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_p2p_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RequestNextPruningPointUtxoSetChunkMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_p2p_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DonePruningPointUtxoSetChunksMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_p2p_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RequestIBDBlocksMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_p2p_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UnexpectedPruningPointMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_p2p_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*IbdBlockLocatorMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_p2p_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RequestIBDChainBlockLocatorMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_p2p_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*IbdChainBlockLocatorMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_p2p_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RequestAnticoneMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_p2p_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*IbdBlockLocatorHighestHashMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_p2p_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*IbdBlockLocatorHighestHashNotFoundMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_p2p_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BlockHeadersMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_p2p_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RequestPruningPointAndItsAnticoneMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_p2p_proto_msgTypes[45].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RequestNextPruningPointAndItsAnticoneBlocksMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_p2p_proto_msgTypes[46].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BlockWithTrustedDataMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_p2p_proto_msgTypes[47].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DaaBlock); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_p2p_proto_msgTypes[48].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DaaBlockV4); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_p2p_proto_msgTypes[49].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BlockGhostdagDataHashPair); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_p2p_proto_msgTypes[50].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GhostdagData); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_p2p_proto_msgTypes[51].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BluesAnticoneSizes); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_p2p_proto_msgTypes[52].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DoneBlocksWithTrustedDataMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_p2p_proto_msgTypes[53].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PruningPointsMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_p2p_proto_msgTypes[54].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RequestPruningPointProofMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_p2p_proto_msgTypes[55].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PruningPointProofMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_p2p_proto_msgTypes[56].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PruningPointProofHeaderArray); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_p2p_proto_msgTypes[57].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ReadyMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_p2p_proto_msgTypes[58].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BlockWithTrustedDataV4Message); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_p2p_proto_msgTypes[59].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TrustedDataMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: unsafe.Slice(unsafe.StringData(file_p2p_proto_rawDesc), len(file_p2p_proto_rawDesc)), + RawDescriptor: file_p2p_proto_rawDesc, NumEnums: 0, NumMessages: 60, NumExtensions: 0, @@ -3610,6 +4499,7 @@ func file_p2p_proto_init() { MessageInfos: file_p2p_proto_msgTypes, }.Build() File_p2p_proto = out.File + file_p2p_proto_rawDesc = nil file_p2p_proto_goTypes = nil file_p2p_proto_depIdxs = nil } diff --git a/infrastructure/network/netadapter/server/grpcserver/protowire/rpc.pb.go b/infrastructure/network/netadapter/server/grpcserver/protowire/rpc.pb.go index 4bf22a262..21c85aaac 100644 --- a/infrastructure/network/netadapter/server/grpcserver/protowire/rpc.pb.go +++ b/infrastructure/network/netadapter/server/grpcserver/protowire/rpc.pb.go @@ -13,7 +13,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.5 +// protoc-gen-go v1.33.0 // protoc v3.12.4 // source: rpc.proto @@ -24,7 +24,6 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" - unsafe "unsafe" ) const ( @@ -88,17 +87,20 @@ func (SubmitBlockResponseMessage_RejectReason) EnumDescriptor() ([]byte, []int) // Receivers of any ResponseMessage are expected to check whether its error // field is not null. type RPCError struct { - state protoimpl.MessageState `protogen:"open.v1"` - Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` } func (x *RPCError) Reset() { *x = RPCError{} - mi := &file_rpc_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *RPCError) String() string { @@ -109,7 +111,7 @@ func (*RPCError) ProtoMessage() {} func (x *RPCError) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[0] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -132,19 +134,22 @@ func (x *RPCError) GetMessage() string { } type RpcBlock struct { - state protoimpl.MessageState `protogen:"open.v1"` - Header *RpcBlockHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - Transactions []*RpcTransaction `protobuf:"bytes,2,rep,name=transactions,proto3" json:"transactions,omitempty"` - VerboseData *RpcBlockVerboseData `protobuf:"bytes,3,opt,name=verboseData,proto3" json:"verboseData,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Header *RpcBlockHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Transactions []*RpcTransaction `protobuf:"bytes,2,rep,name=transactions,proto3" json:"transactions,omitempty"` + VerboseData *RpcBlockVerboseData `protobuf:"bytes,3,opt,name=verboseData,proto3" json:"verboseData,omitempty"` } func (x *RpcBlock) Reset() { *x = RpcBlock{} - mi := &file_rpc_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *RpcBlock) String() string { @@ -155,7 +160,7 @@ func (*RpcBlock) ProtoMessage() {} func (x *RpcBlock) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[1] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -192,7 +197,10 @@ func (x *RpcBlock) GetVerboseData() *RpcBlockVerboseData { } type RpcBlockHeader struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Version uint32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` Parents []*RpcBlockLevelParents `protobuf:"bytes,12,rep,name=parents,proto3" json:"parents,omitempty"` HashMerkleRoot string `protobuf:"bytes,3,opt,name=hashMerkleRoot,proto3" json:"hashMerkleRoot,omitempty"` @@ -205,15 +213,15 @@ type RpcBlockHeader struct { BlueWork string `protobuf:"bytes,10,opt,name=blueWork,proto3" json:"blueWork,omitempty"` PruningPoint string `protobuf:"bytes,14,opt,name=pruningPoint,proto3" json:"pruningPoint,omitempty"` BlueScore uint64 `protobuf:"varint,13,opt,name=blueScore,proto3" json:"blueScore,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache } func (x *RpcBlockHeader) Reset() { *x = RpcBlockHeader{} - mi := &file_rpc_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *RpcBlockHeader) String() string { @@ -224,7 +232,7 @@ func (*RpcBlockHeader) ProtoMessage() {} func (x *RpcBlockHeader) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[2] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -324,17 +332,20 @@ func (x *RpcBlockHeader) GetBlueScore() uint64 { } type RpcBlockLevelParents struct { - state protoimpl.MessageState `protogen:"open.v1"` - ParentHashes []string `protobuf:"bytes,1,rep,name=parentHashes,proto3" json:"parentHashes,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ParentHashes []string `protobuf:"bytes,1,rep,name=parentHashes,proto3" json:"parentHashes,omitempty"` } func (x *RpcBlockLevelParents) Reset() { *x = RpcBlockLevelParents{} - mi := &file_rpc_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *RpcBlockLevelParents) String() string { @@ -345,7 +356,7 @@ func (*RpcBlockLevelParents) ProtoMessage() {} func (x *RpcBlockLevelParents) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[3] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -368,26 +379,29 @@ func (x *RpcBlockLevelParents) GetParentHashes() []string { } type RpcBlockVerboseData struct { - state protoimpl.MessageState `protogen:"open.v1"` - Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` - Difficulty float64 `protobuf:"fixed64,11,opt,name=difficulty,proto3" json:"difficulty,omitempty"` - SelectedParentHash string `protobuf:"bytes,13,opt,name=selectedParentHash,proto3" json:"selectedParentHash,omitempty"` - TransactionIds []string `protobuf:"bytes,14,rep,name=transactionIds,proto3" json:"transactionIds,omitempty"` - IsHeaderOnly bool `protobuf:"varint,15,opt,name=isHeaderOnly,proto3" json:"isHeaderOnly,omitempty"` - BlueScore uint64 `protobuf:"varint,16,opt,name=blueScore,proto3" json:"blueScore,omitempty"` - ChildrenHashes []string `protobuf:"bytes,17,rep,name=childrenHashes,proto3" json:"childrenHashes,omitempty"` - MergeSetBluesHashes []string `protobuf:"bytes,18,rep,name=mergeSetBluesHashes,proto3" json:"mergeSetBluesHashes,omitempty"` - MergeSetRedsHashes []string `protobuf:"bytes,19,rep,name=mergeSetRedsHashes,proto3" json:"mergeSetRedsHashes,omitempty"` - IsChainBlock bool `protobuf:"varint,20,opt,name=isChainBlock,proto3" json:"isChainBlock,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` + Difficulty float64 `protobuf:"fixed64,11,opt,name=difficulty,proto3" json:"difficulty,omitempty"` + SelectedParentHash string `protobuf:"bytes,13,opt,name=selectedParentHash,proto3" json:"selectedParentHash,omitempty"` + TransactionIds []string `protobuf:"bytes,14,rep,name=transactionIds,proto3" json:"transactionIds,omitempty"` + IsHeaderOnly bool `protobuf:"varint,15,opt,name=isHeaderOnly,proto3" json:"isHeaderOnly,omitempty"` + BlueScore uint64 `protobuf:"varint,16,opt,name=blueScore,proto3" json:"blueScore,omitempty"` + ChildrenHashes []string `protobuf:"bytes,17,rep,name=childrenHashes,proto3" json:"childrenHashes,omitempty"` + MergeSetBluesHashes []string `protobuf:"bytes,18,rep,name=mergeSetBluesHashes,proto3" json:"mergeSetBluesHashes,omitempty"` + MergeSetRedsHashes []string `protobuf:"bytes,19,rep,name=mergeSetRedsHashes,proto3" json:"mergeSetRedsHashes,omitempty"` + IsChainBlock bool `protobuf:"varint,20,opt,name=isChainBlock,proto3" json:"isChainBlock,omitempty"` } func (x *RpcBlockVerboseData) Reset() { *x = RpcBlockVerboseData{} - mi := &file_rpc_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *RpcBlockVerboseData) String() string { @@ -398,7 +412,7 @@ func (*RpcBlockVerboseData) ProtoMessage() {} func (x *RpcBlockVerboseData) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[4] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -484,25 +498,28 @@ func (x *RpcBlockVerboseData) GetIsChainBlock() bool { } type RpcTransaction struct { - state protoimpl.MessageState `protogen:"open.v1"` - Version uint32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` - Inputs []*RpcTransactionInput `protobuf:"bytes,2,rep,name=inputs,proto3" json:"inputs,omitempty"` - Outputs []*RpcTransactionOutput `protobuf:"bytes,3,rep,name=outputs,proto3" json:"outputs,omitempty"` - LockTime uint64 `protobuf:"varint,4,opt,name=lockTime,proto3" json:"lockTime,omitempty"` - SubnetworkId string `protobuf:"bytes,5,opt,name=subnetworkId,proto3" json:"subnetworkId,omitempty"` - Gas uint64 `protobuf:"varint,6,opt,name=gas,proto3" json:"gas,omitempty"` - Payload string `protobuf:"bytes,8,opt,name=payload,proto3" json:"payload,omitempty"` - VerboseData *RpcTransactionVerboseData `protobuf:"bytes,9,opt,name=verboseData,proto3" json:"verboseData,omitempty"` - Mass uint64 `protobuf:"varint,10,opt,name=mass,proto3" json:"mass,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Version uint32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` + Inputs []*RpcTransactionInput `protobuf:"bytes,2,rep,name=inputs,proto3" json:"inputs,omitempty"` + Outputs []*RpcTransactionOutput `protobuf:"bytes,3,rep,name=outputs,proto3" json:"outputs,omitempty"` + LockTime uint64 `protobuf:"varint,4,opt,name=lockTime,proto3" json:"lockTime,omitempty"` + SubnetworkId string `protobuf:"bytes,5,opt,name=subnetworkId,proto3" json:"subnetworkId,omitempty"` + Gas uint64 `protobuf:"varint,6,opt,name=gas,proto3" json:"gas,omitempty"` + Payload string `protobuf:"bytes,8,opt,name=payload,proto3" json:"payload,omitempty"` + VerboseData *RpcTransactionVerboseData `protobuf:"bytes,9,opt,name=verboseData,proto3" json:"verboseData,omitempty"` + Mass uint64 `protobuf:"varint,10,opt,name=mass,proto3" json:"mass,omitempty"` } func (x *RpcTransaction) Reset() { *x = RpcTransaction{} - mi := &file_rpc_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *RpcTransaction) String() string { @@ -513,7 +530,7 @@ func (*RpcTransaction) ProtoMessage() {} func (x *RpcTransaction) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[5] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -592,21 +609,24 @@ func (x *RpcTransaction) GetMass() uint64 { } type RpcTransactionInput struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + PreviousOutpoint *RpcOutpoint `protobuf:"bytes,1,opt,name=previousOutpoint,proto3" json:"previousOutpoint,omitempty"` SignatureScript string `protobuf:"bytes,2,opt,name=signatureScript,proto3" json:"signatureScript,omitempty"` Sequence uint64 `protobuf:"varint,3,opt,name=sequence,proto3" json:"sequence,omitempty"` SigOpCount uint32 `protobuf:"varint,5,opt,name=sigOpCount,proto3" json:"sigOpCount,omitempty"` VerboseData *RpcTransactionInputVerboseData `protobuf:"bytes,4,opt,name=verboseData,proto3" json:"verboseData,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache } func (x *RpcTransactionInput) Reset() { *x = RpcTransactionInput{} - mi := &file_rpc_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *RpcTransactionInput) String() string { @@ -617,7 +637,7 @@ func (*RpcTransactionInput) ProtoMessage() {} func (x *RpcTransactionInput) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[6] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -668,18 +688,21 @@ func (x *RpcTransactionInput) GetVerboseData() *RpcTransactionInputVerboseData { } type RpcScriptPublicKey struct { - state protoimpl.MessageState `protogen:"open.v1"` - Version uint32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` - ScriptPublicKey string `protobuf:"bytes,2,opt,name=scriptPublicKey,proto3" json:"scriptPublicKey,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Version uint32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` + ScriptPublicKey string `protobuf:"bytes,2,opt,name=scriptPublicKey,proto3" json:"scriptPublicKey,omitempty"` } func (x *RpcScriptPublicKey) Reset() { *x = RpcScriptPublicKey{} - mi := &file_rpc_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *RpcScriptPublicKey) String() string { @@ -690,7 +713,7 @@ func (*RpcScriptPublicKey) ProtoMessage() {} func (x *RpcScriptPublicKey) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[7] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -720,19 +743,22 @@ func (x *RpcScriptPublicKey) GetScriptPublicKey() string { } type RpcTransactionOutput struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Amount uint64 `protobuf:"varint,1,opt,name=amount,proto3" json:"amount,omitempty"` ScriptPublicKey *RpcScriptPublicKey `protobuf:"bytes,2,opt,name=scriptPublicKey,proto3" json:"scriptPublicKey,omitempty"` VerboseData *RpcTransactionOutputVerboseData `protobuf:"bytes,3,opt,name=verboseData,proto3" json:"verboseData,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache } func (x *RpcTransactionOutput) Reset() { *x = RpcTransactionOutput{} - mi := &file_rpc_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *RpcTransactionOutput) String() string { @@ -743,7 +769,7 @@ func (*RpcTransactionOutput) ProtoMessage() {} func (x *RpcTransactionOutput) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[8] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -780,18 +806,21 @@ func (x *RpcTransactionOutput) GetVerboseData() *RpcTransactionOutputVerboseData } type RpcOutpoint struct { - state protoimpl.MessageState `protogen:"open.v1"` - TransactionId string `protobuf:"bytes,1,opt,name=transactionId,proto3" json:"transactionId,omitempty"` - Index uint32 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + TransactionId string `protobuf:"bytes,1,opt,name=transactionId,proto3" json:"transactionId,omitempty"` + Index uint32 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"` } func (x *RpcOutpoint) Reset() { *x = RpcOutpoint{} - mi := &file_rpc_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *RpcOutpoint) String() string { @@ -802,7 +831,7 @@ func (*RpcOutpoint) ProtoMessage() {} func (x *RpcOutpoint) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[9] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -832,20 +861,23 @@ func (x *RpcOutpoint) GetIndex() uint32 { } type RpcUtxoEntry struct { - state protoimpl.MessageState `protogen:"open.v1"` - Amount uint64 `protobuf:"varint,1,opt,name=amount,proto3" json:"amount,omitempty"` - ScriptPublicKey *RpcScriptPublicKey `protobuf:"bytes,2,opt,name=scriptPublicKey,proto3" json:"scriptPublicKey,omitempty"` - BlockDaaScore uint64 `protobuf:"varint,3,opt,name=blockDaaScore,proto3" json:"blockDaaScore,omitempty"` - IsCoinbase bool `protobuf:"varint,4,opt,name=isCoinbase,proto3" json:"isCoinbase,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Amount uint64 `protobuf:"varint,1,opt,name=amount,proto3" json:"amount,omitempty"` + ScriptPublicKey *RpcScriptPublicKey `protobuf:"bytes,2,opt,name=scriptPublicKey,proto3" json:"scriptPublicKey,omitempty"` + BlockDaaScore uint64 `protobuf:"varint,3,opt,name=blockDaaScore,proto3" json:"blockDaaScore,omitempty"` + IsCoinbase bool `protobuf:"varint,4,opt,name=isCoinbase,proto3" json:"isCoinbase,omitempty"` } func (x *RpcUtxoEntry) Reset() { *x = RpcUtxoEntry{} - mi := &file_rpc_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *RpcUtxoEntry) String() string { @@ -856,7 +888,7 @@ func (*RpcUtxoEntry) ProtoMessage() {} func (x *RpcUtxoEntry) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[10] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -900,21 +932,24 @@ func (x *RpcUtxoEntry) GetIsCoinbase() bool { } type RpcTransactionVerboseData struct { - state protoimpl.MessageState `protogen:"open.v1"` - TransactionId string `protobuf:"bytes,1,opt,name=transactionId,proto3" json:"transactionId,omitempty"` - Hash string `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` - Mass uint64 `protobuf:"varint,4,opt,name=mass,proto3" json:"mass,omitempty"` - BlockHash string `protobuf:"bytes,12,opt,name=blockHash,proto3" json:"blockHash,omitempty"` - BlockTime uint64 `protobuf:"varint,14,opt,name=blockTime,proto3" json:"blockTime,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + TransactionId string `protobuf:"bytes,1,opt,name=transactionId,proto3" json:"transactionId,omitempty"` + Hash string `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` + Mass uint64 `protobuf:"varint,4,opt,name=mass,proto3" json:"mass,omitempty"` + BlockHash string `protobuf:"bytes,12,opt,name=blockHash,proto3" json:"blockHash,omitempty"` + BlockTime uint64 `protobuf:"varint,14,opt,name=blockTime,proto3" json:"blockTime,omitempty"` } func (x *RpcTransactionVerboseData) Reset() { *x = RpcTransactionVerboseData{} - mi := &file_rpc_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *RpcTransactionVerboseData) String() string { @@ -925,7 +960,7 @@ func (*RpcTransactionVerboseData) ProtoMessage() {} func (x *RpcTransactionVerboseData) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[11] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -976,16 +1011,18 @@ func (x *RpcTransactionVerboseData) GetBlockTime() uint64 { } type RpcTransactionInputVerboseData struct { - state protoimpl.MessageState `protogen:"open.v1"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } func (x *RpcTransactionInputVerboseData) Reset() { *x = RpcTransactionInputVerboseData{} - mi := &file_rpc_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *RpcTransactionInputVerboseData) String() string { @@ -996,7 +1033,7 @@ func (*RpcTransactionInputVerboseData) ProtoMessage() {} func (x *RpcTransactionInputVerboseData) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[12] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1012,18 +1049,21 @@ func (*RpcTransactionInputVerboseData) Descriptor() ([]byte, []int) { } type RpcTransactionOutputVerboseData struct { - state protoimpl.MessageState `protogen:"open.v1"` - ScriptPublicKeyType string `protobuf:"bytes,5,opt,name=scriptPublicKeyType,proto3" json:"scriptPublicKeyType,omitempty"` - ScriptPublicKeyAddress string `protobuf:"bytes,6,opt,name=scriptPublicKeyAddress,proto3" json:"scriptPublicKeyAddress,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ScriptPublicKeyType string `protobuf:"bytes,5,opt,name=scriptPublicKeyType,proto3" json:"scriptPublicKeyType,omitempty"` + ScriptPublicKeyAddress string `protobuf:"bytes,6,opt,name=scriptPublicKeyAddress,proto3" json:"scriptPublicKeyAddress,omitempty"` } func (x *RpcTransactionOutputVerboseData) Reset() { *x = RpcTransactionOutputVerboseData{} - mi := &file_rpc_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *RpcTransactionOutputVerboseData) String() string { @@ -1034,7 +1074,7 @@ func (*RpcTransactionOutputVerboseData) ProtoMessage() {} func (x *RpcTransactionOutputVerboseData) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[13] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1068,16 +1108,18 @@ func (x *RpcTransactionOutputVerboseData) GetScriptPublicKeyAddress() string { // // Possible networks are: Mainnet, Testnet, Simnet, Devnet type GetCurrentNetworkRequestMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } func (x *GetCurrentNetworkRequestMessage) Reset() { *x = GetCurrentNetworkRequestMessage{} - mi := &file_rpc_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *GetCurrentNetworkRequestMessage) String() string { @@ -1088,7 +1130,7 @@ func (*GetCurrentNetworkRequestMessage) ProtoMessage() {} func (x *GetCurrentNetworkRequestMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[14] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1104,18 +1146,21 @@ func (*GetCurrentNetworkRequestMessage) Descriptor() ([]byte, []int) { } type GetCurrentNetworkResponseMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - CurrentNetwork string `protobuf:"bytes,1,opt,name=currentNetwork,proto3" json:"currentNetwork,omitempty"` - Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + CurrentNetwork string `protobuf:"bytes,1,opt,name=currentNetwork,proto3" json:"currentNetwork,omitempty"` + Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` } func (x *GetCurrentNetworkResponseMessage) Reset() { *x = GetCurrentNetworkResponseMessage{} - mi := &file_rpc_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *GetCurrentNetworkResponseMessage) String() string { @@ -1126,7 +1171,7 @@ func (*GetCurrentNetworkResponseMessage) ProtoMessage() {} func (x *GetCurrentNetworkResponseMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[15] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1161,18 +1206,21 @@ func (x *GetCurrentNetworkResponseMessage) GetError() *RPCError { // // See: GetBlockTemplateRequestMessage type SubmitBlockRequestMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - Block *RpcBlock `protobuf:"bytes,2,opt,name=block,proto3" json:"block,omitempty"` - AllowNonDAABlocks bool `protobuf:"varint,3,opt,name=allowNonDAABlocks,proto3" json:"allowNonDAABlocks,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Block *RpcBlock `protobuf:"bytes,2,opt,name=block,proto3" json:"block,omitempty"` + AllowNonDAABlocks bool `protobuf:"varint,3,opt,name=allowNonDAABlocks,proto3" json:"allowNonDAABlocks,omitempty"` } func (x *SubmitBlockRequestMessage) Reset() { *x = SubmitBlockRequestMessage{} - mi := &file_rpc_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *SubmitBlockRequestMessage) String() string { @@ -1183,7 +1231,7 @@ func (*SubmitBlockRequestMessage) ProtoMessage() {} func (x *SubmitBlockRequestMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[16] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1213,18 +1261,21 @@ func (x *SubmitBlockRequestMessage) GetAllowNonDAABlocks() bool { } type SubmitBlockResponseMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - RejectReason SubmitBlockResponseMessage_RejectReason `protobuf:"varint,1,opt,name=rejectReason,proto3,enum=protowire.SubmitBlockResponseMessage_RejectReason" json:"rejectReason,omitempty"` - Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + RejectReason SubmitBlockResponseMessage_RejectReason `protobuf:"varint,1,opt,name=rejectReason,proto3,enum=protowire.SubmitBlockResponseMessage_RejectReason" json:"rejectReason,omitempty"` + Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` } func (x *SubmitBlockResponseMessage) Reset() { *x = SubmitBlockResponseMessage{} - mi := &file_rpc_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *SubmitBlockResponseMessage) String() string { @@ -1235,7 +1286,7 @@ func (*SubmitBlockResponseMessage) ProtoMessage() {} func (x *SubmitBlockResponseMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[17] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1270,19 +1321,22 @@ func (x *SubmitBlockResponseMessage) GetError() *RPCError { // // See: SubmitBlockRequestMessage type GetBlockTemplateRequestMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - // Which kaspa address should the coinbase block reward transaction pay into - PayAddress string `protobuf:"bytes,1,opt,name=payAddress,proto3" json:"payAddress,omitempty"` - ExtraData string `protobuf:"bytes,2,opt,name=extraData,proto3" json:"extraData,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Which kaspa address should the coinbase block reward transaction pay into + PayAddress string `protobuf:"bytes,1,opt,name=payAddress,proto3" json:"payAddress,omitempty"` + ExtraData string `protobuf:"bytes,2,opt,name=extraData,proto3" json:"extraData,omitempty"` } func (x *GetBlockTemplateRequestMessage) Reset() { *x = GetBlockTemplateRequestMessage{} - mi := &file_rpc_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *GetBlockTemplateRequestMessage) String() string { @@ -1293,7 +1347,7 @@ func (*GetBlockTemplateRequestMessage) ProtoMessage() {} func (x *GetBlockTemplateRequestMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[18] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1323,24 +1377,27 @@ func (x *GetBlockTemplateRequestMessage) GetExtraData() string { } type GetBlockTemplateResponseMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - Block *RpcBlock `protobuf:"bytes,3,opt,name=block,proto3" json:"block,omitempty"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Block *RpcBlock `protobuf:"bytes,3,opt,name=block,proto3" json:"block,omitempty"` // Whether kaspad thinks that it's synced. // Callers are discouraged (but not forbidden) from solving blocks when kaspad // is not synced. That is because when kaspad isn't in sync with the rest of // the network there's a high chance the block will never be accepted, thus // the solving effort would have been wasted. - IsSynced bool `protobuf:"varint,2,opt,name=isSynced,proto3" json:"isSynced,omitempty"` - Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + IsSynced bool `protobuf:"varint,2,opt,name=isSynced,proto3" json:"isSynced,omitempty"` + Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` } func (x *GetBlockTemplateResponseMessage) Reset() { *x = GetBlockTemplateResponseMessage{} - mi := &file_rpc_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *GetBlockTemplateResponseMessage) String() string { @@ -1351,7 +1408,7 @@ func (*GetBlockTemplateResponseMessage) ProtoMessage() {} func (x *GetBlockTemplateResponseMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[19] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1392,16 +1449,18 @@ func (x *GetBlockTemplateResponseMessage) GetError() *RPCError { // // See: BlockAddedNotificationMessage type NotifyBlockAddedRequestMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } func (x *NotifyBlockAddedRequestMessage) Reset() { *x = NotifyBlockAddedRequestMessage{} - mi := &file_rpc_proto_msgTypes[20] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *NotifyBlockAddedRequestMessage) String() string { @@ -1412,7 +1471,7 @@ func (*NotifyBlockAddedRequestMessage) ProtoMessage() {} func (x *NotifyBlockAddedRequestMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[20] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1428,17 +1487,20 @@ func (*NotifyBlockAddedRequestMessage) Descriptor() ([]byte, []int) { } type NotifyBlockAddedResponseMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` } func (x *NotifyBlockAddedResponseMessage) Reset() { *x = NotifyBlockAddedResponseMessage{} - mi := &file_rpc_proto_msgTypes[21] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *NotifyBlockAddedResponseMessage) String() string { @@ -1449,7 +1511,7 @@ func (*NotifyBlockAddedResponseMessage) ProtoMessage() {} func (x *NotifyBlockAddedResponseMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[21] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1476,17 +1538,20 @@ func (x *NotifyBlockAddedResponseMessage) GetError() *RPCError { // // See: NotifyBlockAddedRequestMessage type BlockAddedNotificationMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - Block *RpcBlock `protobuf:"bytes,3,opt,name=block,proto3" json:"block,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Block *RpcBlock `protobuf:"bytes,3,opt,name=block,proto3" json:"block,omitempty"` } func (x *BlockAddedNotificationMessage) Reset() { *x = BlockAddedNotificationMessage{} - mi := &file_rpc_proto_msgTypes[22] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *BlockAddedNotificationMessage) String() string { @@ -1497,7 +1562,7 @@ func (*BlockAddedNotificationMessage) ProtoMessage() {} func (x *BlockAddedNotificationMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[22] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1522,16 +1587,18 @@ func (x *BlockAddedNotificationMessage) GetBlock() *RpcBlock { // GetPeerAddressesRequestMessage requests the list of known kaspad addresses in // the current network. (mainnet, testnet, etc.) type GetPeerAddressesRequestMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } func (x *GetPeerAddressesRequestMessage) Reset() { *x = GetPeerAddressesRequestMessage{} - mi := &file_rpc_proto_msgTypes[23] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *GetPeerAddressesRequestMessage) String() string { @@ -1542,7 +1609,7 @@ func (*GetPeerAddressesRequestMessage) ProtoMessage() {} func (x *GetPeerAddressesRequestMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[23] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1558,19 +1625,22 @@ func (*GetPeerAddressesRequestMessage) Descriptor() ([]byte, []int) { } type GetPeerAddressesResponseMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Addresses []*GetPeerAddressesKnownAddressMessage `protobuf:"bytes,1,rep,name=addresses,proto3" json:"addresses,omitempty"` BannedAddresses []*GetPeerAddressesKnownAddressMessage `protobuf:"bytes,2,rep,name=bannedAddresses,proto3" json:"bannedAddresses,omitempty"` Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache } func (x *GetPeerAddressesResponseMessage) Reset() { *x = GetPeerAddressesResponseMessage{} - mi := &file_rpc_proto_msgTypes[24] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *GetPeerAddressesResponseMessage) String() string { @@ -1581,7 +1651,7 @@ func (*GetPeerAddressesResponseMessage) ProtoMessage() {} func (x *GetPeerAddressesResponseMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[24] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1618,17 +1688,20 @@ func (x *GetPeerAddressesResponseMessage) GetError() *RPCError { } type GetPeerAddressesKnownAddressMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - Addr string `protobuf:"bytes,1,opt,name=Addr,proto3" json:"Addr,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Addr string `protobuf:"bytes,1,opt,name=Addr,proto3" json:"Addr,omitempty"` } func (x *GetPeerAddressesKnownAddressMessage) Reset() { *x = GetPeerAddressesKnownAddressMessage{} - mi := &file_rpc_proto_msgTypes[25] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *GetPeerAddressesKnownAddressMessage) String() string { @@ -1639,7 +1712,7 @@ func (*GetPeerAddressesKnownAddressMessage) ProtoMessage() {} func (x *GetPeerAddressesKnownAddressMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[25] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1664,16 +1737,18 @@ func (x *GetPeerAddressesKnownAddressMessage) GetAddr() string { // GetSelectedTipHashRequestMessage requests the hash of the current virtual's // selected parent. type GetSelectedTipHashRequestMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } func (x *GetSelectedTipHashRequestMessage) Reset() { *x = GetSelectedTipHashRequestMessage{} - mi := &file_rpc_proto_msgTypes[26] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *GetSelectedTipHashRequestMessage) String() string { @@ -1684,7 +1759,7 @@ func (*GetSelectedTipHashRequestMessage) ProtoMessage() {} func (x *GetSelectedTipHashRequestMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[26] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1700,18 +1775,21 @@ func (*GetSelectedTipHashRequestMessage) Descriptor() ([]byte, []int) { } type GetSelectedTipHashResponseMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - SelectedTipHash string `protobuf:"bytes,1,opt,name=selectedTipHash,proto3" json:"selectedTipHash,omitempty"` - Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + SelectedTipHash string `protobuf:"bytes,1,opt,name=selectedTipHash,proto3" json:"selectedTipHash,omitempty"` + Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` } func (x *GetSelectedTipHashResponseMessage) Reset() { *x = GetSelectedTipHashResponseMessage{} - mi := &file_rpc_proto_msgTypes[27] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *GetSelectedTipHashResponseMessage) String() string { @@ -1722,7 +1800,7 @@ func (*GetSelectedTipHashResponseMessage) ProtoMessage() {} func (x *GetSelectedTipHashResponseMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[27] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1754,20 +1832,23 @@ func (x *GetSelectedTipHashResponseMessage) GetError() *RPCError { // GetMempoolEntryRequestMessage requests information about a specific // transaction in the mempool. type GetMempoolEntryRequestMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // The transaction's TransactionID. TxId string `protobuf:"bytes,1,opt,name=txId,proto3" json:"txId,omitempty"` IncludeOrphanPool bool `protobuf:"varint,2,opt,name=includeOrphanPool,proto3" json:"includeOrphanPool,omitempty"` FilterTransactionPool bool `protobuf:"varint,3,opt,name=filterTransactionPool,proto3" json:"filterTransactionPool,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache } func (x *GetMempoolEntryRequestMessage) Reset() { *x = GetMempoolEntryRequestMessage{} - mi := &file_rpc_proto_msgTypes[28] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[28] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *GetMempoolEntryRequestMessage) String() string { @@ -1778,7 +1859,7 @@ func (*GetMempoolEntryRequestMessage) ProtoMessage() {} func (x *GetMempoolEntryRequestMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[28] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1815,18 +1896,21 @@ func (x *GetMempoolEntryRequestMessage) GetFilterTransactionPool() bool { } type GetMempoolEntryResponseMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - Entry *MempoolEntry `protobuf:"bytes,1,opt,name=entry,proto3" json:"entry,omitempty"` - Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Entry *MempoolEntry `protobuf:"bytes,1,opt,name=entry,proto3" json:"entry,omitempty"` + Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` } func (x *GetMempoolEntryResponseMessage) Reset() { *x = GetMempoolEntryResponseMessage{} - mi := &file_rpc_proto_msgTypes[29] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[29] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *GetMempoolEntryResponseMessage) String() string { @@ -1837,7 +1921,7 @@ func (*GetMempoolEntryResponseMessage) ProtoMessage() {} func (x *GetMempoolEntryResponseMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[29] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1869,18 +1953,21 @@ func (x *GetMempoolEntryResponseMessage) GetError() *RPCError { // GetMempoolEntriesRequestMessage requests information about all the // transactions currently in the mempool. type GetMempoolEntriesRequestMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - IncludeOrphanPool bool `protobuf:"varint,1,opt,name=includeOrphanPool,proto3" json:"includeOrphanPool,omitempty"` - FilterTransactionPool bool `protobuf:"varint,2,opt,name=filterTransactionPool,proto3" json:"filterTransactionPool,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + IncludeOrphanPool bool `protobuf:"varint,1,opt,name=includeOrphanPool,proto3" json:"includeOrphanPool,omitempty"` + FilterTransactionPool bool `protobuf:"varint,2,opt,name=filterTransactionPool,proto3" json:"filterTransactionPool,omitempty"` } func (x *GetMempoolEntriesRequestMessage) Reset() { *x = GetMempoolEntriesRequestMessage{} - mi := &file_rpc_proto_msgTypes[30] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[30] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *GetMempoolEntriesRequestMessage) String() string { @@ -1891,7 +1978,7 @@ func (*GetMempoolEntriesRequestMessage) ProtoMessage() {} func (x *GetMempoolEntriesRequestMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[30] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1921,18 +2008,21 @@ func (x *GetMempoolEntriesRequestMessage) GetFilterTransactionPool() bool { } type GetMempoolEntriesResponseMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - Entries []*MempoolEntry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"` - Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Entries []*MempoolEntry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"` + Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` } func (x *GetMempoolEntriesResponseMessage) Reset() { *x = GetMempoolEntriesResponseMessage{} - mi := &file_rpc_proto_msgTypes[31] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[31] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *GetMempoolEntriesResponseMessage) String() string { @@ -1943,7 +2033,7 @@ func (*GetMempoolEntriesResponseMessage) ProtoMessage() {} func (x *GetMempoolEntriesResponseMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[31] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1973,19 +2063,22 @@ func (x *GetMempoolEntriesResponseMessage) GetError() *RPCError { } type MempoolEntry struct { - state protoimpl.MessageState `protogen:"open.v1"` - Fee uint64 `protobuf:"varint,1,opt,name=fee,proto3" json:"fee,omitempty"` - Transaction *RpcTransaction `protobuf:"bytes,3,opt,name=transaction,proto3" json:"transaction,omitempty"` - IsOrphan bool `protobuf:"varint,4,opt,name=isOrphan,proto3" json:"isOrphan,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Fee uint64 `protobuf:"varint,1,opt,name=fee,proto3" json:"fee,omitempty"` + Transaction *RpcTransaction `protobuf:"bytes,3,opt,name=transaction,proto3" json:"transaction,omitempty"` + IsOrphan bool `protobuf:"varint,4,opt,name=isOrphan,proto3" json:"isOrphan,omitempty"` } func (x *MempoolEntry) Reset() { *x = MempoolEntry{} - mi := &file_rpc_proto_msgTypes[32] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[32] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *MempoolEntry) String() string { @@ -1996,7 +2089,7 @@ func (*MempoolEntry) ProtoMessage() {} func (x *MempoolEntry) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[32] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2035,16 +2128,18 @@ func (x *MempoolEntry) GetIsOrphan() bool { // GetConnectedPeerInfoRequestMessage requests information about all the p2p // peers currently connected to this kaspad. type GetConnectedPeerInfoRequestMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } func (x *GetConnectedPeerInfoRequestMessage) Reset() { *x = GetConnectedPeerInfoRequestMessage{} - mi := &file_rpc_proto_msgTypes[33] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[33] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *GetConnectedPeerInfoRequestMessage) String() string { @@ -2055,7 +2150,7 @@ func (*GetConnectedPeerInfoRequestMessage) ProtoMessage() {} func (x *GetConnectedPeerInfoRequestMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[33] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2071,18 +2166,21 @@ func (*GetConnectedPeerInfoRequestMessage) Descriptor() ([]byte, []int) { } type GetConnectedPeerInfoResponseMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - Infos []*GetConnectedPeerInfoMessage `protobuf:"bytes,1,rep,name=infos,proto3" json:"infos,omitempty"` - Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Infos []*GetConnectedPeerInfoMessage `protobuf:"bytes,1,rep,name=infos,proto3" json:"infos,omitempty"` + Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` } func (x *GetConnectedPeerInfoResponseMessage) Reset() { *x = GetConnectedPeerInfoResponseMessage{} - mi := &file_rpc_proto_msgTypes[34] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[34] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *GetConnectedPeerInfoResponseMessage) String() string { @@ -2093,7 +2191,7 @@ func (*GetConnectedPeerInfoResponseMessage) ProtoMessage() {} func (x *GetConnectedPeerInfoResponseMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[34] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2123,9 +2221,12 @@ func (x *GetConnectedPeerInfoResponseMessage) GetError() *RPCError { } type GetConnectedPeerInfoMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` // How long did the last ping/pong exchange take LastPingDuration int64 `protobuf:"varint,3,opt,name=lastPingDuration,proto3" json:"lastPingDuration,omitempty"` // Whether this kaspad initiated the connection @@ -2137,16 +2238,16 @@ type GetConnectedPeerInfoMessage struct { // The timestamp of when this peer connected to this kaspad TimeConnected int64 `protobuf:"varint,10,opt,name=timeConnected,proto3" json:"timeConnected,omitempty"` // Whether this peer is the IBD peer (if IBD is running) - IsIbdPeer bool `protobuf:"varint,11,opt,name=isIbdPeer,proto3" json:"isIbdPeer,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + IsIbdPeer bool `protobuf:"varint,11,opt,name=isIbdPeer,proto3" json:"isIbdPeer,omitempty"` } func (x *GetConnectedPeerInfoMessage) Reset() { *x = GetConnectedPeerInfoMessage{} - mi := &file_rpc_proto_msgTypes[35] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[35] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *GetConnectedPeerInfoMessage) String() string { @@ -2157,7 +2258,7 @@ func (*GetConnectedPeerInfoMessage) ProtoMessage() {} func (x *GetConnectedPeerInfoMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[35] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2238,19 +2339,22 @@ func (x *GetConnectedPeerInfoMessage) GetIsIbdPeer() bool { // AddPeerRequestMessage adds a peer to kaspad's outgoing connection list. // This will, in most cases, result in kaspad connecting to said peer. type AddPeerRequestMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` - // Whether to keep attempting to connect to this peer after disconnection - IsPermanent bool `protobuf:"varint,2,opt,name=isPermanent,proto3" json:"isPermanent,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + // Whether to keep attempting to connect to this peer after disconnection + IsPermanent bool `protobuf:"varint,2,opt,name=isPermanent,proto3" json:"isPermanent,omitempty"` } func (x *AddPeerRequestMessage) Reset() { *x = AddPeerRequestMessage{} - mi := &file_rpc_proto_msgTypes[36] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[36] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *AddPeerRequestMessage) String() string { @@ -2261,7 +2365,7 @@ func (*AddPeerRequestMessage) ProtoMessage() {} func (x *AddPeerRequestMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[36] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2291,17 +2395,20 @@ func (x *AddPeerRequestMessage) GetIsPermanent() bool { } type AddPeerResponseMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` } func (x *AddPeerResponseMessage) Reset() { *x = AddPeerResponseMessage{} - mi := &file_rpc_proto_msgTypes[37] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[37] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *AddPeerResponseMessage) String() string { @@ -2312,7 +2419,7 @@ func (*AddPeerResponseMessage) ProtoMessage() {} func (x *AddPeerResponseMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[37] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2336,18 +2443,21 @@ func (x *AddPeerResponseMessage) GetError() *RPCError { // SubmitTransactionRequestMessage submits a transaction to the mempool type SubmitTransactionRequestMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - Transaction *RpcTransaction `protobuf:"bytes,1,opt,name=transaction,proto3" json:"transaction,omitempty"` - AllowOrphan bool `protobuf:"varint,2,opt,name=allowOrphan,proto3" json:"allowOrphan,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Transaction *RpcTransaction `protobuf:"bytes,1,opt,name=transaction,proto3" json:"transaction,omitempty"` + AllowOrphan bool `protobuf:"varint,2,opt,name=allowOrphan,proto3" json:"allowOrphan,omitempty"` } func (x *SubmitTransactionRequestMessage) Reset() { *x = SubmitTransactionRequestMessage{} - mi := &file_rpc_proto_msgTypes[38] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[38] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *SubmitTransactionRequestMessage) String() string { @@ -2358,7 +2468,7 @@ func (*SubmitTransactionRequestMessage) ProtoMessage() {} func (x *SubmitTransactionRequestMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[38] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2388,19 +2498,22 @@ func (x *SubmitTransactionRequestMessage) GetAllowOrphan() bool { } type SubmitTransactionResponseMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // The transaction ID of the submitted transaction TransactionId string `protobuf:"bytes,1,opt,name=transactionId,proto3" json:"transactionId,omitempty"` Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache } func (x *SubmitTransactionResponseMessage) Reset() { *x = SubmitTransactionResponseMessage{} - mi := &file_rpc_proto_msgTypes[39] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[39] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *SubmitTransactionResponseMessage) String() string { @@ -2411,7 +2524,7 @@ func (*SubmitTransactionResponseMessage) ProtoMessage() {} func (x *SubmitTransactionResponseMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[39] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2445,17 +2558,20 @@ func (x *SubmitTransactionResponseMessage) GetError() *RPCError { // // See: VirtualSelectedParentChainChangedNotificationMessage type NotifyVirtualSelectedParentChainChangedRequestMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - IncludeAcceptedTransactionIds bool `protobuf:"varint,1,opt,name=includeAcceptedTransactionIds,proto3" json:"includeAcceptedTransactionIds,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + IncludeAcceptedTransactionIds bool `protobuf:"varint,1,opt,name=includeAcceptedTransactionIds,proto3" json:"includeAcceptedTransactionIds,omitempty"` } func (x *NotifyVirtualSelectedParentChainChangedRequestMessage) Reset() { *x = NotifyVirtualSelectedParentChainChangedRequestMessage{} - mi := &file_rpc_proto_msgTypes[40] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[40] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *NotifyVirtualSelectedParentChainChangedRequestMessage) String() string { @@ -2466,7 +2582,7 @@ func (*NotifyVirtualSelectedParentChainChangedRequestMessage) ProtoMessage() {} func (x *NotifyVirtualSelectedParentChainChangedRequestMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[40] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2489,17 +2605,20 @@ func (x *NotifyVirtualSelectedParentChainChangedRequestMessage) GetIncludeAccept } type NotifyVirtualSelectedParentChainChangedResponseMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` } func (x *NotifyVirtualSelectedParentChainChangedResponseMessage) Reset() { *x = NotifyVirtualSelectedParentChainChangedResponseMessage{} - mi := &file_rpc_proto_msgTypes[41] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[41] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *NotifyVirtualSelectedParentChainChangedResponseMessage) String() string { @@ -2510,7 +2629,7 @@ func (*NotifyVirtualSelectedParentChainChangedResponseMessage) ProtoMessage() {} func (x *NotifyVirtualSelectedParentChainChangedResponseMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[41] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2537,7 +2656,10 @@ func (x *NotifyVirtualSelectedParentChainChangedResponseMessage) GetError() *RPC // // See: NotifyVirtualSelectedParentChainChangedRequestMessage type VirtualSelectedParentChainChangedNotificationMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // The chain blocks that were removed, in high-to-low order RemovedChainBlockHashes []string `protobuf:"bytes,1,rep,name=removedChainBlockHashes,proto3" json:"removedChainBlockHashes,omitempty"` // The chain blocks that were added, in low-to-high order @@ -2545,15 +2667,15 @@ type VirtualSelectedParentChainChangedNotificationMessage struct { // Will be filled only if `includeAcceptedTransactionIds = true` in the notify // request. AcceptedTransactionIds []*AcceptedTransactionIds `protobuf:"bytes,2,rep,name=acceptedTransactionIds,proto3" json:"acceptedTransactionIds,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache } func (x *VirtualSelectedParentChainChangedNotificationMessage) Reset() { *x = VirtualSelectedParentChainChangedNotificationMessage{} - mi := &file_rpc_proto_msgTypes[42] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[42] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *VirtualSelectedParentChainChangedNotificationMessage) String() string { @@ -2564,7 +2686,7 @@ func (*VirtualSelectedParentChainChangedNotificationMessage) ProtoMessage() {} func (x *VirtualSelectedParentChainChangedNotificationMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[42] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2602,20 +2724,23 @@ func (x *VirtualSelectedParentChainChangedNotificationMessage) GetAcceptedTransa // GetBlockRequestMessage requests information about a specific block type GetBlockRequestMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // The hash of the requested block Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` // Whether to include transaction data in the response IncludeTransactions bool `protobuf:"varint,3,opt,name=includeTransactions,proto3" json:"includeTransactions,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache } func (x *GetBlockRequestMessage) Reset() { *x = GetBlockRequestMessage{} - mi := &file_rpc_proto_msgTypes[43] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[43] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *GetBlockRequestMessage) String() string { @@ -2626,7 +2751,7 @@ func (*GetBlockRequestMessage) ProtoMessage() {} func (x *GetBlockRequestMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[43] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2656,18 +2781,21 @@ func (x *GetBlockRequestMessage) GetIncludeTransactions() bool { } type GetBlockResponseMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - Block *RpcBlock `protobuf:"bytes,3,opt,name=block,proto3" json:"block,omitempty"` - Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Block *RpcBlock `protobuf:"bytes,3,opt,name=block,proto3" json:"block,omitempty"` + Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` } func (x *GetBlockResponseMessage) Reset() { *x = GetBlockResponseMessage{} - mi := &file_rpc_proto_msgTypes[44] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[44] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *GetBlockResponseMessage) String() string { @@ -2678,7 +2806,7 @@ func (*GetBlockResponseMessage) ProtoMessage() {} func (x *GetBlockResponseMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[44] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2711,17 +2839,20 @@ func (x *GetBlockResponseMessage) GetError() *RPCError { // // Currently unimplemented type GetSubnetworkRequestMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - SubnetworkId string `protobuf:"bytes,1,opt,name=subnetworkId,proto3" json:"subnetworkId,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + SubnetworkId string `protobuf:"bytes,1,opt,name=subnetworkId,proto3" json:"subnetworkId,omitempty"` } func (x *GetSubnetworkRequestMessage) Reset() { *x = GetSubnetworkRequestMessage{} - mi := &file_rpc_proto_msgTypes[45] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[45] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *GetSubnetworkRequestMessage) String() string { @@ -2732,7 +2863,7 @@ func (*GetSubnetworkRequestMessage) ProtoMessage() {} func (x *GetSubnetworkRequestMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[45] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2755,18 +2886,21 @@ func (x *GetSubnetworkRequestMessage) GetSubnetworkId() string { } type GetSubnetworkResponseMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - GasLimit uint64 `protobuf:"varint,1,opt,name=gasLimit,proto3" json:"gasLimit,omitempty"` - Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + GasLimit uint64 `protobuf:"varint,1,opt,name=gasLimit,proto3" json:"gasLimit,omitempty"` + Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` } func (x *GetSubnetworkResponseMessage) Reset() { *x = GetSubnetworkResponseMessage{} - mi := &file_rpc_proto_msgTypes[46] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[46] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *GetSubnetworkResponseMessage) String() string { @@ -2777,7 +2911,7 @@ func (*GetSubnetworkResponseMessage) ProtoMessage() {} func (x *GetSubnetworkResponseMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[46] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2809,18 +2943,21 @@ func (x *GetSubnetworkResponseMessage) GetError() *RPCError { // GetVirtualSelectedParentChainFromBlockRequestMessage requests the virtual // selected parent chain from some startHash to this kaspad's current virtual type GetVirtualSelectedParentChainFromBlockRequestMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - StartHash string `protobuf:"bytes,1,opt,name=startHash,proto3" json:"startHash,omitempty"` - IncludeAcceptedTransactionIds bool `protobuf:"varint,2,opt,name=includeAcceptedTransactionIds,proto3" json:"includeAcceptedTransactionIds,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + StartHash string `protobuf:"bytes,1,opt,name=startHash,proto3" json:"startHash,omitempty"` + IncludeAcceptedTransactionIds bool `protobuf:"varint,2,opt,name=includeAcceptedTransactionIds,proto3" json:"includeAcceptedTransactionIds,omitempty"` } func (x *GetVirtualSelectedParentChainFromBlockRequestMessage) Reset() { *x = GetVirtualSelectedParentChainFromBlockRequestMessage{} - mi := &file_rpc_proto_msgTypes[47] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[47] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *GetVirtualSelectedParentChainFromBlockRequestMessage) String() string { @@ -2831,7 +2968,7 @@ func (*GetVirtualSelectedParentChainFromBlockRequestMessage) ProtoMessage() {} func (x *GetVirtualSelectedParentChainFromBlockRequestMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[47] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2861,18 +2998,21 @@ func (x *GetVirtualSelectedParentChainFromBlockRequestMessage) GetIncludeAccepte } type AcceptedTransactionIds struct { - state protoimpl.MessageState `protogen:"open.v1"` - AcceptingBlockHash string `protobuf:"bytes,1,opt,name=acceptingBlockHash,proto3" json:"acceptingBlockHash,omitempty"` - AcceptedTransactionIds []string `protobuf:"bytes,2,rep,name=acceptedTransactionIds,proto3" json:"acceptedTransactionIds,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + AcceptingBlockHash string `protobuf:"bytes,1,opt,name=acceptingBlockHash,proto3" json:"acceptingBlockHash,omitempty"` + AcceptedTransactionIds []string `protobuf:"bytes,2,rep,name=acceptedTransactionIds,proto3" json:"acceptedTransactionIds,omitempty"` } func (x *AcceptedTransactionIds) Reset() { *x = AcceptedTransactionIds{} - mi := &file_rpc_proto_msgTypes[48] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[48] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *AcceptedTransactionIds) String() string { @@ -2883,7 +3023,7 @@ func (*AcceptedTransactionIds) ProtoMessage() {} func (x *AcceptedTransactionIds) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[48] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2913,7 +3053,10 @@ func (x *AcceptedTransactionIds) GetAcceptedTransactionIds() []string { } type GetVirtualSelectedParentChainFromBlockResponseMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // The chain blocks that were removed, in high-to-low order RemovedChainBlockHashes []string `protobuf:"bytes,1,rep,name=removedChainBlockHashes,proto3" json:"removedChainBlockHashes,omitempty"` // The chain blocks that were added, in low-to-high order @@ -2923,15 +3066,15 @@ type GetVirtualSelectedParentChainFromBlockResponseMessage struct { // request. AcceptedTransactionIds []*AcceptedTransactionIds `protobuf:"bytes,2,rep,name=acceptedTransactionIds,proto3" json:"acceptedTransactionIds,omitempty"` Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache } func (x *GetVirtualSelectedParentChainFromBlockResponseMessage) Reset() { *x = GetVirtualSelectedParentChainFromBlockResponseMessage{} - mi := &file_rpc_proto_msgTypes[49] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[49] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *GetVirtualSelectedParentChainFromBlockResponseMessage) String() string { @@ -2942,7 +3085,7 @@ func (*GetVirtualSelectedParentChainFromBlockResponseMessage) ProtoMessage() {} func (x *GetVirtualSelectedParentChainFromBlockResponseMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[49] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2988,19 +3131,22 @@ func (x *GetVirtualSelectedParentChainFromBlockResponseMessage) GetError() *RPCE // GetBlocksRequestMessage requests blocks between a certain block lowHash up to // this kaspad's current virtual. type GetBlocksRequestMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - LowHash string `protobuf:"bytes,1,opt,name=lowHash,proto3" json:"lowHash,omitempty"` - IncludeBlocks bool `protobuf:"varint,2,opt,name=includeBlocks,proto3" json:"includeBlocks,omitempty"` - IncludeTransactions bool `protobuf:"varint,3,opt,name=includeTransactions,proto3" json:"includeTransactions,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + LowHash string `protobuf:"bytes,1,opt,name=lowHash,proto3" json:"lowHash,omitempty"` + IncludeBlocks bool `protobuf:"varint,2,opt,name=includeBlocks,proto3" json:"includeBlocks,omitempty"` + IncludeTransactions bool `protobuf:"varint,3,opt,name=includeTransactions,proto3" json:"includeTransactions,omitempty"` } func (x *GetBlocksRequestMessage) Reset() { *x = GetBlocksRequestMessage{} - mi := &file_rpc_proto_msgTypes[50] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[50] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *GetBlocksRequestMessage) String() string { @@ -3011,7 +3157,7 @@ func (*GetBlocksRequestMessage) ProtoMessage() {} func (x *GetBlocksRequestMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[50] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3048,19 +3194,22 @@ func (x *GetBlocksRequestMessage) GetIncludeTransactions() bool { } type GetBlocksResponseMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - BlockHashes []string `protobuf:"bytes,4,rep,name=blockHashes,proto3" json:"blockHashes,omitempty"` - Blocks []*RpcBlock `protobuf:"bytes,3,rep,name=blocks,proto3" json:"blocks,omitempty"` - Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + BlockHashes []string `protobuf:"bytes,4,rep,name=blockHashes,proto3" json:"blockHashes,omitempty"` + Blocks []*RpcBlock `protobuf:"bytes,3,rep,name=blocks,proto3" json:"blocks,omitempty"` + Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` } func (x *GetBlocksResponseMessage) Reset() { *x = GetBlocksResponseMessage{} - mi := &file_rpc_proto_msgTypes[51] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[51] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *GetBlocksResponseMessage) String() string { @@ -3071,7 +3220,7 @@ func (*GetBlocksResponseMessage) ProtoMessage() {} func (x *GetBlocksResponseMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[51] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3110,16 +3259,18 @@ func (x *GetBlocksResponseMessage) GetError() *RPCError { // GetBlockCountRequestMessage requests the current number of blocks in this // kaspad. Note that this number may decrease as pruning occurs. type GetBlockCountRequestMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } func (x *GetBlockCountRequestMessage) Reset() { *x = GetBlockCountRequestMessage{} - mi := &file_rpc_proto_msgTypes[52] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[52] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *GetBlockCountRequestMessage) String() string { @@ -3130,7 +3281,7 @@ func (*GetBlockCountRequestMessage) ProtoMessage() {} func (x *GetBlockCountRequestMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[52] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3146,19 +3297,22 @@ func (*GetBlockCountRequestMessage) Descriptor() ([]byte, []int) { } type GetBlockCountResponseMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - BlockCount uint64 `protobuf:"varint,1,opt,name=blockCount,proto3" json:"blockCount,omitempty"` - HeaderCount uint64 `protobuf:"varint,2,opt,name=headerCount,proto3" json:"headerCount,omitempty"` - Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + BlockCount uint64 `protobuf:"varint,1,opt,name=blockCount,proto3" json:"blockCount,omitempty"` + HeaderCount uint64 `protobuf:"varint,2,opt,name=headerCount,proto3" json:"headerCount,omitempty"` + Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` } func (x *GetBlockCountResponseMessage) Reset() { *x = GetBlockCountResponseMessage{} - mi := &file_rpc_proto_msgTypes[53] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[53] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *GetBlockCountResponseMessage) String() string { @@ -3169,7 +3323,7 @@ func (*GetBlockCountResponseMessage) ProtoMessage() {} func (x *GetBlockCountResponseMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[53] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3208,16 +3362,18 @@ func (x *GetBlockCountResponseMessage) GetError() *RPCError { // GetBlockDagInfoRequestMessage requests general information about the current // state of this kaspad's DAG. type GetBlockDagInfoRequestMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } func (x *GetBlockDagInfoRequestMessage) Reset() { *x = GetBlockDagInfoRequestMessage{} - mi := &file_rpc_proto_msgTypes[54] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[54] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *GetBlockDagInfoRequestMessage) String() string { @@ -3228,7 +3384,7 @@ func (*GetBlockDagInfoRequestMessage) ProtoMessage() {} func (x *GetBlockDagInfoRequestMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[54] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3244,26 +3400,29 @@ func (*GetBlockDagInfoRequestMessage) Descriptor() ([]byte, []int) { } type GetBlockDagInfoResponseMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - NetworkName string `protobuf:"bytes,1,opt,name=networkName,proto3" json:"networkName,omitempty"` - BlockCount uint64 `protobuf:"varint,2,opt,name=blockCount,proto3" json:"blockCount,omitempty"` - HeaderCount uint64 `protobuf:"varint,3,opt,name=headerCount,proto3" json:"headerCount,omitempty"` - TipHashes []string `protobuf:"bytes,4,rep,name=tipHashes,proto3" json:"tipHashes,omitempty"` - Difficulty float64 `protobuf:"fixed64,5,opt,name=difficulty,proto3" json:"difficulty,omitempty"` - PastMedianTime int64 `protobuf:"varint,6,opt,name=pastMedianTime,proto3" json:"pastMedianTime,omitempty"` - VirtualParentHashes []string `protobuf:"bytes,7,rep,name=virtualParentHashes,proto3" json:"virtualParentHashes,omitempty"` - PruningPointHash string `protobuf:"bytes,8,opt,name=pruningPointHash,proto3" json:"pruningPointHash,omitempty"` - VirtualDaaScore uint64 `protobuf:"varint,9,opt,name=virtualDaaScore,proto3" json:"virtualDaaScore,omitempty"` - Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + NetworkName string `protobuf:"bytes,1,opt,name=networkName,proto3" json:"networkName,omitempty"` + BlockCount uint64 `protobuf:"varint,2,opt,name=blockCount,proto3" json:"blockCount,omitempty"` + HeaderCount uint64 `protobuf:"varint,3,opt,name=headerCount,proto3" json:"headerCount,omitempty"` + TipHashes []string `protobuf:"bytes,4,rep,name=tipHashes,proto3" json:"tipHashes,omitempty"` + Difficulty float64 `protobuf:"fixed64,5,opt,name=difficulty,proto3" json:"difficulty,omitempty"` + PastMedianTime int64 `protobuf:"varint,6,opt,name=pastMedianTime,proto3" json:"pastMedianTime,omitempty"` + VirtualParentHashes []string `protobuf:"bytes,7,rep,name=virtualParentHashes,proto3" json:"virtualParentHashes,omitempty"` + PruningPointHash string `protobuf:"bytes,8,opt,name=pruningPointHash,proto3" json:"pruningPointHash,omitempty"` + VirtualDaaScore uint64 `protobuf:"varint,9,opt,name=virtualDaaScore,proto3" json:"virtualDaaScore,omitempty"` + Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` } func (x *GetBlockDagInfoResponseMessage) Reset() { *x = GetBlockDagInfoResponseMessage{} - mi := &file_rpc_proto_msgTypes[55] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[55] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *GetBlockDagInfoResponseMessage) String() string { @@ -3274,7 +3433,7 @@ func (*GetBlockDagInfoResponseMessage) ProtoMessage() {} func (x *GetBlockDagInfoResponseMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[55] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3360,17 +3519,20 @@ func (x *GetBlockDagInfoResponseMessage) GetError() *RPCError { } type ResolveFinalityConflictRequestMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - FinalityBlockHash string `protobuf:"bytes,1,opt,name=finalityBlockHash,proto3" json:"finalityBlockHash,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + FinalityBlockHash string `protobuf:"bytes,1,opt,name=finalityBlockHash,proto3" json:"finalityBlockHash,omitempty"` } func (x *ResolveFinalityConflictRequestMessage) Reset() { *x = ResolveFinalityConflictRequestMessage{} - mi := &file_rpc_proto_msgTypes[56] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[56] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *ResolveFinalityConflictRequestMessage) String() string { @@ -3381,7 +3543,7 @@ func (*ResolveFinalityConflictRequestMessage) ProtoMessage() {} func (x *ResolveFinalityConflictRequestMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[56] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3404,17 +3566,20 @@ func (x *ResolveFinalityConflictRequestMessage) GetFinalityBlockHash() string { } type ResolveFinalityConflictResponseMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` } func (x *ResolveFinalityConflictResponseMessage) Reset() { *x = ResolveFinalityConflictResponseMessage{} - mi := &file_rpc_proto_msgTypes[57] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[57] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *ResolveFinalityConflictResponseMessage) String() string { @@ -3425,7 +3590,7 @@ func (*ResolveFinalityConflictResponseMessage) ProtoMessage() {} func (x *ResolveFinalityConflictResponseMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[57] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3448,16 +3613,18 @@ func (x *ResolveFinalityConflictResponseMessage) GetError() *RPCError { } type NotifyFinalityConflictsRequestMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } func (x *NotifyFinalityConflictsRequestMessage) Reset() { *x = NotifyFinalityConflictsRequestMessage{} - mi := &file_rpc_proto_msgTypes[58] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[58] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *NotifyFinalityConflictsRequestMessage) String() string { @@ -3468,7 +3635,7 @@ func (*NotifyFinalityConflictsRequestMessage) ProtoMessage() {} func (x *NotifyFinalityConflictsRequestMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[58] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3484,17 +3651,20 @@ func (*NotifyFinalityConflictsRequestMessage) Descriptor() ([]byte, []int) { } type NotifyFinalityConflictsResponseMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` } func (x *NotifyFinalityConflictsResponseMessage) Reset() { *x = NotifyFinalityConflictsResponseMessage{} - mi := &file_rpc_proto_msgTypes[59] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[59] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *NotifyFinalityConflictsResponseMessage) String() string { @@ -3505,7 +3675,7 @@ func (*NotifyFinalityConflictsResponseMessage) ProtoMessage() {} func (x *NotifyFinalityConflictsResponseMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[59] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3528,17 +3698,20 @@ func (x *NotifyFinalityConflictsResponseMessage) GetError() *RPCError { } type FinalityConflictNotificationMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - ViolatingBlockHash string `protobuf:"bytes,1,opt,name=violatingBlockHash,proto3" json:"violatingBlockHash,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ViolatingBlockHash string `protobuf:"bytes,1,opt,name=violatingBlockHash,proto3" json:"violatingBlockHash,omitempty"` } func (x *FinalityConflictNotificationMessage) Reset() { *x = FinalityConflictNotificationMessage{} - mi := &file_rpc_proto_msgTypes[60] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[60] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *FinalityConflictNotificationMessage) String() string { @@ -3549,7 +3722,7 @@ func (*FinalityConflictNotificationMessage) ProtoMessage() {} func (x *FinalityConflictNotificationMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[60] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3572,17 +3745,20 @@ func (x *FinalityConflictNotificationMessage) GetViolatingBlockHash() string { } type FinalityConflictResolvedNotificationMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - FinalityBlockHash string `protobuf:"bytes,1,opt,name=finalityBlockHash,proto3" json:"finalityBlockHash,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + FinalityBlockHash string `protobuf:"bytes,1,opt,name=finalityBlockHash,proto3" json:"finalityBlockHash,omitempty"` } func (x *FinalityConflictResolvedNotificationMessage) Reset() { *x = FinalityConflictResolvedNotificationMessage{} - mi := &file_rpc_proto_msgTypes[61] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[61] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *FinalityConflictResolvedNotificationMessage) String() string { @@ -3593,7 +3769,7 @@ func (*FinalityConflictResolvedNotificationMessage) ProtoMessage() {} func (x *FinalityConflictResolvedNotificationMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[61] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3617,16 +3793,18 @@ func (x *FinalityConflictResolvedNotificationMessage) GetFinalityBlockHash() str // ShutDownRequestMessage shuts down this kaspad. type ShutDownRequestMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } func (x *ShutDownRequestMessage) Reset() { *x = ShutDownRequestMessage{} - mi := &file_rpc_proto_msgTypes[62] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[62] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *ShutDownRequestMessage) String() string { @@ -3637,7 +3815,7 @@ func (*ShutDownRequestMessage) ProtoMessage() {} func (x *ShutDownRequestMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[62] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3653,17 +3831,20 @@ func (*ShutDownRequestMessage) Descriptor() ([]byte, []int) { } type ShutDownResponseMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` } func (x *ShutDownResponseMessage) Reset() { *x = ShutDownResponseMessage{} - mi := &file_rpc_proto_msgTypes[63] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[63] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *ShutDownResponseMessage) String() string { @@ -3674,7 +3855,7 @@ func (*ShutDownResponseMessage) ProtoMessage() {} func (x *ShutDownResponseMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[63] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3699,19 +3880,22 @@ func (x *ShutDownResponseMessage) GetError() *RPCError { // GetHeadersRequestMessage requests headers between the given startHash and the // current virtual, up to the given limit. type GetHeadersRequestMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - StartHash string `protobuf:"bytes,1,opt,name=startHash,proto3" json:"startHash,omitempty"` - Limit uint64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` - IsAscending bool `protobuf:"varint,3,opt,name=isAscending,proto3" json:"isAscending,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + StartHash string `protobuf:"bytes,1,opt,name=startHash,proto3" json:"startHash,omitempty"` + Limit uint64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` + IsAscending bool `protobuf:"varint,3,opt,name=isAscending,proto3" json:"isAscending,omitempty"` } func (x *GetHeadersRequestMessage) Reset() { *x = GetHeadersRequestMessage{} - mi := &file_rpc_proto_msgTypes[64] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[64] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *GetHeadersRequestMessage) String() string { @@ -3722,7 +3906,7 @@ func (*GetHeadersRequestMessage) ProtoMessage() {} func (x *GetHeadersRequestMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[64] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3759,18 +3943,21 @@ func (x *GetHeadersRequestMessage) GetIsAscending() bool { } type GetHeadersResponseMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - Headers []string `protobuf:"bytes,1,rep,name=headers,proto3" json:"headers,omitempty"` - Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Headers []string `protobuf:"bytes,1,rep,name=headers,proto3" json:"headers,omitempty"` + Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` } func (x *GetHeadersResponseMessage) Reset() { *x = GetHeadersResponseMessage{} - mi := &file_rpc_proto_msgTypes[65] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[65] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *GetHeadersResponseMessage) String() string { @@ -3781,7 +3968,7 @@ func (*GetHeadersResponseMessage) ProtoMessage() {} func (x *GetHeadersResponseMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[65] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3817,17 +4004,20 @@ func (x *GetHeadersResponseMessage) GetError() *RPCError { // // See: UtxosChangedNotificationMessage type NotifyUtxosChangedRequestMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - Addresses []string `protobuf:"bytes,1,rep,name=addresses,proto3" json:"addresses,omitempty"` // Leave empty to get all updates - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Addresses []string `protobuf:"bytes,1,rep,name=addresses,proto3" json:"addresses,omitempty"` // Leave empty to get all updates } func (x *NotifyUtxosChangedRequestMessage) Reset() { *x = NotifyUtxosChangedRequestMessage{} - mi := &file_rpc_proto_msgTypes[66] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[66] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *NotifyUtxosChangedRequestMessage) String() string { @@ -3838,7 +4028,7 @@ func (*NotifyUtxosChangedRequestMessage) ProtoMessage() {} func (x *NotifyUtxosChangedRequestMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[66] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3861,17 +4051,20 @@ func (x *NotifyUtxosChangedRequestMessage) GetAddresses() []string { } type NotifyUtxosChangedResponseMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` } func (x *NotifyUtxosChangedResponseMessage) Reset() { *x = NotifyUtxosChangedResponseMessage{} - mi := &file_rpc_proto_msgTypes[67] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[67] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *NotifyUtxosChangedResponseMessage) String() string { @@ -3882,7 +4075,7 @@ func (*NotifyUtxosChangedResponseMessage) ProtoMessage() {} func (x *NotifyUtxosChangedResponseMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[67] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3909,18 +4102,21 @@ func (x *NotifyUtxosChangedResponseMessage) GetError() *RPCError { // // See: NotifyUtxosChangedRequestMessage type UtxosChangedNotificationMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - Added []*UtxosByAddressesEntry `protobuf:"bytes,1,rep,name=added,proto3" json:"added,omitempty"` - Removed []*UtxosByAddressesEntry `protobuf:"bytes,2,rep,name=removed,proto3" json:"removed,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Added []*UtxosByAddressesEntry `protobuf:"bytes,1,rep,name=added,proto3" json:"added,omitempty"` + Removed []*UtxosByAddressesEntry `protobuf:"bytes,2,rep,name=removed,proto3" json:"removed,omitempty"` } func (x *UtxosChangedNotificationMessage) Reset() { *x = UtxosChangedNotificationMessage{} - mi := &file_rpc_proto_msgTypes[68] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[68] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *UtxosChangedNotificationMessage) String() string { @@ -3931,7 +4127,7 @@ func (*UtxosChangedNotificationMessage) ProtoMessage() {} func (x *UtxosChangedNotificationMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[68] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3961,19 +4157,22 @@ func (x *UtxosChangedNotificationMessage) GetRemoved() []*UtxosByAddressesEntry } type UtxosByAddressesEntry struct { - state protoimpl.MessageState `protogen:"open.v1"` - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` - Outpoint *RpcOutpoint `protobuf:"bytes,2,opt,name=outpoint,proto3" json:"outpoint,omitempty"` - UtxoEntry *RpcUtxoEntry `protobuf:"bytes,3,opt,name=utxoEntry,proto3" json:"utxoEntry,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + Outpoint *RpcOutpoint `protobuf:"bytes,2,opt,name=outpoint,proto3" json:"outpoint,omitempty"` + UtxoEntry *RpcUtxoEntry `protobuf:"bytes,3,opt,name=utxoEntry,proto3" json:"utxoEntry,omitempty"` } func (x *UtxosByAddressesEntry) Reset() { *x = UtxosByAddressesEntry{} - mi := &file_rpc_proto_msgTypes[69] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[69] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *UtxosByAddressesEntry) String() string { @@ -3984,7 +4183,7 @@ func (*UtxosByAddressesEntry) ProtoMessage() {} func (x *UtxosByAddressesEntry) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[69] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4027,17 +4226,20 @@ func (x *UtxosByAddressesEntry) GetUtxoEntry() *RpcUtxoEntry { // // See: UtxosChangedNotificationMessage type StopNotifyingUtxosChangedRequestMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - Addresses []string `protobuf:"bytes,1,rep,name=addresses,proto3" json:"addresses,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Addresses []string `protobuf:"bytes,1,rep,name=addresses,proto3" json:"addresses,omitempty"` } func (x *StopNotifyingUtxosChangedRequestMessage) Reset() { *x = StopNotifyingUtxosChangedRequestMessage{} - mi := &file_rpc_proto_msgTypes[70] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[70] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *StopNotifyingUtxosChangedRequestMessage) String() string { @@ -4048,7 +4250,7 @@ func (*StopNotifyingUtxosChangedRequestMessage) ProtoMessage() {} func (x *StopNotifyingUtxosChangedRequestMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[70] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4071,17 +4273,20 @@ func (x *StopNotifyingUtxosChangedRequestMessage) GetAddresses() []string { } type StopNotifyingUtxosChangedResponseMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` } func (x *StopNotifyingUtxosChangedResponseMessage) Reset() { *x = StopNotifyingUtxosChangedResponseMessage{} - mi := &file_rpc_proto_msgTypes[71] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[71] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *StopNotifyingUtxosChangedResponseMessage) String() string { @@ -4092,7 +4297,7 @@ func (*StopNotifyingUtxosChangedResponseMessage) ProtoMessage() {} func (x *StopNotifyingUtxosChangedResponseMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[71] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4119,17 +4324,20 @@ func (x *StopNotifyingUtxosChangedResponseMessage) GetError() *RPCError { // // This call is only available when this kaspad was started with `--utxoindex` type GetUtxosByAddressesRequestMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - Addresses []string `protobuf:"bytes,1,rep,name=addresses,proto3" json:"addresses,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Addresses []string `protobuf:"bytes,1,rep,name=addresses,proto3" json:"addresses,omitempty"` } func (x *GetUtxosByAddressesRequestMessage) Reset() { *x = GetUtxosByAddressesRequestMessage{} - mi := &file_rpc_proto_msgTypes[72] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[72] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *GetUtxosByAddressesRequestMessage) String() string { @@ -4140,7 +4348,7 @@ func (*GetUtxosByAddressesRequestMessage) ProtoMessage() {} func (x *GetUtxosByAddressesRequestMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[72] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4163,18 +4371,21 @@ func (x *GetUtxosByAddressesRequestMessage) GetAddresses() []string { } type GetUtxosByAddressesResponseMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - Entries []*UtxosByAddressesEntry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"` - Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Entries []*UtxosByAddressesEntry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"` + Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` } func (x *GetUtxosByAddressesResponseMessage) Reset() { *x = GetUtxosByAddressesResponseMessage{} - mi := &file_rpc_proto_msgTypes[73] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[73] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *GetUtxosByAddressesResponseMessage) String() string { @@ -4185,7 +4396,7 @@ func (*GetUtxosByAddressesResponseMessage) ProtoMessage() {} func (x *GetUtxosByAddressesResponseMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[73] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4219,17 +4430,20 @@ func (x *GetUtxosByAddressesResponseMessage) GetError() *RPCError { // // This call is only available when this kaspad was started with `--utxoindex` type GetBalanceByAddressRequestMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` } func (x *GetBalanceByAddressRequestMessage) Reset() { *x = GetBalanceByAddressRequestMessage{} - mi := &file_rpc_proto_msgTypes[74] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[74] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *GetBalanceByAddressRequestMessage) String() string { @@ -4240,7 +4454,7 @@ func (*GetBalanceByAddressRequestMessage) ProtoMessage() {} func (x *GetBalanceByAddressRequestMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[74] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4263,18 +4477,21 @@ func (x *GetBalanceByAddressRequestMessage) GetAddress() string { } type GetBalanceByAddressResponseMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - Balance uint64 `protobuf:"varint,1,opt,name=balance,proto3" json:"balance,omitempty"` - Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Balance uint64 `protobuf:"varint,1,opt,name=balance,proto3" json:"balance,omitempty"` + Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` } func (x *GetBalanceByAddressResponseMessage) Reset() { *x = GetBalanceByAddressResponseMessage{} - mi := &file_rpc_proto_msgTypes[75] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[75] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *GetBalanceByAddressResponseMessage) String() string { @@ -4285,7 +4502,7 @@ func (*GetBalanceByAddressResponseMessage) ProtoMessage() {} func (x *GetBalanceByAddressResponseMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[75] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4315,17 +4532,20 @@ func (x *GetBalanceByAddressResponseMessage) GetError() *RPCError { } type GetBalancesByAddressesRequestMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - Addresses []string `protobuf:"bytes,1,rep,name=addresses,proto3" json:"addresses,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Addresses []string `protobuf:"bytes,1,rep,name=addresses,proto3" json:"addresses,omitempty"` } func (x *GetBalancesByAddressesRequestMessage) Reset() { *x = GetBalancesByAddressesRequestMessage{} - mi := &file_rpc_proto_msgTypes[76] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[76] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *GetBalancesByAddressesRequestMessage) String() string { @@ -4336,7 +4556,7 @@ func (*GetBalancesByAddressesRequestMessage) ProtoMessage() {} func (x *GetBalancesByAddressesRequestMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[76] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4359,19 +4579,22 @@ func (x *GetBalancesByAddressesRequestMessage) GetAddresses() []string { } type BalancesByAddressEntry struct { - state protoimpl.MessageState `protogen:"open.v1"` - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` - Balance uint64 `protobuf:"varint,2,opt,name=balance,proto3" json:"balance,omitempty"` - Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + Balance uint64 `protobuf:"varint,2,opt,name=balance,proto3" json:"balance,omitempty"` + Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` } func (x *BalancesByAddressEntry) Reset() { *x = BalancesByAddressEntry{} - mi := &file_rpc_proto_msgTypes[77] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[77] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *BalancesByAddressEntry) String() string { @@ -4382,7 +4605,7 @@ func (*BalancesByAddressEntry) ProtoMessage() {} func (x *BalancesByAddressEntry) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[77] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4419,18 +4642,21 @@ func (x *BalancesByAddressEntry) GetError() *RPCError { } type GetBalancesByAddressesResponseMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - Entries []*BalancesByAddressEntry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"` - Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Entries []*BalancesByAddressEntry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"` + Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` } func (x *GetBalancesByAddressesResponseMessage) Reset() { *x = GetBalancesByAddressesResponseMessage{} - mi := &file_rpc_proto_msgTypes[78] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[78] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *GetBalancesByAddressesResponseMessage) String() string { @@ -4441,7 +4667,7 @@ func (*GetBalancesByAddressesResponseMessage) ProtoMessage() {} func (x *GetBalancesByAddressesResponseMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[78] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4473,16 +4699,18 @@ func (x *GetBalancesByAddressesResponseMessage) GetError() *RPCError { // GetVirtualSelectedParentBlueScoreRequestMessage requests the blue score of // the current selected parent of the virtual block. type GetVirtualSelectedParentBlueScoreRequestMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } func (x *GetVirtualSelectedParentBlueScoreRequestMessage) Reset() { *x = GetVirtualSelectedParentBlueScoreRequestMessage{} - mi := &file_rpc_proto_msgTypes[79] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[79] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *GetVirtualSelectedParentBlueScoreRequestMessage) String() string { @@ -4493,7 +4721,7 @@ func (*GetVirtualSelectedParentBlueScoreRequestMessage) ProtoMessage() {} func (x *GetVirtualSelectedParentBlueScoreRequestMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[79] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4509,18 +4737,21 @@ func (*GetVirtualSelectedParentBlueScoreRequestMessage) Descriptor() ([]byte, [] } type GetVirtualSelectedParentBlueScoreResponseMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - BlueScore uint64 `protobuf:"varint,1,opt,name=blueScore,proto3" json:"blueScore,omitempty"` - Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + BlueScore uint64 `protobuf:"varint,1,opt,name=blueScore,proto3" json:"blueScore,omitempty"` + Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` } func (x *GetVirtualSelectedParentBlueScoreResponseMessage) Reset() { *x = GetVirtualSelectedParentBlueScoreResponseMessage{} - mi := &file_rpc_proto_msgTypes[80] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[80] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *GetVirtualSelectedParentBlueScoreResponseMessage) String() string { @@ -4531,7 +4762,7 @@ func (*GetVirtualSelectedParentBlueScoreResponseMessage) ProtoMessage() {} func (x *GetVirtualSelectedParentBlueScoreResponseMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[80] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4565,16 +4796,18 @@ func (x *GetVirtualSelectedParentBlueScoreResponseMessage) GetError() *RPCError // // See: VirtualSelectedParentBlueScoreChangedNotificationMessage type NotifyVirtualSelectedParentBlueScoreChangedRequestMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } func (x *NotifyVirtualSelectedParentBlueScoreChangedRequestMessage) Reset() { *x = NotifyVirtualSelectedParentBlueScoreChangedRequestMessage{} - mi := &file_rpc_proto_msgTypes[81] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[81] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *NotifyVirtualSelectedParentBlueScoreChangedRequestMessage) String() string { @@ -4585,7 +4818,7 @@ func (*NotifyVirtualSelectedParentBlueScoreChangedRequestMessage) ProtoMessage() func (x *NotifyVirtualSelectedParentBlueScoreChangedRequestMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[81] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4601,17 +4834,20 @@ func (*NotifyVirtualSelectedParentBlueScoreChangedRequestMessage) Descriptor() ( } type NotifyVirtualSelectedParentBlueScoreChangedResponseMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` } func (x *NotifyVirtualSelectedParentBlueScoreChangedResponseMessage) Reset() { *x = NotifyVirtualSelectedParentBlueScoreChangedResponseMessage{} - mi := &file_rpc_proto_msgTypes[82] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[82] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *NotifyVirtualSelectedParentBlueScoreChangedResponseMessage) String() string { @@ -4622,7 +4858,7 @@ func (*NotifyVirtualSelectedParentBlueScoreChangedResponseMessage) ProtoMessage( func (x *NotifyVirtualSelectedParentBlueScoreChangedResponseMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[82] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4649,17 +4885,20 @@ func (x *NotifyVirtualSelectedParentBlueScoreChangedResponseMessage) GetError() // // See NotifyVirtualSelectedParentBlueScoreChangedRequestMessage type VirtualSelectedParentBlueScoreChangedNotificationMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - VirtualSelectedParentBlueScore uint64 `protobuf:"varint,1,opt,name=virtualSelectedParentBlueScore,proto3" json:"virtualSelectedParentBlueScore,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + VirtualSelectedParentBlueScore uint64 `protobuf:"varint,1,opt,name=virtualSelectedParentBlueScore,proto3" json:"virtualSelectedParentBlueScore,omitempty"` } func (x *VirtualSelectedParentBlueScoreChangedNotificationMessage) Reset() { *x = VirtualSelectedParentBlueScoreChangedNotificationMessage{} - mi := &file_rpc_proto_msgTypes[83] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[83] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *VirtualSelectedParentBlueScoreChangedNotificationMessage) String() string { @@ -4670,7 +4909,7 @@ func (*VirtualSelectedParentBlueScoreChangedNotificationMessage) ProtoMessage() func (x *VirtualSelectedParentBlueScoreChangedNotificationMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[83] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4697,16 +4936,18 @@ func (x *VirtualSelectedParentBlueScoreChangedNotificationMessage) GetVirtualSel // // See: VirtualDaaScoreChangedNotificationMessage type NotifyVirtualDaaScoreChangedRequestMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } func (x *NotifyVirtualDaaScoreChangedRequestMessage) Reset() { *x = NotifyVirtualDaaScoreChangedRequestMessage{} - mi := &file_rpc_proto_msgTypes[84] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[84] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *NotifyVirtualDaaScoreChangedRequestMessage) String() string { @@ -4717,7 +4958,7 @@ func (*NotifyVirtualDaaScoreChangedRequestMessage) ProtoMessage() {} func (x *NotifyVirtualDaaScoreChangedRequestMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[84] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4733,17 +4974,20 @@ func (*NotifyVirtualDaaScoreChangedRequestMessage) Descriptor() ([]byte, []int) } type NotifyVirtualDaaScoreChangedResponseMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` } func (x *NotifyVirtualDaaScoreChangedResponseMessage) Reset() { *x = NotifyVirtualDaaScoreChangedResponseMessage{} - mi := &file_rpc_proto_msgTypes[85] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[85] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *NotifyVirtualDaaScoreChangedResponseMessage) String() string { @@ -4754,7 +4998,7 @@ func (*NotifyVirtualDaaScoreChangedResponseMessage) ProtoMessage() {} func (x *NotifyVirtualDaaScoreChangedResponseMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[85] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4781,17 +5025,20 @@ func (x *NotifyVirtualDaaScoreChangedResponseMessage) GetError() *RPCError { // // See NotifyVirtualDaaScoreChangedRequestMessage type VirtualDaaScoreChangedNotificationMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - VirtualDaaScore uint64 `protobuf:"varint,1,opt,name=virtualDaaScore,proto3" json:"virtualDaaScore,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + VirtualDaaScore uint64 `protobuf:"varint,1,opt,name=virtualDaaScore,proto3" json:"virtualDaaScore,omitempty"` } func (x *VirtualDaaScoreChangedNotificationMessage) Reset() { *x = VirtualDaaScoreChangedNotificationMessage{} - mi := &file_rpc_proto_msgTypes[86] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[86] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *VirtualDaaScoreChangedNotificationMessage) String() string { @@ -4802,7 +5049,7 @@ func (*VirtualDaaScoreChangedNotificationMessage) ProtoMessage() {} func (x *VirtualDaaScoreChangedNotificationMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[86] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4831,16 +5078,18 @@ func (x *VirtualDaaScoreChangedNotificationMessage) GetVirtualDaaScore() uint64 // // See: NotifyPruningPointUTXOSetOverrideResponseMessage type NotifyPruningPointUTXOSetOverrideRequestMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } func (x *NotifyPruningPointUTXOSetOverrideRequestMessage) Reset() { *x = NotifyPruningPointUTXOSetOverrideRequestMessage{} - mi := &file_rpc_proto_msgTypes[87] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[87] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *NotifyPruningPointUTXOSetOverrideRequestMessage) String() string { @@ -4851,7 +5100,7 @@ func (*NotifyPruningPointUTXOSetOverrideRequestMessage) ProtoMessage() {} func (x *NotifyPruningPointUTXOSetOverrideRequestMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[87] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4867,17 +5116,20 @@ func (*NotifyPruningPointUTXOSetOverrideRequestMessage) Descriptor() ([]byte, [] } type NotifyPruningPointUTXOSetOverrideResponseMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` } func (x *NotifyPruningPointUTXOSetOverrideResponseMessage) Reset() { *x = NotifyPruningPointUTXOSetOverrideResponseMessage{} - mi := &file_rpc_proto_msgTypes[88] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[88] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *NotifyPruningPointUTXOSetOverrideResponseMessage) String() string { @@ -4888,7 +5140,7 @@ func (*NotifyPruningPointUTXOSetOverrideResponseMessage) ProtoMessage() {} func (x *NotifyPruningPointUTXOSetOverrideResponseMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[88] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4915,16 +5167,18 @@ func (x *NotifyPruningPointUTXOSetOverrideResponseMessage) GetError() *RPCError // // See NotifyPruningPointUTXOSetOverrideRequestMessage type PruningPointUTXOSetOverrideNotificationMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } func (x *PruningPointUTXOSetOverrideNotificationMessage) Reset() { *x = PruningPointUTXOSetOverrideNotificationMessage{} - mi := &file_rpc_proto_msgTypes[89] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[89] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *PruningPointUTXOSetOverrideNotificationMessage) String() string { @@ -4935,7 +5189,7 @@ func (*PruningPointUTXOSetOverrideNotificationMessage) ProtoMessage() {} func (x *PruningPointUTXOSetOverrideNotificationMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[89] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4957,16 +5211,18 @@ func (*PruningPointUTXOSetOverrideNotificationMessage) Descriptor() ([]byte, []i // // See: PruningPointUTXOSetOverrideNotificationMessage type StopNotifyingPruningPointUTXOSetOverrideRequestMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } func (x *StopNotifyingPruningPointUTXOSetOverrideRequestMessage) Reset() { *x = StopNotifyingPruningPointUTXOSetOverrideRequestMessage{} - mi := &file_rpc_proto_msgTypes[90] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[90] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *StopNotifyingPruningPointUTXOSetOverrideRequestMessage) String() string { @@ -4977,7 +5233,7 @@ func (*StopNotifyingPruningPointUTXOSetOverrideRequestMessage) ProtoMessage() {} func (x *StopNotifyingPruningPointUTXOSetOverrideRequestMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[90] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4993,17 +5249,20 @@ func (*StopNotifyingPruningPointUTXOSetOverrideRequestMessage) Descriptor() ([]b } type StopNotifyingPruningPointUTXOSetOverrideResponseMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` } func (x *StopNotifyingPruningPointUTXOSetOverrideResponseMessage) Reset() { *x = StopNotifyingPruningPointUTXOSetOverrideResponseMessage{} - mi := &file_rpc_proto_msgTypes[91] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[91] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *StopNotifyingPruningPointUTXOSetOverrideResponseMessage) String() string { @@ -5014,7 +5273,7 @@ func (*StopNotifyingPruningPointUTXOSetOverrideResponseMessage) ProtoMessage() { func (x *StopNotifyingPruningPointUTXOSetOverrideResponseMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[91] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -5038,17 +5297,20 @@ func (x *StopNotifyingPruningPointUTXOSetOverrideResponseMessage) GetError() *RP // BanRequestMessage bans the given ip. type BanRequestMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - Ip string `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Ip string `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"` } func (x *BanRequestMessage) Reset() { *x = BanRequestMessage{} - mi := &file_rpc_proto_msgTypes[92] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[92] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *BanRequestMessage) String() string { @@ -5059,7 +5321,7 @@ func (*BanRequestMessage) ProtoMessage() {} func (x *BanRequestMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[92] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -5082,17 +5344,20 @@ func (x *BanRequestMessage) GetIp() string { } type BanResponseMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` } func (x *BanResponseMessage) Reset() { *x = BanResponseMessage{} - mi := &file_rpc_proto_msgTypes[93] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[93] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *BanResponseMessage) String() string { @@ -5103,7 +5368,7 @@ func (*BanResponseMessage) ProtoMessage() {} func (x *BanResponseMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[93] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -5127,17 +5392,20 @@ func (x *BanResponseMessage) GetError() *RPCError { // UnbanRequestMessage unbans the given ip. type UnbanRequestMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - Ip string `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Ip string `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"` } func (x *UnbanRequestMessage) Reset() { *x = UnbanRequestMessage{} - mi := &file_rpc_proto_msgTypes[94] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[94] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *UnbanRequestMessage) String() string { @@ -5148,7 +5416,7 @@ func (*UnbanRequestMessage) ProtoMessage() {} func (x *UnbanRequestMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[94] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -5171,17 +5439,20 @@ func (x *UnbanRequestMessage) GetIp() string { } type UnbanResponseMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` } func (x *UnbanResponseMessage) Reset() { *x = UnbanResponseMessage{} - mi := &file_rpc_proto_msgTypes[95] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[95] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *UnbanResponseMessage) String() string { @@ -5192,7 +5463,7 @@ func (*UnbanResponseMessage) ProtoMessage() {} func (x *UnbanResponseMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[95] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -5216,16 +5487,18 @@ func (x *UnbanResponseMessage) GetError() *RPCError { // GetInfoRequestMessage returns info about the node. type GetInfoRequestMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } func (x *GetInfoRequestMessage) Reset() { *x = GetInfoRequestMessage{} - mi := &file_rpc_proto_msgTypes[96] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[96] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *GetInfoRequestMessage) String() string { @@ -5236,7 +5509,7 @@ func (*GetInfoRequestMessage) ProtoMessage() {} func (x *GetInfoRequestMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[96] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -5252,22 +5525,25 @@ func (*GetInfoRequestMessage) Descriptor() ([]byte, []int) { } type GetInfoResponseMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - P2PId string `protobuf:"bytes,1,opt,name=p2pId,proto3" json:"p2pId,omitempty"` - MempoolSize uint64 `protobuf:"varint,2,opt,name=mempoolSize,proto3" json:"mempoolSize,omitempty"` - ServerVersion string `protobuf:"bytes,3,opt,name=serverVersion,proto3" json:"serverVersion,omitempty"` - IsUtxoIndexed bool `protobuf:"varint,4,opt,name=isUtxoIndexed,proto3" json:"isUtxoIndexed,omitempty"` - IsSynced bool `protobuf:"varint,5,opt,name=isSynced,proto3" json:"isSynced,omitempty"` - Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + P2PId string `protobuf:"bytes,1,opt,name=p2pId,proto3" json:"p2pId,omitempty"` + MempoolSize uint64 `protobuf:"varint,2,opt,name=mempoolSize,proto3" json:"mempoolSize,omitempty"` + ServerVersion string `protobuf:"bytes,3,opt,name=serverVersion,proto3" json:"serverVersion,omitempty"` + IsUtxoIndexed bool `protobuf:"varint,4,opt,name=isUtxoIndexed,proto3" json:"isUtxoIndexed,omitempty"` + IsSynced bool `protobuf:"varint,5,opt,name=isSynced,proto3" json:"isSynced,omitempty"` + Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` } func (x *GetInfoResponseMessage) Reset() { *x = GetInfoResponseMessage{} - mi := &file_rpc_proto_msgTypes[97] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[97] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *GetInfoResponseMessage) String() string { @@ -5278,7 +5554,7 @@ func (*GetInfoResponseMessage) ProtoMessage() {} func (x *GetInfoResponseMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[97] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -5336,18 +5612,21 @@ func (x *GetInfoResponseMessage) GetError() *RPCError { } type EstimateNetworkHashesPerSecondRequestMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - WindowSize uint32 `protobuf:"varint,1,opt,name=windowSize,proto3" json:"windowSize,omitempty"` - StartHash string `protobuf:"bytes,2,opt,name=startHash,proto3" json:"startHash,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + WindowSize uint32 `protobuf:"varint,1,opt,name=windowSize,proto3" json:"windowSize,omitempty"` + StartHash string `protobuf:"bytes,2,opt,name=startHash,proto3" json:"startHash,omitempty"` } func (x *EstimateNetworkHashesPerSecondRequestMessage) Reset() { *x = EstimateNetworkHashesPerSecondRequestMessage{} - mi := &file_rpc_proto_msgTypes[98] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[98] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *EstimateNetworkHashesPerSecondRequestMessage) String() string { @@ -5358,7 +5637,7 @@ func (*EstimateNetworkHashesPerSecondRequestMessage) ProtoMessage() {} func (x *EstimateNetworkHashesPerSecondRequestMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[98] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -5388,18 +5667,21 @@ func (x *EstimateNetworkHashesPerSecondRequestMessage) GetStartHash() string { } type EstimateNetworkHashesPerSecondResponseMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - NetworkHashesPerSecond uint64 `protobuf:"varint,1,opt,name=networkHashesPerSecond,proto3" json:"networkHashesPerSecond,omitempty"` - Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + NetworkHashesPerSecond uint64 `protobuf:"varint,1,opt,name=networkHashesPerSecond,proto3" json:"networkHashesPerSecond,omitempty"` + Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` } func (x *EstimateNetworkHashesPerSecondResponseMessage) Reset() { *x = EstimateNetworkHashesPerSecondResponseMessage{} - mi := &file_rpc_proto_msgTypes[99] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[99] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *EstimateNetworkHashesPerSecondResponseMessage) String() string { @@ -5410,7 +5692,7 @@ func (*EstimateNetworkHashesPerSecondResponseMessage) ProtoMessage() {} func (x *EstimateNetworkHashesPerSecondResponseMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[99] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -5444,16 +5726,18 @@ func (x *EstimateNetworkHashesPerSecondResponseMessage) GetError() *RPCError { // // See: NewBlockTemplateNotificationMessage type NotifyNewBlockTemplateRequestMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } func (x *NotifyNewBlockTemplateRequestMessage) Reset() { *x = NotifyNewBlockTemplateRequestMessage{} - mi := &file_rpc_proto_msgTypes[100] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[100] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *NotifyNewBlockTemplateRequestMessage) String() string { @@ -5464,7 +5748,7 @@ func (*NotifyNewBlockTemplateRequestMessage) ProtoMessage() {} func (x *NotifyNewBlockTemplateRequestMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[100] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -5480,17 +5764,20 @@ func (*NotifyNewBlockTemplateRequestMessage) Descriptor() ([]byte, []int) { } type NotifyNewBlockTemplateResponseMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` } func (x *NotifyNewBlockTemplateResponseMessage) Reset() { *x = NotifyNewBlockTemplateResponseMessage{} - mi := &file_rpc_proto_msgTypes[101] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[101] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *NotifyNewBlockTemplateResponseMessage) String() string { @@ -5501,7 +5788,7 @@ func (*NotifyNewBlockTemplateResponseMessage) ProtoMessage() {} func (x *NotifyNewBlockTemplateResponseMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[101] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -5528,16 +5815,18 @@ func (x *NotifyNewBlockTemplateResponseMessage) GetError() *RPCError { // // See NotifyNewBlockTemplateRequestMessage type NewBlockTemplateNotificationMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } func (x *NewBlockTemplateNotificationMessage) Reset() { *x = NewBlockTemplateNotificationMessage{} - mi := &file_rpc_proto_msgTypes[102] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[102] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *NewBlockTemplateNotificationMessage) String() string { @@ -5548,7 +5837,7 @@ func (*NewBlockTemplateNotificationMessage) ProtoMessage() {} func (x *NewBlockTemplateNotificationMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[102] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -5564,19 +5853,22 @@ func (*NewBlockTemplateNotificationMessage) Descriptor() ([]byte, []int) { } type MempoolEntryByAddress struct { - state protoimpl.MessageState `protogen:"open.v1"` - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` - Sending []*MempoolEntry `protobuf:"bytes,2,rep,name=sending,proto3" json:"sending,omitempty"` - Receiving []*MempoolEntry `protobuf:"bytes,3,rep,name=receiving,proto3" json:"receiving,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + Sending []*MempoolEntry `protobuf:"bytes,2,rep,name=sending,proto3" json:"sending,omitempty"` + Receiving []*MempoolEntry `protobuf:"bytes,3,rep,name=receiving,proto3" json:"receiving,omitempty"` } func (x *MempoolEntryByAddress) Reset() { *x = MempoolEntryByAddress{} - mi := &file_rpc_proto_msgTypes[103] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[103] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *MempoolEntryByAddress) String() string { @@ -5587,7 +5879,7 @@ func (*MempoolEntryByAddress) ProtoMessage() {} func (x *MempoolEntryByAddress) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[103] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -5624,19 +5916,22 @@ func (x *MempoolEntryByAddress) GetReceiving() []*MempoolEntry { } type GetMempoolEntriesByAddressesRequestMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - Addresses []string `protobuf:"bytes,1,rep,name=addresses,proto3" json:"addresses,omitempty"` - IncludeOrphanPool bool `protobuf:"varint,2,opt,name=includeOrphanPool,proto3" json:"includeOrphanPool,omitempty"` - FilterTransactionPool bool `protobuf:"varint,3,opt,name=filterTransactionPool,proto3" json:"filterTransactionPool,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Addresses []string `protobuf:"bytes,1,rep,name=addresses,proto3" json:"addresses,omitempty"` + IncludeOrphanPool bool `protobuf:"varint,2,opt,name=includeOrphanPool,proto3" json:"includeOrphanPool,omitempty"` + FilterTransactionPool bool `protobuf:"varint,3,opt,name=filterTransactionPool,proto3" json:"filterTransactionPool,omitempty"` } func (x *GetMempoolEntriesByAddressesRequestMessage) Reset() { *x = GetMempoolEntriesByAddressesRequestMessage{} - mi := &file_rpc_proto_msgTypes[104] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[104] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *GetMempoolEntriesByAddressesRequestMessage) String() string { @@ -5647,7 +5942,7 @@ func (*GetMempoolEntriesByAddressesRequestMessage) ProtoMessage() {} func (x *GetMempoolEntriesByAddressesRequestMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[104] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -5684,18 +5979,21 @@ func (x *GetMempoolEntriesByAddressesRequestMessage) GetFilterTransactionPool() } type GetMempoolEntriesByAddressesResponseMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - Entries []*MempoolEntryByAddress `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"` - Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Entries []*MempoolEntryByAddress `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"` + Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` } func (x *GetMempoolEntriesByAddressesResponseMessage) Reset() { *x = GetMempoolEntriesByAddressesResponseMessage{} - mi := &file_rpc_proto_msgTypes[105] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[105] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *GetMempoolEntriesByAddressesResponseMessage) String() string { @@ -5706,7 +6004,7 @@ func (*GetMempoolEntriesByAddressesResponseMessage) ProtoMessage() {} func (x *GetMempoolEntriesByAddressesResponseMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[105] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -5736,16 +6034,18 @@ func (x *GetMempoolEntriesByAddressesResponseMessage) GetError() *RPCError { } type GetCoinSupplyRequestMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } func (x *GetCoinSupplyRequestMessage) Reset() { *x = GetCoinSupplyRequestMessage{} - mi := &file_rpc_proto_msgTypes[106] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[106] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *GetCoinSupplyRequestMessage) String() string { @@ -5756,7 +6056,7 @@ func (*GetCoinSupplyRequestMessage) ProtoMessage() {} func (x *GetCoinSupplyRequestMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[106] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -5772,20 +6072,23 @@ func (*GetCoinSupplyRequestMessage) Descriptor() ([]byte, []int) { } type GetCoinSupplyResponseMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - MaxSompi uint64 `protobuf:"varint,1,opt,name=maxSompi,proto3" json:"maxSompi,omitempty"` // note: this is a hard coded maxSupply, actual maxSupply is expected + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + MaxSompi uint64 `protobuf:"varint,1,opt,name=maxSompi,proto3" json:"maxSompi,omitempty"` // note: this is a hard coded maxSupply, actual maxSupply is expected // to deviate by upto -5%, but cannot be measured exactly. CirculatingSompi uint64 `protobuf:"varint,2,opt,name=circulatingSompi,proto3" json:"circulatingSompi,omitempty"` Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache } func (x *GetCoinSupplyResponseMessage) Reset() { *x = GetCoinSupplyResponseMessage{} - mi := &file_rpc_proto_msgTypes[107] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[107] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *GetCoinSupplyResponseMessage) String() string { @@ -5796,7 +6099,7 @@ func (*GetCoinSupplyResponseMessage) ProtoMessage() {} func (x *GetCoinSupplyResponseMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[107] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -5833,16 +6136,18 @@ func (x *GetCoinSupplyResponseMessage) GetError() *RPCError { } type PingRequestMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } func (x *PingRequestMessage) Reset() { *x = PingRequestMessage{} - mi := &file_rpc_proto_msgTypes[108] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[108] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *PingRequestMessage) String() string { @@ -5853,7 +6158,7 @@ func (*PingRequestMessage) ProtoMessage() {} func (x *PingRequestMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[108] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -5869,17 +6174,20 @@ func (*PingRequestMessage) Descriptor() ([]byte, []int) { } type PingResponseMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` } func (x *PingResponseMessage) Reset() { *x = PingResponseMessage{} - mi := &file_rpc_proto_msgTypes[109] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[109] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *PingResponseMessage) String() string { @@ -5890,7 +6198,7 @@ func (*PingResponseMessage) ProtoMessage() {} func (x *PingResponseMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[109] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -5913,25 +6221,28 @@ func (x *PingResponseMessage) GetError() *RPCError { } type ProcessMetrics struct { - state protoimpl.MessageState `protogen:"open.v1"` - ResidentSetSize uint64 `protobuf:"varint,1,opt,name=residentSetSize,proto3" json:"residentSetSize,omitempty"` - VirtualMemorySize uint64 `protobuf:"varint,2,opt,name=virtualMemorySize,proto3" json:"virtualMemorySize,omitempty"` - CoreNum uint32 `protobuf:"varint,3,opt,name=coreNum,proto3" json:"coreNum,omitempty"` - CpuUsage float32 `protobuf:"fixed32,4,opt,name=cpuUsage,proto3" json:"cpuUsage,omitempty"` - FdNum uint32 `protobuf:"varint,5,opt,name=fdNum,proto3" json:"fdNum,omitempty"` - DiskIoReadBytes uint64 `protobuf:"varint,6,opt,name=diskIoReadBytes,proto3" json:"diskIoReadBytes,omitempty"` - DiskIoWriteBytes uint64 `protobuf:"varint,7,opt,name=diskIoWriteBytes,proto3" json:"diskIoWriteBytes,omitempty"` - DiskIoReadPerSec float32 `protobuf:"fixed32,8,opt,name=diskIoReadPerSec,proto3" json:"diskIoReadPerSec,omitempty"` - DiskIoWritePerSec float32 `protobuf:"fixed32,9,opt,name=diskIoWritePerSec,proto3" json:"diskIoWritePerSec,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ResidentSetSize uint64 `protobuf:"varint,1,opt,name=residentSetSize,proto3" json:"residentSetSize,omitempty"` + VirtualMemorySize uint64 `protobuf:"varint,2,opt,name=virtualMemorySize,proto3" json:"virtualMemorySize,omitempty"` + CoreNum uint32 `protobuf:"varint,3,opt,name=coreNum,proto3" json:"coreNum,omitempty"` + CpuUsage float32 `protobuf:"fixed32,4,opt,name=cpuUsage,proto3" json:"cpuUsage,omitempty"` + FdNum uint32 `protobuf:"varint,5,opt,name=fdNum,proto3" json:"fdNum,omitempty"` + DiskIoReadBytes uint64 `protobuf:"varint,6,opt,name=diskIoReadBytes,proto3" json:"diskIoReadBytes,omitempty"` + DiskIoWriteBytes uint64 `protobuf:"varint,7,opt,name=diskIoWriteBytes,proto3" json:"diskIoWriteBytes,omitempty"` + DiskIoReadPerSec float32 `protobuf:"fixed32,8,opt,name=diskIoReadPerSec,proto3" json:"diskIoReadPerSec,omitempty"` + DiskIoWritePerSec float32 `protobuf:"fixed32,9,opt,name=diskIoWritePerSec,proto3" json:"diskIoWritePerSec,omitempty"` } func (x *ProcessMetrics) Reset() { *x = ProcessMetrics{} - mi := &file_rpc_proto_msgTypes[110] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[110] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *ProcessMetrics) String() string { @@ -5942,7 +6253,7 @@ func (*ProcessMetrics) ProtoMessage() {} func (x *ProcessMetrics) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[110] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -6021,23 +6332,26 @@ func (x *ProcessMetrics) GetDiskIoWritePerSec() float32 { } type ConnectionMetrics struct { - state protoimpl.MessageState `protogen:"open.v1"` - BorshLiveConnections uint32 `protobuf:"varint,31,opt,name=borshLiveConnections,proto3" json:"borshLiveConnections,omitempty"` - BorshConnectionAttempts uint64 `protobuf:"varint,32,opt,name=borshConnectionAttempts,proto3" json:"borshConnectionAttempts,omitempty"` - BorshHandshakeFailures uint64 `protobuf:"varint,33,opt,name=borshHandshakeFailures,proto3" json:"borshHandshakeFailures,omitempty"` - JsonLiveConnections uint32 `protobuf:"varint,41,opt,name=jsonLiveConnections,proto3" json:"jsonLiveConnections,omitempty"` - JsonConnectionAttempts uint64 `protobuf:"varint,42,opt,name=jsonConnectionAttempts,proto3" json:"jsonConnectionAttempts,omitempty"` - JsonHandshakeFailures uint64 `protobuf:"varint,43,opt,name=jsonHandshakeFailures,proto3" json:"jsonHandshakeFailures,omitempty"` - ActivePeers uint32 `protobuf:"varint,51,opt,name=activePeers,proto3" json:"activePeers,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + BorshLiveConnections uint32 `protobuf:"varint,31,opt,name=borshLiveConnections,proto3" json:"borshLiveConnections,omitempty"` + BorshConnectionAttempts uint64 `protobuf:"varint,32,opt,name=borshConnectionAttempts,proto3" json:"borshConnectionAttempts,omitempty"` + BorshHandshakeFailures uint64 `protobuf:"varint,33,opt,name=borshHandshakeFailures,proto3" json:"borshHandshakeFailures,omitempty"` + JsonLiveConnections uint32 `protobuf:"varint,41,opt,name=jsonLiveConnections,proto3" json:"jsonLiveConnections,omitempty"` + JsonConnectionAttempts uint64 `protobuf:"varint,42,opt,name=jsonConnectionAttempts,proto3" json:"jsonConnectionAttempts,omitempty"` + JsonHandshakeFailures uint64 `protobuf:"varint,43,opt,name=jsonHandshakeFailures,proto3" json:"jsonHandshakeFailures,omitempty"` + ActivePeers uint32 `protobuf:"varint,51,opt,name=activePeers,proto3" json:"activePeers,omitempty"` } func (x *ConnectionMetrics) Reset() { *x = ConnectionMetrics{} - mi := &file_rpc_proto_msgTypes[111] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[111] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *ConnectionMetrics) String() string { @@ -6048,7 +6362,7 @@ func (*ConnectionMetrics) ProtoMessage() {} func (x *ConnectionMetrics) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[111] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -6113,24 +6427,27 @@ func (x *ConnectionMetrics) GetActivePeers() uint32 { } type BandwidthMetrics struct { - state protoimpl.MessageState `protogen:"open.v1"` - BorshBytesTx uint64 `protobuf:"varint,61,opt,name=borshBytesTx,proto3" json:"borshBytesTx,omitempty"` - BorshBytesRx uint64 `protobuf:"varint,62,opt,name=borshBytesRx,proto3" json:"borshBytesRx,omitempty"` - JsonBytesTx uint64 `protobuf:"varint,63,opt,name=jsonBytesTx,proto3" json:"jsonBytesTx,omitempty"` - JsonBytesRx uint64 `protobuf:"varint,64,opt,name=jsonBytesRx,proto3" json:"jsonBytesRx,omitempty"` - GrpcP2PBytesTx uint64 `protobuf:"varint,65,opt,name=grpcP2pBytesTx,proto3" json:"grpcP2pBytesTx,omitempty"` - GrpcP2PBytesRx uint64 `protobuf:"varint,66,opt,name=grpcP2pBytesRx,proto3" json:"grpcP2pBytesRx,omitempty"` - GrpcUserBytesTx uint64 `protobuf:"varint,67,opt,name=grpcUserBytesTx,proto3" json:"grpcUserBytesTx,omitempty"` - GrpcUserBytesRx uint64 `protobuf:"varint,68,opt,name=grpcUserBytesRx,proto3" json:"grpcUserBytesRx,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + BorshBytesTx uint64 `protobuf:"varint,61,opt,name=borshBytesTx,proto3" json:"borshBytesTx,omitempty"` + BorshBytesRx uint64 `protobuf:"varint,62,opt,name=borshBytesRx,proto3" json:"borshBytesRx,omitempty"` + JsonBytesTx uint64 `protobuf:"varint,63,opt,name=jsonBytesTx,proto3" json:"jsonBytesTx,omitempty"` + JsonBytesRx uint64 `protobuf:"varint,64,opt,name=jsonBytesRx,proto3" json:"jsonBytesRx,omitempty"` + GrpcP2PBytesTx uint64 `protobuf:"varint,65,opt,name=grpcP2pBytesTx,proto3" json:"grpcP2pBytesTx,omitempty"` + GrpcP2PBytesRx uint64 `protobuf:"varint,66,opt,name=grpcP2pBytesRx,proto3" json:"grpcP2pBytesRx,omitempty"` + GrpcUserBytesTx uint64 `protobuf:"varint,67,opt,name=grpcUserBytesTx,proto3" json:"grpcUserBytesTx,omitempty"` + GrpcUserBytesRx uint64 `protobuf:"varint,68,opt,name=grpcUserBytesRx,proto3" json:"grpcUserBytesRx,omitempty"` } func (x *BandwidthMetrics) Reset() { *x = BandwidthMetrics{} - mi := &file_rpc_proto_msgTypes[112] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[112] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *BandwidthMetrics) String() string { @@ -6141,7 +6458,7 @@ func (*BandwidthMetrics) ProtoMessage() {} func (x *BandwidthMetrics) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[112] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -6213,31 +6530,34 @@ func (x *BandwidthMetrics) GetGrpcUserBytesRx() uint64 { } type ConsensusMetrics struct { - state protoimpl.MessageState `protogen:"open.v1"` - BlocksSubmitted uint64 `protobuf:"varint,1,opt,name=blocksSubmitted,proto3" json:"blocksSubmitted,omitempty"` - HeaderCounts uint64 `protobuf:"varint,2,opt,name=headerCounts,proto3" json:"headerCounts,omitempty"` - DepCounts uint64 `protobuf:"varint,3,opt,name=depCounts,proto3" json:"depCounts,omitempty"` - BodyCounts uint64 `protobuf:"varint,4,opt,name=bodyCounts,proto3" json:"bodyCounts,omitempty"` - TxsCounts uint64 `protobuf:"varint,5,opt,name=txsCounts,proto3" json:"txsCounts,omitempty"` - ChainBlockCounts uint64 `protobuf:"varint,6,opt,name=chainBlockCounts,proto3" json:"chainBlockCounts,omitempty"` - MassCounts uint64 `protobuf:"varint,7,opt,name=massCounts,proto3" json:"massCounts,omitempty"` - BlockCount uint64 `protobuf:"varint,11,opt,name=blockCount,proto3" json:"blockCount,omitempty"` - HeaderCount uint64 `protobuf:"varint,12,opt,name=headerCount,proto3" json:"headerCount,omitempty"` - MempoolSize uint64 `protobuf:"varint,13,opt,name=mempoolSize,proto3" json:"mempoolSize,omitempty"` - TipHashesCount uint32 `protobuf:"varint,14,opt,name=tipHashesCount,proto3" json:"tipHashesCount,omitempty"` - Difficulty float64 `protobuf:"fixed64,15,opt,name=difficulty,proto3" json:"difficulty,omitempty"` - PastMedianTime uint64 `protobuf:"varint,16,opt,name=pastMedianTime,proto3" json:"pastMedianTime,omitempty"` - VirtualParentHashesCount uint32 `protobuf:"varint,17,opt,name=virtualParentHashesCount,proto3" json:"virtualParentHashesCount,omitempty"` - VirtualDaaScore uint64 `protobuf:"varint,18,opt,name=virtualDaaScore,proto3" json:"virtualDaaScore,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + BlocksSubmitted uint64 `protobuf:"varint,1,opt,name=blocksSubmitted,proto3" json:"blocksSubmitted,omitempty"` + HeaderCounts uint64 `protobuf:"varint,2,opt,name=headerCounts,proto3" json:"headerCounts,omitempty"` + DepCounts uint64 `protobuf:"varint,3,opt,name=depCounts,proto3" json:"depCounts,omitempty"` + BodyCounts uint64 `protobuf:"varint,4,opt,name=bodyCounts,proto3" json:"bodyCounts,omitempty"` + TxsCounts uint64 `protobuf:"varint,5,opt,name=txsCounts,proto3" json:"txsCounts,omitempty"` + ChainBlockCounts uint64 `protobuf:"varint,6,opt,name=chainBlockCounts,proto3" json:"chainBlockCounts,omitempty"` + MassCounts uint64 `protobuf:"varint,7,opt,name=massCounts,proto3" json:"massCounts,omitempty"` + BlockCount uint64 `protobuf:"varint,11,opt,name=blockCount,proto3" json:"blockCount,omitempty"` + HeaderCount uint64 `protobuf:"varint,12,opt,name=headerCount,proto3" json:"headerCount,omitempty"` + MempoolSize uint64 `protobuf:"varint,13,opt,name=mempoolSize,proto3" json:"mempoolSize,omitempty"` + TipHashesCount uint32 `protobuf:"varint,14,opt,name=tipHashesCount,proto3" json:"tipHashesCount,omitempty"` + Difficulty float64 `protobuf:"fixed64,15,opt,name=difficulty,proto3" json:"difficulty,omitempty"` + PastMedianTime uint64 `protobuf:"varint,16,opt,name=pastMedianTime,proto3" json:"pastMedianTime,omitempty"` + VirtualParentHashesCount uint32 `protobuf:"varint,17,opt,name=virtualParentHashesCount,proto3" json:"virtualParentHashesCount,omitempty"` + VirtualDaaScore uint64 `protobuf:"varint,18,opt,name=virtualDaaScore,proto3" json:"virtualDaaScore,omitempty"` } func (x *ConsensusMetrics) Reset() { *x = ConsensusMetrics{} - mi := &file_rpc_proto_msgTypes[113] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[113] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *ConsensusMetrics) String() string { @@ -6248,7 +6568,7 @@ func (*ConsensusMetrics) ProtoMessage() {} func (x *ConsensusMetrics) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[113] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -6369,17 +6689,20 @@ func (x *ConsensusMetrics) GetVirtualDaaScore() uint64 { } type StorageMetrics struct { - state protoimpl.MessageState `protogen:"open.v1"` - StorageSizeBytes uint64 `protobuf:"varint,1,opt,name=storageSizeBytes,proto3" json:"storageSizeBytes,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + StorageSizeBytes uint64 `protobuf:"varint,1,opt,name=storageSizeBytes,proto3" json:"storageSizeBytes,omitempty"` } func (x *StorageMetrics) Reset() { *x = StorageMetrics{} - mi := &file_rpc_proto_msgTypes[114] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[114] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *StorageMetrics) String() string { @@ -6390,7 +6713,7 @@ func (*StorageMetrics) ProtoMessage() {} func (x *StorageMetrics) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[114] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -6413,17 +6736,20 @@ func (x *StorageMetrics) GetStorageSizeBytes() uint64 { } type GetConnectionsRequestMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - IncludeProfileData bool `protobuf:"varint,1,opt,name=includeProfileData,proto3" json:"includeProfileData,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + IncludeProfileData bool `protobuf:"varint,1,opt,name=includeProfileData,proto3" json:"includeProfileData,omitempty"` } func (x *GetConnectionsRequestMessage) Reset() { *x = GetConnectionsRequestMessage{} - mi := &file_rpc_proto_msgTypes[115] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[115] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *GetConnectionsRequestMessage) String() string { @@ -6434,7 +6760,7 @@ func (*GetConnectionsRequestMessage) ProtoMessage() {} func (x *GetConnectionsRequestMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[115] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -6457,18 +6783,21 @@ func (x *GetConnectionsRequestMessage) GetIncludeProfileData() bool { } type ConnectionsProfileData struct { - state protoimpl.MessageState `protogen:"open.v1"` - CpuUsage float64 `protobuf:"fixed64,1,opt,name=cpuUsage,proto3" json:"cpuUsage,omitempty"` - MemoryUsage uint64 `protobuf:"varint,2,opt,name=memoryUsage,proto3" json:"memoryUsage,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + CpuUsage float64 `protobuf:"fixed64,1,opt,name=cpuUsage,proto3" json:"cpuUsage,omitempty"` + MemoryUsage uint64 `protobuf:"varint,2,opt,name=memoryUsage,proto3" json:"memoryUsage,omitempty"` } func (x *ConnectionsProfileData) Reset() { *x = ConnectionsProfileData{} - mi := &file_rpc_proto_msgTypes[116] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[116] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *ConnectionsProfileData) String() string { @@ -6479,7 +6808,7 @@ func (*ConnectionsProfileData) ProtoMessage() {} func (x *ConnectionsProfileData) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[116] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -6509,20 +6838,23 @@ func (x *ConnectionsProfileData) GetMemoryUsage() uint64 { } type GetConnectionsResponseMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - Clients uint32 `protobuf:"varint,1,opt,name=clients,proto3" json:"clients,omitempty"` - Peers uint32 `protobuf:"varint,2,opt,name=peers,proto3" json:"peers,omitempty"` - ProfileData *ConnectionsProfileData `protobuf:"bytes,3,opt,name=profileData,proto3" json:"profileData,omitempty"` - Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Clients uint32 `protobuf:"varint,1,opt,name=clients,proto3" json:"clients,omitempty"` + Peers uint32 `protobuf:"varint,2,opt,name=peers,proto3" json:"peers,omitempty"` + ProfileData *ConnectionsProfileData `protobuf:"bytes,3,opt,name=profileData,proto3" json:"profileData,omitempty"` + Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` } func (x *GetConnectionsResponseMessage) Reset() { *x = GetConnectionsResponseMessage{} - mi := &file_rpc_proto_msgTypes[117] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[117] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *GetConnectionsResponseMessage) String() string { @@ -6533,7 +6865,7 @@ func (*GetConnectionsResponseMessage) ProtoMessage() {} func (x *GetConnectionsResponseMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[117] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -6577,16 +6909,18 @@ func (x *GetConnectionsResponseMessage) GetError() *RPCError { } type GetSystemInfoRequestMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } func (x *GetSystemInfoRequestMessage) Reset() { *x = GetSystemInfoRequestMessage{} - mi := &file_rpc_proto_msgTypes[118] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[118] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *GetSystemInfoRequestMessage) String() string { @@ -6597,7 +6931,7 @@ func (*GetSystemInfoRequestMessage) ProtoMessage() {} func (x *GetSystemInfoRequestMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[118] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -6613,23 +6947,26 @@ func (*GetSystemInfoRequestMessage) Descriptor() ([]byte, []int) { } type GetSystemInfoResponseMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` - SystemId string `protobuf:"bytes,2,opt,name=systemId,proto3" json:"systemId,omitempty"` - GitHash string `protobuf:"bytes,3,opt,name=gitHash,proto3" json:"gitHash,omitempty"` - CoreNum uint32 `protobuf:"varint,4,opt,name=coreNum,proto3" json:"coreNum,omitempty"` - TotalMemory uint64 `protobuf:"varint,5,opt,name=totalMemory,proto3" json:"totalMemory,omitempty"` - FdLimit uint32 `protobuf:"varint,6,opt,name=fdLimit,proto3" json:"fdLimit,omitempty"` - Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` + SystemId string `protobuf:"bytes,2,opt,name=systemId,proto3" json:"systemId,omitempty"` + GitHash string `protobuf:"bytes,3,opt,name=gitHash,proto3" json:"gitHash,omitempty"` + CoreNum uint32 `protobuf:"varint,4,opt,name=coreNum,proto3" json:"coreNum,omitempty"` + TotalMemory uint64 `protobuf:"varint,5,opt,name=totalMemory,proto3" json:"totalMemory,omitempty"` + FdLimit uint32 `protobuf:"varint,6,opt,name=fdLimit,proto3" json:"fdLimit,omitempty"` + Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` } func (x *GetSystemInfoResponseMessage) Reset() { *x = GetSystemInfoResponseMessage{} - mi := &file_rpc_proto_msgTypes[119] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[119] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *GetSystemInfoResponseMessage) String() string { @@ -6640,7 +6977,7 @@ func (*GetSystemInfoResponseMessage) ProtoMessage() {} func (x *GetSystemInfoResponseMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[119] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -6705,22 +7042,25 @@ func (x *GetSystemInfoResponseMessage) GetError() *RPCError { } type GetMetricsRequestMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - ProcessMetrics bool `protobuf:"varint,1,opt,name=processMetrics,proto3" json:"processMetrics,omitempty"` - ConnectionMetrics bool `protobuf:"varint,2,opt,name=connectionMetrics,proto3" json:"connectionMetrics,omitempty"` - BandwidthMetrics bool `protobuf:"varint,3,opt,name=bandwidthMetrics,proto3" json:"bandwidthMetrics,omitempty"` - ConsensusMetrics bool `protobuf:"varint,4,opt,name=consensusMetrics,proto3" json:"consensusMetrics,omitempty"` - StorageMetrics bool `protobuf:"varint,5,opt,name=storageMetrics,proto3" json:"storageMetrics,omitempty"` - CustomMetrics bool `protobuf:"varint,6,opt,name=customMetrics,proto3" json:"customMetrics,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ProcessMetrics bool `protobuf:"varint,1,opt,name=processMetrics,proto3" json:"processMetrics,omitempty"` + ConnectionMetrics bool `protobuf:"varint,2,opt,name=connectionMetrics,proto3" json:"connectionMetrics,omitempty"` + BandwidthMetrics bool `protobuf:"varint,3,opt,name=bandwidthMetrics,proto3" json:"bandwidthMetrics,omitempty"` + ConsensusMetrics bool `protobuf:"varint,4,opt,name=consensusMetrics,proto3" json:"consensusMetrics,omitempty"` + StorageMetrics bool `protobuf:"varint,5,opt,name=storageMetrics,proto3" json:"storageMetrics,omitempty"` + CustomMetrics bool `protobuf:"varint,6,opt,name=customMetrics,proto3" json:"customMetrics,omitempty"` } func (x *GetMetricsRequestMessage) Reset() { *x = GetMetricsRequestMessage{} - mi := &file_rpc_proto_msgTypes[120] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[120] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *GetMetricsRequestMessage) String() string { @@ -6731,7 +7071,7 @@ func (*GetMetricsRequestMessage) ProtoMessage() {} func (x *GetMetricsRequestMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[120] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -6789,23 +7129,26 @@ func (x *GetMetricsRequestMessage) GetCustomMetrics() bool { } type GetMetricsResponseMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - ServerTime uint64 `protobuf:"varint,1,opt,name=serverTime,proto3" json:"serverTime,omitempty"` - ProcessMetrics *ProcessMetrics `protobuf:"bytes,11,opt,name=processMetrics,proto3" json:"processMetrics,omitempty"` - ConnectionMetrics *ConnectionMetrics `protobuf:"bytes,12,opt,name=connectionMetrics,proto3" json:"connectionMetrics,omitempty"` - BandwidthMetrics *BandwidthMetrics `protobuf:"bytes,13,opt,name=bandwidthMetrics,proto3" json:"bandwidthMetrics,omitempty"` - ConsensusMetrics *ConsensusMetrics `protobuf:"bytes,14,opt,name=consensusMetrics,proto3" json:"consensusMetrics,omitempty"` - StorageMetrics *StorageMetrics `protobuf:"bytes,15,opt,name=storageMetrics,proto3" json:"storageMetrics,omitempty"` - Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ServerTime uint64 `protobuf:"varint,1,opt,name=serverTime,proto3" json:"serverTime,omitempty"` + ProcessMetrics *ProcessMetrics `protobuf:"bytes,11,opt,name=processMetrics,proto3" json:"processMetrics,omitempty"` + ConnectionMetrics *ConnectionMetrics `protobuf:"bytes,12,opt,name=connectionMetrics,proto3" json:"connectionMetrics,omitempty"` + BandwidthMetrics *BandwidthMetrics `protobuf:"bytes,13,opt,name=bandwidthMetrics,proto3" json:"bandwidthMetrics,omitempty"` + ConsensusMetrics *ConsensusMetrics `protobuf:"bytes,14,opt,name=consensusMetrics,proto3" json:"consensusMetrics,omitempty"` + StorageMetrics *StorageMetrics `protobuf:"bytes,15,opt,name=storageMetrics,proto3" json:"storageMetrics,omitempty"` + Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` } func (x *GetMetricsResponseMessage) Reset() { *x = GetMetricsResponseMessage{} - mi := &file_rpc_proto_msgTypes[121] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[121] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *GetMetricsResponseMessage) String() string { @@ -6816,7 +7159,7 @@ func (*GetMetricsResponseMessage) ProtoMessage() {} func (x *GetMetricsResponseMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[121] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -6881,16 +7224,18 @@ func (x *GetMetricsResponseMessage) GetError() *RPCError { } type GetServerInfoRequestMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } func (x *GetServerInfoRequestMessage) Reset() { *x = GetServerInfoRequestMessage{} - mi := &file_rpc_proto_msgTypes[122] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[122] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *GetServerInfoRequestMessage) String() string { @@ -6901,7 +7246,7 @@ func (*GetServerInfoRequestMessage) ProtoMessage() {} func (x *GetServerInfoRequestMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[122] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -6917,24 +7262,27 @@ func (*GetServerInfoRequestMessage) Descriptor() ([]byte, []int) { } type GetServerInfoResponseMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - RpcApiVersion uint32 `protobuf:"varint,1,opt,name=rpcApiVersion,proto3" json:"rpcApiVersion,omitempty"` - RpcApiRevision uint32 `protobuf:"varint,2,opt,name=rpcApiRevision,proto3" json:"rpcApiRevision,omitempty"` - ServerVersion string `protobuf:"bytes,3,opt,name=serverVersion,proto3" json:"serverVersion,omitempty"` - NetworkId string `protobuf:"bytes,4,opt,name=networkId,proto3" json:"networkId,omitempty"` - HasUtxoIndex bool `protobuf:"varint,5,opt,name=hasUtxoIndex,proto3" json:"hasUtxoIndex,omitempty"` - IsSynced bool `protobuf:"varint,6,opt,name=isSynced,proto3" json:"isSynced,omitempty"` - VirtualDaaScore uint64 `protobuf:"varint,7,opt,name=virtualDaaScore,proto3" json:"virtualDaaScore,omitempty"` - Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + RpcApiVersion uint32 `protobuf:"varint,1,opt,name=rpcApiVersion,proto3" json:"rpcApiVersion,omitempty"` + RpcApiRevision uint32 `protobuf:"varint,2,opt,name=rpcApiRevision,proto3" json:"rpcApiRevision,omitempty"` + ServerVersion string `protobuf:"bytes,3,opt,name=serverVersion,proto3" json:"serverVersion,omitempty"` + NetworkId string `protobuf:"bytes,4,opt,name=networkId,proto3" json:"networkId,omitempty"` + HasUtxoIndex bool `protobuf:"varint,5,opt,name=hasUtxoIndex,proto3" json:"hasUtxoIndex,omitempty"` + IsSynced bool `protobuf:"varint,6,opt,name=isSynced,proto3" json:"isSynced,omitempty"` + VirtualDaaScore uint64 `protobuf:"varint,7,opt,name=virtualDaaScore,proto3" json:"virtualDaaScore,omitempty"` + Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` } func (x *GetServerInfoResponseMessage) Reset() { *x = GetServerInfoResponseMessage{} - mi := &file_rpc_proto_msgTypes[123] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[123] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *GetServerInfoResponseMessage) String() string { @@ -6945,7 +7293,7 @@ func (*GetServerInfoResponseMessage) ProtoMessage() {} func (x *GetServerInfoResponseMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[123] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -7017,16 +7365,18 @@ func (x *GetServerInfoResponseMessage) GetError() *RPCError { } type GetSyncStatusRequestMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } func (x *GetSyncStatusRequestMessage) Reset() { *x = GetSyncStatusRequestMessage{} - mi := &file_rpc_proto_msgTypes[124] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[124] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *GetSyncStatusRequestMessage) String() string { @@ -7037,7 +7387,7 @@ func (*GetSyncStatusRequestMessage) ProtoMessage() {} func (x *GetSyncStatusRequestMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[124] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -7053,18 +7403,21 @@ func (*GetSyncStatusRequestMessage) Descriptor() ([]byte, []int) { } type GetSyncStatusResponseMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - IsSynced bool `protobuf:"varint,1,opt,name=isSynced,proto3" json:"isSynced,omitempty"` - Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + IsSynced bool `protobuf:"varint,1,opt,name=isSynced,proto3" json:"isSynced,omitempty"` + Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` } func (x *GetSyncStatusResponseMessage) Reset() { *x = GetSyncStatusResponseMessage{} - mi := &file_rpc_proto_msgTypes[125] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[125] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *GetSyncStatusResponseMessage) String() string { @@ -7075,7 +7428,7 @@ func (*GetSyncStatusResponseMessage) ProtoMessage() {} func (x *GetSyncStatusResponseMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[125] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -7105,17 +7458,20 @@ func (x *GetSyncStatusResponseMessage) GetError() *RPCError { } type GetDaaScoreTimestampEstimateRequestMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - DaaScores []uint64 `protobuf:"varint,1,rep,packed,name=daaScores,proto3" json:"daaScores,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + DaaScores []uint64 `protobuf:"varint,1,rep,packed,name=daaScores,proto3" json:"daaScores,omitempty"` } func (x *GetDaaScoreTimestampEstimateRequestMessage) Reset() { *x = GetDaaScoreTimestampEstimateRequestMessage{} - mi := &file_rpc_proto_msgTypes[126] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[126] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *GetDaaScoreTimestampEstimateRequestMessage) String() string { @@ -7126,7 +7482,7 @@ func (*GetDaaScoreTimestampEstimateRequestMessage) ProtoMessage() {} func (x *GetDaaScoreTimestampEstimateRequestMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[126] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -7149,18 +7505,21 @@ func (x *GetDaaScoreTimestampEstimateRequestMessage) GetDaaScores() []uint64 { } type GetDaaScoreTimestampEstimateResponseMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - Timestamps []uint64 `protobuf:"varint,1,rep,packed,name=timestamps,proto3" json:"timestamps,omitempty"` - Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Timestamps []uint64 `protobuf:"varint,1,rep,packed,name=timestamps,proto3" json:"timestamps,omitempty"` + Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` } func (x *GetDaaScoreTimestampEstimateResponseMessage) Reset() { *x = GetDaaScoreTimestampEstimateResponseMessage{} - mi := &file_rpc_proto_msgTypes[127] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[127] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *GetDaaScoreTimestampEstimateResponseMessage) String() string { @@ -7171,7 +7530,7 @@ func (*GetDaaScoreTimestampEstimateResponseMessage) ProtoMessage() {} func (x *GetDaaScoreTimestampEstimateResponseMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[127] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -7201,19 +7560,22 @@ func (x *GetDaaScoreTimestampEstimateResponseMessage) GetError() *RPCError { } type RpcFeerateBucket struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // Fee/mass of a transaction in `sompi/gram` units Feerate float64 `protobuf:"fixed64,1,opt,name=feerate,proto3" json:"feerate,omitempty"` EstimatedSeconds float64 `protobuf:"fixed64,2,opt,name=estimatedSeconds,proto3" json:"estimatedSeconds,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache } func (x *RpcFeerateBucket) Reset() { *x = RpcFeerateBucket{} - mi := &file_rpc_proto_msgTypes[128] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[128] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *RpcFeerateBucket) String() string { @@ -7224,7 +7586,7 @@ func (*RpcFeerateBucket) ProtoMessage() {} func (x *RpcFeerateBucket) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[128] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -7260,7 +7622,10 @@ func (x *RpcFeerateBucket) GetEstimatedSeconds() float64 { // taking the transaction mass and multiplying it by feerate: `fee = feerate * // mass(tx)` type RpcFeeEstimate struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // Top-priority feerate bucket. Provides an estimation of the feerate required // for sub-second DAG inclusion. PriorityBucket *RpcFeerateBucket `protobuf:"bytes,1,opt,name=priority_bucket,json=priorityBucket,proto3" json:"priority_bucket,omitempty"` @@ -7276,16 +7641,16 @@ type RpcFeeEstimate struct { // A vector of *low* priority feerate values. The first value of this vector // is guaranteed to exist and provide an estimation for sub-*hour* DAG // inclusion. - LowBuckets []*RpcFeerateBucket `protobuf:"bytes,3,rep,name=lowBuckets,proto3" json:"lowBuckets,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + LowBuckets []*RpcFeerateBucket `protobuf:"bytes,3,rep,name=lowBuckets,proto3" json:"lowBuckets,omitempty"` } func (x *RpcFeeEstimate) Reset() { *x = RpcFeeEstimate{} - mi := &file_rpc_proto_msgTypes[129] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[129] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *RpcFeeEstimate) String() string { @@ -7296,7 +7661,7 @@ func (*RpcFeeEstimate) ProtoMessage() {} func (x *RpcFeeEstimate) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[129] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -7333,22 +7698,25 @@ func (x *RpcFeeEstimate) GetLowBuckets() []*RpcFeerateBucket { } type RpcFeeEstimateVerboseExperimentalData struct { - state protoimpl.MessageState `protogen:"open.v1"` - MempoolReadyTransactionsCount uint64 `protobuf:"varint,1,opt,name=mempoolReadyTransactionsCount,proto3" json:"mempoolReadyTransactionsCount,omitempty"` - MempoolReadyTransactionsTotalMass uint64 `protobuf:"varint,2,opt,name=mempoolReadyTransactionsTotalMass,proto3" json:"mempoolReadyTransactionsTotalMass,omitempty"` - NetworkMassPerSecond uint64 `protobuf:"varint,3,opt,name=networkMassPerSecond,proto3" json:"networkMassPerSecond,omitempty"` - NextBlockTemplateFeerateMin float64 `protobuf:"fixed64,11,opt,name=nextBlockTemplateFeerateMin,proto3" json:"nextBlockTemplateFeerateMin,omitempty"` - NextBlockTemplateFeerateMedian float64 `protobuf:"fixed64,12,opt,name=nextBlockTemplateFeerateMedian,proto3" json:"nextBlockTemplateFeerateMedian,omitempty"` - NextBlockTemplateFeerateMax float64 `protobuf:"fixed64,13,opt,name=nextBlockTemplateFeerateMax,proto3" json:"nextBlockTemplateFeerateMax,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + MempoolReadyTransactionsCount uint64 `protobuf:"varint,1,opt,name=mempoolReadyTransactionsCount,proto3" json:"mempoolReadyTransactionsCount,omitempty"` + MempoolReadyTransactionsTotalMass uint64 `protobuf:"varint,2,opt,name=mempoolReadyTransactionsTotalMass,proto3" json:"mempoolReadyTransactionsTotalMass,omitempty"` + NetworkMassPerSecond uint64 `protobuf:"varint,3,opt,name=networkMassPerSecond,proto3" json:"networkMassPerSecond,omitempty"` + NextBlockTemplateFeerateMin float64 `protobuf:"fixed64,11,opt,name=nextBlockTemplateFeerateMin,proto3" json:"nextBlockTemplateFeerateMin,omitempty"` + NextBlockTemplateFeerateMedian float64 `protobuf:"fixed64,12,opt,name=nextBlockTemplateFeerateMedian,proto3" json:"nextBlockTemplateFeerateMedian,omitempty"` + NextBlockTemplateFeerateMax float64 `protobuf:"fixed64,13,opt,name=nextBlockTemplateFeerateMax,proto3" json:"nextBlockTemplateFeerateMax,omitempty"` } func (x *RpcFeeEstimateVerboseExperimentalData) Reset() { *x = RpcFeeEstimateVerboseExperimentalData{} - mi := &file_rpc_proto_msgTypes[130] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[130] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *RpcFeeEstimateVerboseExperimentalData) String() string { @@ -7359,7 +7727,7 @@ func (*RpcFeeEstimateVerboseExperimentalData) ProtoMessage() {} func (x *RpcFeeEstimateVerboseExperimentalData) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[130] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -7417,16 +7785,18 @@ func (x *RpcFeeEstimateVerboseExperimentalData) GetNextBlockTemplateFeerateMax() } type GetFeeEstimateRequestMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } func (x *GetFeeEstimateRequestMessage) Reset() { *x = GetFeeEstimateRequestMessage{} - mi := &file_rpc_proto_msgTypes[131] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[131] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *GetFeeEstimateRequestMessage) String() string { @@ -7437,7 +7807,7 @@ func (*GetFeeEstimateRequestMessage) ProtoMessage() {} func (x *GetFeeEstimateRequestMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[131] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -7453,18 +7823,21 @@ func (*GetFeeEstimateRequestMessage) Descriptor() ([]byte, []int) { } type GetFeeEstimateResponseMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - Estimate *RpcFeeEstimate `protobuf:"bytes,1,opt,name=estimate,proto3" json:"estimate,omitempty"` - Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Estimate *RpcFeeEstimate `protobuf:"bytes,1,opt,name=estimate,proto3" json:"estimate,omitempty"` + Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` } func (x *GetFeeEstimateResponseMessage) Reset() { *x = GetFeeEstimateResponseMessage{} - mi := &file_rpc_proto_msgTypes[132] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[132] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *GetFeeEstimateResponseMessage) String() string { @@ -7475,7 +7848,7 @@ func (*GetFeeEstimateResponseMessage) ProtoMessage() {} func (x *GetFeeEstimateResponseMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[132] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -7505,17 +7878,20 @@ func (x *GetFeeEstimateResponseMessage) GetError() *RPCError { } type GetFeeEstimateExperimentalRequestMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - Verbose bool `protobuf:"varint,1,opt,name=verbose,proto3" json:"verbose,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Verbose bool `protobuf:"varint,1,opt,name=verbose,proto3" json:"verbose,omitempty"` } func (x *GetFeeEstimateExperimentalRequestMessage) Reset() { *x = GetFeeEstimateExperimentalRequestMessage{} - mi := &file_rpc_proto_msgTypes[133] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[133] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *GetFeeEstimateExperimentalRequestMessage) String() string { @@ -7526,7 +7902,7 @@ func (*GetFeeEstimateExperimentalRequestMessage) ProtoMessage() {} func (x *GetFeeEstimateExperimentalRequestMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[133] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -7549,19 +7925,22 @@ func (x *GetFeeEstimateExperimentalRequestMessage) GetVerbose() bool { } type GetFeeEstimateExperimentalResponseMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - Estimate *RpcFeeEstimate `protobuf:"bytes,1,opt,name=estimate,proto3" json:"estimate,omitempty"` - Verbose *RpcFeeEstimateVerboseExperimentalData `protobuf:"bytes,2,opt,name=verbose,proto3" json:"verbose,omitempty"` - Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Estimate *RpcFeeEstimate `protobuf:"bytes,1,opt,name=estimate,proto3" json:"estimate,omitempty"` + Verbose *RpcFeeEstimateVerboseExperimentalData `protobuf:"bytes,2,opt,name=verbose,proto3" json:"verbose,omitempty"` + Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` } func (x *GetFeeEstimateExperimentalResponseMessage) Reset() { *x = GetFeeEstimateExperimentalResponseMessage{} - mi := &file_rpc_proto_msgTypes[134] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[134] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *GetFeeEstimateExperimentalResponseMessage) String() string { @@ -7572,7 +7951,7 @@ func (*GetFeeEstimateExperimentalResponseMessage) ProtoMessage() {} func (x *GetFeeEstimateExperimentalResponseMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[134] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -7609,17 +7988,20 @@ func (x *GetFeeEstimateExperimentalResponseMessage) GetError() *RPCError { } type GetCurrentBlockColorRequestMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` } func (x *GetCurrentBlockColorRequestMessage) Reset() { *x = GetCurrentBlockColorRequestMessage{} - mi := &file_rpc_proto_msgTypes[135] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[135] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *GetCurrentBlockColorRequestMessage) String() string { @@ -7630,7 +8012,7 @@ func (*GetCurrentBlockColorRequestMessage) ProtoMessage() {} func (x *GetCurrentBlockColorRequestMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[135] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -7653,18 +8035,21 @@ func (x *GetCurrentBlockColorRequestMessage) GetHash() string { } type GetCurrentBlockColorResponseMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - Blue bool `protobuf:"varint,1,opt,name=blue,proto3" json:"blue,omitempty"` - Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Blue bool `protobuf:"varint,1,opt,name=blue,proto3" json:"blue,omitempty"` + Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` } func (x *GetCurrentBlockColorResponseMessage) Reset() { *x = GetCurrentBlockColorResponseMessage{} - mi := &file_rpc_proto_msgTypes[136] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[136] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *GetCurrentBlockColorResponseMessage) String() string { @@ -7675,7 +8060,7 @@ func (*GetCurrentBlockColorResponseMessage) ProtoMessage() {} func (x *GetCurrentBlockColorResponseMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[136] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -7707,17 +8092,20 @@ func (x *GetCurrentBlockColorResponseMessage) GetError() *RPCError { // SubmitTransactionReplacementRequestMessage submits a transaction to the // mempool, applying a mandatory Replace by Fee policy type SubmitTransactionReplacementRequestMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - Transaction *RpcTransaction `protobuf:"bytes,1,opt,name=transaction,proto3" json:"transaction,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Transaction *RpcTransaction `protobuf:"bytes,1,opt,name=transaction,proto3" json:"transaction,omitempty"` } func (x *SubmitTransactionReplacementRequestMessage) Reset() { *x = SubmitTransactionReplacementRequestMessage{} - mi := &file_rpc_proto_msgTypes[137] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[137] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *SubmitTransactionReplacementRequestMessage) String() string { @@ -7728,7 +8116,7 @@ func (*SubmitTransactionReplacementRequestMessage) ProtoMessage() {} func (x *SubmitTransactionReplacementRequestMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[137] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -7751,21 +8139,24 @@ func (x *SubmitTransactionReplacementRequestMessage) GetTransaction() *RpcTransa } type SubmitTransactionReplacementResponseMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // The transaction ID of the submitted transaction TransactionId string `protobuf:"bytes,1,opt,name=transactionId,proto3" json:"transactionId,omitempty"` // The previous transaction replaced in the mempool by the newly submitted one ReplacedTransaction *RpcTransaction `protobuf:"bytes,2,opt,name=replacedTransaction,proto3" json:"replacedTransaction,omitempty"` Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache } func (x *SubmitTransactionReplacementResponseMessage) Reset() { *x = SubmitTransactionReplacementResponseMessage{} - mi := &file_rpc_proto_msgTypes[138] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[138] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *SubmitTransactionReplacementResponseMessage) String() string { @@ -7776,7 +8167,7 @@ func (*SubmitTransactionReplacementResponseMessage) ProtoMessage() {} func (x *SubmitTransactionReplacementResponseMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[138] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -7813,16 +8204,18 @@ func (x *SubmitTransactionReplacementResponseMessage) GetError() *RPCError { } type GetPruningWindowRootsRequestMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } func (x *GetPruningWindowRootsRequestMessage) Reset() { *x = GetPruningWindowRootsRequestMessage{} - mi := &file_rpc_proto_msgTypes[139] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[139] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *GetPruningWindowRootsRequestMessage) String() string { @@ -7833,7 +8226,7 @@ func (*GetPruningWindowRootsRequestMessage) ProtoMessage() {} func (x *GetPruningWindowRootsRequestMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[139] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -7849,18 +8242,21 @@ func (*GetPruningWindowRootsRequestMessage) Descriptor() ([]byte, []int) { } type PruningWindowRoots struct { - state protoimpl.MessageState `protogen:"open.v1"` - PpRoots []string `protobuf:"bytes,1,rep,name=pp_roots,json=ppRoots,proto3" json:"pp_roots,omitempty"` - PpIndex uint64 `protobuf:"varint,2,opt,name=pp_index,json=ppIndex,proto3" json:"pp_index,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + PpRoots []string `protobuf:"bytes,1,rep,name=pp_roots,json=ppRoots,proto3" json:"pp_roots,omitempty"` + PpIndex uint64 `protobuf:"varint,2,opt,name=pp_index,json=ppIndex,proto3" json:"pp_index,omitempty"` } func (x *PruningWindowRoots) Reset() { *x = PruningWindowRoots{} - mi := &file_rpc_proto_msgTypes[140] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[140] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *PruningWindowRoots) String() string { @@ -7871,7 +8267,7 @@ func (*PruningWindowRoots) ProtoMessage() {} func (x *PruningWindowRoots) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[140] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -7901,18 +8297,21 @@ func (x *PruningWindowRoots) GetPpIndex() uint64 { } type GetPruningWindowRootsResponseMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - Roots []*PruningWindowRoots `protobuf:"bytes,1,rep,name=roots,proto3" json:"roots,omitempty"` - Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Roots []*PruningWindowRoots `protobuf:"bytes,1,rep,name=roots,proto3" json:"roots,omitempty"` + Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` } func (x *GetPruningWindowRootsResponseMessage) Reset() { *x = GetPruningWindowRootsResponseMessage{} - mi := &file_rpc_proto_msgTypes[141] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[141] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *GetPruningWindowRootsResponseMessage) String() string { @@ -7923,7 +8322,7 @@ func (*GetPruningWindowRootsResponseMessage) ProtoMessage() {} func (x *GetPruningWindowRootsResponseMessage) ProtoReflect() protoreflect.Message { mi := &file_rpc_proto_msgTypes[141] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -7952,19 +8351,134 @@ func (x *GetPruningWindowRootsResponseMessage) GetError() *RPCError { return nil } -type ArchivalBlock struct { - state protoimpl.MessageState `protogen:"open.v1"` - Child string `protobuf:"bytes,1,opt,name=child,proto3" json:"child,omitempty"` - Block *RpcBlock `protobuf:"bytes,2,opt,name=block,proto3" json:"block,omitempty"` - unknownFields protoimpl.UnknownFields +type AcceptedTxEntry struct { + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + TransactionId string `protobuf:"bytes,1,opt,name=transactionId,proto3" json:"transactionId,omitempty"` + IndexWithinBlock uint32 `protobuf:"varint,2,opt,name=index_within_block,json=indexWithinBlock,proto3" json:"index_within_block,omitempty"` +} + +func (x *AcceptedTxEntry) Reset() { + *x = AcceptedTxEntry{} + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[142] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AcceptedTxEntry) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AcceptedTxEntry) ProtoMessage() {} + +func (x *AcceptedTxEntry) ProtoReflect() protoreflect.Message { + mi := &file_rpc_proto_msgTypes[142] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use AcceptedTxEntry.ProtoReflect.Descriptor instead. +func (*AcceptedTxEntry) Descriptor() ([]byte, []int) { + return file_rpc_proto_rawDescGZIP(), []int{142} +} + +func (x *AcceptedTxEntry) GetTransactionId() string { + if x != nil { + return x.TransactionId + } + return "" +} + +func (x *AcceptedTxEntry) GetIndexWithinBlock() uint32 { + if x != nil { + return x.IndexWithinBlock + } + return 0 +} + +type MergesetBlockAcceptanceData struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + BlockHash string `protobuf:"bytes,1,opt,name=blockHash,proto3" json:"blockHash,omitempty"` + AcceptedTxs []*AcceptedTxEntry `protobuf:"bytes,3,rep,name=acceptedTxs,proto3" json:"acceptedTxs,omitempty"` +} + +func (x *MergesetBlockAcceptanceData) Reset() { + *x = MergesetBlockAcceptanceData{} + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[143] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MergesetBlockAcceptanceData) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MergesetBlockAcceptanceData) ProtoMessage() {} + +func (x *MergesetBlockAcceptanceData) ProtoReflect() protoreflect.Message { + mi := &file_rpc_proto_msgTypes[143] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use MergesetBlockAcceptanceData.ProtoReflect.Descriptor instead. +func (*MergesetBlockAcceptanceData) Descriptor() ([]byte, []int) { + return file_rpc_proto_rawDescGZIP(), []int{143} +} + +func (x *MergesetBlockAcceptanceData) GetBlockHash() string { + if x != nil { + return x.BlockHash + } + return "" +} + +func (x *MergesetBlockAcceptanceData) GetAcceptedTxs() []*AcceptedTxEntry { + if x != nil { + return x.AcceptedTxs + } + return nil +} + +type ArchivalBlock struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Child string `protobuf:"bytes,1,opt,name=child,proto3" json:"child,omitempty"` + Block *RpcBlock `protobuf:"bytes,2,opt,name=block,proto3" json:"block,omitempty"` + AcceptanceData []*MergesetBlockAcceptanceData `protobuf:"bytes,3,rep,name=acceptanceData,proto3" json:"acceptanceData,omitempty"` + SelectedParent string `protobuf:"bytes,4,opt,name=selectedParent,proto3" json:"selectedParent,omitempty"` } func (x *ArchivalBlock) Reset() { *x = ArchivalBlock{} - mi := &file_rpc_proto_msgTypes[142] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[144] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *ArchivalBlock) String() string { @@ -7974,8 +8488,8 @@ func (x *ArchivalBlock) String() string { func (*ArchivalBlock) ProtoMessage() {} func (x *ArchivalBlock) ProtoReflect() protoreflect.Message { - mi := &file_rpc_proto_msgTypes[142] - if x != nil { + mi := &file_rpc_proto_msgTypes[144] + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -7987,7 +8501,7 @@ func (x *ArchivalBlock) ProtoReflect() protoreflect.Message { // Deprecated: Use ArchivalBlock.ProtoReflect.Descriptor instead. func (*ArchivalBlock) Descriptor() ([]byte, []int) { - return file_rpc_proto_rawDescGZIP(), []int{142} + return file_rpc_proto_rawDescGZIP(), []int{144} } func (x *ArchivalBlock) GetChild() string { @@ -8004,18 +8518,35 @@ func (x *ArchivalBlock) GetBlock() *RpcBlock { return nil } +func (x *ArchivalBlock) GetAcceptanceData() []*MergesetBlockAcceptanceData { + if x != nil { + return x.AcceptanceData + } + return nil +} + +func (x *ArchivalBlock) GetSelectedParent() string { + if x != nil { + return x.SelectedParent + } + return "" +} + type AddArchivalBlocksRequestMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - Blocks []*ArchivalBlock `protobuf:"bytes,1,rep,name=blocks,proto3" json:"blocks,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Blocks []*ArchivalBlock `protobuf:"bytes,1,rep,name=blocks,proto3" json:"blocks,omitempty"` } func (x *AddArchivalBlocksRequestMessage) Reset() { *x = AddArchivalBlocksRequestMessage{} - mi := &file_rpc_proto_msgTypes[143] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[145] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *AddArchivalBlocksRequestMessage) String() string { @@ -8025,8 +8556,8 @@ func (x *AddArchivalBlocksRequestMessage) String() string { func (*AddArchivalBlocksRequestMessage) ProtoMessage() {} func (x *AddArchivalBlocksRequestMessage) ProtoReflect() protoreflect.Message { - mi := &file_rpc_proto_msgTypes[143] - if x != nil { + mi := &file_rpc_proto_msgTypes[145] + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -8038,7 +8569,7 @@ func (x *AddArchivalBlocksRequestMessage) ProtoReflect() protoreflect.Message { // Deprecated: Use AddArchivalBlocksRequestMessage.ProtoReflect.Descriptor instead. func (*AddArchivalBlocksRequestMessage) Descriptor() ([]byte, []int) { - return file_rpc_proto_rawDescGZIP(), []int{143} + return file_rpc_proto_rawDescGZIP(), []int{145} } func (x *AddArchivalBlocksRequestMessage) GetBlocks() []*ArchivalBlock { @@ -8049,17 +8580,20 @@ func (x *AddArchivalBlocksRequestMessage) GetBlocks() []*ArchivalBlock { } type AddArchivalBlocksResponseMessage struct { - state protoimpl.MessageState `protogen:"open.v1"` - Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"` } func (x *AddArchivalBlocksResponseMessage) Reset() { *x = AddArchivalBlocksResponseMessage{} - mi := &file_rpc_proto_msgTypes[144] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_rpc_proto_msgTypes[146] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *AddArchivalBlocksResponseMessage) String() string { @@ -8069,8 +8603,8 @@ func (x *AddArchivalBlocksResponseMessage) String() string { func (*AddArchivalBlocksResponseMessage) ProtoMessage() {} func (x *AddArchivalBlocksResponseMessage) ProtoReflect() protoreflect.Message { - mi := &file_rpc_proto_msgTypes[144] - if x != nil { + mi := &file_rpc_proto_msgTypes[146] + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -8082,7 +8616,7 @@ func (x *AddArchivalBlocksResponseMessage) ProtoReflect() protoreflect.Message { // Deprecated: Use AddArchivalBlocksResponseMessage.ProtoReflect.Descriptor instead. func (*AddArchivalBlocksResponseMessage) Descriptor() ([]byte, []int) { - return file_rpc_proto_rawDescGZIP(), []int{144} + return file_rpc_proto_rawDescGZIP(), []int{146} } func (x *AddArchivalBlocksResponseMessage) GetError() *RPCError { @@ -8094,7 +8628,7 @@ func (x *AddArchivalBlocksResponseMessage) GetError() *RPCError { var File_rpc_proto protoreflect.FileDescriptor -var file_rpc_proto_rawDesc = string([]byte{ +var file_rpc_proto_rawDesc = []byte{ 0x0a, 0x09, 0x72, 0x70, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x09, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x77, 0x69, 0x72, 0x65, 0x22, 0x24, 0x0a, 0x08, 0x52, 0x50, 0x43, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, @@ -9259,43 +9793,64 @@ var file_rpc_proto_rawDesc = string([]byte{ 0x57, 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x52, 0x6f, 0x6f, 0x74, 0x73, 0x52, 0x05, 0x72, 0x6f, 0x6f, 0x74, 0x73, 0x12, 0x2a, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0xe8, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x77, 0x69, 0x72, 0x65, 0x2e, 0x52, - 0x50, 0x43, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x50, - 0x0a, 0x0d, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x61, 0x6c, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, - 0x14, 0x0a, 0x05, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, - 0x63, 0x68, 0x69, 0x6c, 0x64, 0x12, 0x29, 0x0a, 0x05, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x02, + 0x50, 0x43, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x65, + 0x0a, 0x0f, 0x41, 0x63, 0x63, 0x65, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x45, 0x6e, 0x74, 0x72, + 0x79, 0x12, 0x24, 0x0a, 0x0d, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, + 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x2c, 0x0a, 0x12, 0x69, 0x6e, 0x64, 0x65, 0x78, + 0x5f, 0x77, 0x69, 0x74, 0x68, 0x69, 0x6e, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0d, 0x52, 0x10, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x57, 0x69, 0x74, 0x68, 0x69, 0x6e, + 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x22, 0x79, 0x0a, 0x1b, 0x4d, 0x65, 0x72, 0x67, 0x65, 0x73, 0x65, + 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x41, 0x63, 0x63, 0x65, 0x70, 0x74, 0x61, 0x6e, 0x63, 0x65, + 0x44, 0x61, 0x74, 0x61, 0x12, 0x1c, 0x0a, 0x09, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x61, 0x73, + 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x61, + 0x73, 0x68, 0x12, 0x3c, 0x0a, 0x0b, 0x61, 0x63, 0x63, 0x65, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, + 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x77, + 0x69, 0x72, 0x65, 0x2e, 0x41, 0x63, 0x63, 0x65, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x45, 0x6e, + 0x74, 0x72, 0x79, 0x52, 0x0b, 0x61, 0x63, 0x63, 0x65, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x73, + 0x22, 0xc8, 0x01, 0x0a, 0x0d, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x61, 0x6c, 0x42, 0x6c, 0x6f, + 0x63, 0x6b, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x05, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x12, 0x29, 0x0a, 0x05, 0x62, 0x6c, 0x6f, 0x63, + 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x77, + 0x69, 0x72, 0x65, 0x2e, 0x52, 0x70, 0x63, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x05, 0x62, 0x6c, + 0x6f, 0x63, 0x6b, 0x12, 0x4e, 0x0a, 0x0e, 0x61, 0x63, 0x63, 0x65, 0x70, 0x74, 0x61, 0x6e, 0x63, + 0x65, 0x44, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x77, 0x69, 0x72, 0x65, 0x2e, 0x4d, 0x65, 0x72, 0x67, 0x65, 0x73, 0x65, 0x74, + 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x41, 0x63, 0x63, 0x65, 0x70, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x44, + 0x61, 0x74, 0x61, 0x52, 0x0e, 0x61, 0x63, 0x63, 0x65, 0x70, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x44, + 0x61, 0x74, 0x61, 0x12, 0x26, 0x0a, 0x0e, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x65, 0x64, 0x50, + 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x73, 0x65, 0x6c, + 0x65, 0x63, 0x74, 0x65, 0x64, 0x50, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x22, 0x53, 0x0a, 0x1f, 0x41, + 0x64, 0x64, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x61, 0x6c, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x30, + 0x0a, 0x06, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x77, 0x69, 0x72, 0x65, 0x2e, 0x41, 0x72, 0x63, 0x68, 0x69, + 0x76, 0x61, 0x6c, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x06, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, + 0x22, 0x4e, 0x0a, 0x20, 0x41, 0x64, 0x64, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x61, 0x6c, 0x42, + 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x4d, 0x65, 0x73, + 0x73, 0x61, 0x67, 0x65, 0x12, 0x2a, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0xe8, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x77, 0x69, 0x72, 0x65, - 0x2e, 0x52, 0x70, 0x63, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x05, 0x62, 0x6c, 0x6f, 0x63, 0x6b, - 0x22, 0x53, 0x0a, 0x1f, 0x41, 0x64, 0x64, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x61, 0x6c, 0x42, - 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, - 0x61, 0x67, 0x65, 0x12, 0x30, 0x0a, 0x06, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x18, 0x01, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x77, 0x69, 0x72, 0x65, 0x2e, - 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x61, 0x6c, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x06, 0x62, - 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x22, 0x4e, 0x0a, 0x20, 0x41, 0x64, 0x64, 0x41, 0x72, 0x63, 0x68, - 0x69, 0x76, 0x61, 0x6c, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x2a, 0x0a, 0x05, 0x65, 0x72, 0x72, - 0x6f, 0x72, 0x18, 0xe8, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x77, 0x69, 0x72, 0x65, 0x2e, 0x52, 0x50, 0x43, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x05, - 0x65, 0x72, 0x72, 0x6f, 0x72, 0x42, 0x26, 0x5a, 0x24, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, - 0x63, 0x6f, 0x6d, 0x2f, 0x6b, 0x61, 0x73, 0x70, 0x61, 0x6e, 0x65, 0x74, 0x2f, 0x6b, 0x61, 0x73, - 0x70, 0x61, 0x64, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x77, 0x69, 0x72, 0x65, 0x62, 0x06, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x33, -}) + 0x2e, 0x52, 0x50, 0x43, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, + 0x42, 0x26, 0x5a, 0x24, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6b, + 0x61, 0x73, 0x70, 0x61, 0x6e, 0x65, 0x74, 0x2f, 0x6b, 0x61, 0x73, 0x70, 0x61, 0x64, 0x2f, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x77, 0x69, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} var ( file_rpc_proto_rawDescOnce sync.Once - file_rpc_proto_rawDescData []byte + file_rpc_proto_rawDescData = file_rpc_proto_rawDesc ) func file_rpc_proto_rawDescGZIP() []byte { file_rpc_proto_rawDescOnce.Do(func() { - file_rpc_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_rpc_proto_rawDesc), len(file_rpc_proto_rawDesc))) + file_rpc_proto_rawDescData = protoimpl.X.CompressGZIP(file_rpc_proto_rawDescData) }) return file_rpc_proto_rawDescData } var file_rpc_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_rpc_proto_msgTypes = make([]protoimpl.MessageInfo, 145) -var file_rpc_proto_goTypes = []any{ +var file_rpc_proto_msgTypes = make([]protoimpl.MessageInfo, 147) +var file_rpc_proto_goTypes = []interface{}{ (SubmitBlockResponseMessage_RejectReason)(0), // 0: protowire.SubmitBlockResponseMessage.RejectReason (*RPCError)(nil), // 1: protowire.RPCError (*RpcBlock)(nil), // 2: protowire.RpcBlock @@ -9439,9 +9994,11 @@ var file_rpc_proto_goTypes = []any{ (*GetPruningWindowRootsRequestMessage)(nil), // 140: protowire.GetPruningWindowRootsRequestMessage (*PruningWindowRoots)(nil), // 141: protowire.PruningWindowRoots (*GetPruningWindowRootsResponseMessage)(nil), // 142: protowire.GetPruningWindowRootsResponseMessage - (*ArchivalBlock)(nil), // 143: protowire.ArchivalBlock - (*AddArchivalBlocksRequestMessage)(nil), // 144: protowire.AddArchivalBlocksRequestMessage - (*AddArchivalBlocksResponseMessage)(nil), // 145: protowire.AddArchivalBlocksResponseMessage + (*AcceptedTxEntry)(nil), // 143: protowire.AcceptedTxEntry + (*MergesetBlockAcceptanceData)(nil), // 144: protowire.MergesetBlockAcceptanceData + (*ArchivalBlock)(nil), // 145: protowire.ArchivalBlock + (*AddArchivalBlocksRequestMessage)(nil), // 146: protowire.AddArchivalBlocksRequestMessage + (*AddArchivalBlocksResponseMessage)(nil), // 147: protowire.AddArchivalBlocksResponseMessage } var file_rpc_proto_depIdxs = []int32{ 3, // 0: protowire.RpcBlock.header:type_name -> protowire.RpcBlockHeader @@ -9547,14 +10104,16 @@ var file_rpc_proto_depIdxs = []int32{ 1, // 100: protowire.SubmitTransactionReplacementResponseMessage.error:type_name -> protowire.RPCError 141, // 101: protowire.GetPruningWindowRootsResponseMessage.roots:type_name -> protowire.PruningWindowRoots 1, // 102: protowire.GetPruningWindowRootsResponseMessage.error:type_name -> protowire.RPCError - 2, // 103: protowire.ArchivalBlock.block:type_name -> protowire.RpcBlock - 143, // 104: protowire.AddArchivalBlocksRequestMessage.blocks:type_name -> protowire.ArchivalBlock - 1, // 105: protowire.AddArchivalBlocksResponseMessage.error:type_name -> protowire.RPCError - 106, // [106:106] is the sub-list for method output_type - 106, // [106:106] is the sub-list for method input_type - 106, // [106:106] is the sub-list for extension type_name - 106, // [106:106] is the sub-list for extension extendee - 0, // [0:106] is the sub-list for field type_name + 143, // 103: protowire.MergesetBlockAcceptanceData.acceptedTxs:type_name -> protowire.AcceptedTxEntry + 2, // 104: protowire.ArchivalBlock.block:type_name -> protowire.RpcBlock + 144, // 105: protowire.ArchivalBlock.acceptanceData:type_name -> protowire.MergesetBlockAcceptanceData + 145, // 106: protowire.AddArchivalBlocksRequestMessage.blocks:type_name -> protowire.ArchivalBlock + 1, // 107: protowire.AddArchivalBlocksResponseMessage.error:type_name -> protowire.RPCError + 108, // [108:108] is the sub-list for method output_type + 108, // [108:108] is the sub-list for method input_type + 108, // [108:108] is the sub-list for extension type_name + 108, // [108:108] is the sub-list for extension extendee + 0, // [0:108] is the sub-list for field type_name } func init() { file_rpc_proto_init() } @@ -9562,13 +10121,1779 @@ func file_rpc_proto_init() { if File_rpc_proto != nil { return } + if !protoimpl.UnsafeEnabled { + file_rpc_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RPCError); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RpcBlock); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RpcBlockHeader); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RpcBlockLevelParents); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RpcBlockVerboseData); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RpcTransaction); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RpcTransactionInput); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RpcScriptPublicKey); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RpcTransactionOutput); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RpcOutpoint); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RpcUtxoEntry); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RpcTransactionVerboseData); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RpcTransactionInputVerboseData); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RpcTransactionOutputVerboseData); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetCurrentNetworkRequestMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetCurrentNetworkResponseMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SubmitBlockRequestMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SubmitBlockResponseMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetBlockTemplateRequestMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetBlockTemplateResponseMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NotifyBlockAddedRequestMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NotifyBlockAddedResponseMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BlockAddedNotificationMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetPeerAddressesRequestMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetPeerAddressesResponseMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetPeerAddressesKnownAddressMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetSelectedTipHashRequestMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetSelectedTipHashResponseMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetMempoolEntryRequestMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetMempoolEntryResponseMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetMempoolEntriesRequestMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetMempoolEntriesResponseMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MempoolEntry); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetConnectedPeerInfoRequestMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetConnectedPeerInfoResponseMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetConnectedPeerInfoMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AddPeerRequestMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AddPeerResponseMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SubmitTransactionRequestMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SubmitTransactionResponseMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NotifyVirtualSelectedParentChainChangedRequestMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NotifyVirtualSelectedParentChainChangedResponseMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*VirtualSelectedParentChainChangedNotificationMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetBlockRequestMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetBlockResponseMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[45].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetSubnetworkRequestMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[46].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetSubnetworkResponseMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[47].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetVirtualSelectedParentChainFromBlockRequestMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[48].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AcceptedTransactionIds); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[49].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetVirtualSelectedParentChainFromBlockResponseMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[50].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetBlocksRequestMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[51].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetBlocksResponseMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[52].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetBlockCountRequestMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[53].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetBlockCountResponseMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[54].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetBlockDagInfoRequestMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[55].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetBlockDagInfoResponseMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[56].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ResolveFinalityConflictRequestMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[57].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ResolveFinalityConflictResponseMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[58].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NotifyFinalityConflictsRequestMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[59].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NotifyFinalityConflictsResponseMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[60].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FinalityConflictNotificationMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[61].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FinalityConflictResolvedNotificationMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[62].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ShutDownRequestMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[63].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ShutDownResponseMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[64].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetHeadersRequestMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[65].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetHeadersResponseMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[66].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NotifyUtxosChangedRequestMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[67].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NotifyUtxosChangedResponseMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[68].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UtxosChangedNotificationMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[69].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UtxosByAddressesEntry); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[70].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StopNotifyingUtxosChangedRequestMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[71].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StopNotifyingUtxosChangedResponseMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[72].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetUtxosByAddressesRequestMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[73].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetUtxosByAddressesResponseMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[74].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetBalanceByAddressRequestMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[75].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetBalanceByAddressResponseMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[76].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetBalancesByAddressesRequestMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[77].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BalancesByAddressEntry); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[78].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetBalancesByAddressesResponseMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[79].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetVirtualSelectedParentBlueScoreRequestMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[80].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetVirtualSelectedParentBlueScoreResponseMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[81].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NotifyVirtualSelectedParentBlueScoreChangedRequestMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[82].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NotifyVirtualSelectedParentBlueScoreChangedResponseMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[83].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*VirtualSelectedParentBlueScoreChangedNotificationMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[84].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NotifyVirtualDaaScoreChangedRequestMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[85].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NotifyVirtualDaaScoreChangedResponseMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[86].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*VirtualDaaScoreChangedNotificationMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[87].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NotifyPruningPointUTXOSetOverrideRequestMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[88].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NotifyPruningPointUTXOSetOverrideResponseMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[89].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PruningPointUTXOSetOverrideNotificationMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[90].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StopNotifyingPruningPointUTXOSetOverrideRequestMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[91].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StopNotifyingPruningPointUTXOSetOverrideResponseMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[92].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BanRequestMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[93].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BanResponseMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[94].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UnbanRequestMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[95].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UnbanResponseMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[96].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetInfoRequestMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[97].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetInfoResponseMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[98].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EstimateNetworkHashesPerSecondRequestMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[99].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EstimateNetworkHashesPerSecondResponseMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[100].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NotifyNewBlockTemplateRequestMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[101].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NotifyNewBlockTemplateResponseMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[102].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NewBlockTemplateNotificationMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[103].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MempoolEntryByAddress); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[104].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetMempoolEntriesByAddressesRequestMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[105].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetMempoolEntriesByAddressesResponseMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[106].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetCoinSupplyRequestMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[107].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetCoinSupplyResponseMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[108].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PingRequestMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[109].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PingResponseMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[110].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ProcessMetrics); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[111].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ConnectionMetrics); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[112].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BandwidthMetrics); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[113].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ConsensusMetrics); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[114].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StorageMetrics); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[115].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetConnectionsRequestMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[116].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ConnectionsProfileData); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[117].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetConnectionsResponseMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[118].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetSystemInfoRequestMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[119].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetSystemInfoResponseMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[120].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetMetricsRequestMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[121].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetMetricsResponseMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[122].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetServerInfoRequestMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[123].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetServerInfoResponseMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[124].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetSyncStatusRequestMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[125].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetSyncStatusResponseMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[126].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetDaaScoreTimestampEstimateRequestMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[127].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetDaaScoreTimestampEstimateResponseMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[128].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RpcFeerateBucket); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[129].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RpcFeeEstimate); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[130].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RpcFeeEstimateVerboseExperimentalData); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[131].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetFeeEstimateRequestMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[132].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetFeeEstimateResponseMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[133].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetFeeEstimateExperimentalRequestMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[134].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetFeeEstimateExperimentalResponseMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[135].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetCurrentBlockColorRequestMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[136].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetCurrentBlockColorResponseMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[137].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SubmitTransactionReplacementRequestMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[138].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SubmitTransactionReplacementResponseMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[139].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetPruningWindowRootsRequestMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[140].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PruningWindowRoots); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[141].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetPruningWindowRootsResponseMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[142].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AcceptedTxEntry); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[143].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MergesetBlockAcceptanceData); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[144].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ArchivalBlock); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[145].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AddArchivalBlocksRequestMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rpc_proto_msgTypes[146].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AddArchivalBlocksResponseMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: unsafe.Slice(unsafe.StringData(file_rpc_proto_rawDesc), len(file_rpc_proto_rawDesc)), + RawDescriptor: file_rpc_proto_rawDesc, NumEnums: 1, - NumMessages: 145, + NumMessages: 147, NumExtensions: 0, NumServices: 0, }, @@ -9578,6 +11903,7 @@ func file_rpc_proto_init() { MessageInfos: file_rpc_proto_msgTypes, }.Build() File_rpc_proto = out.File + file_rpc_proto_rawDesc = nil file_rpc_proto_goTypes = nil file_rpc_proto_depIdxs = nil } diff --git a/infrastructure/network/netadapter/server/grpcserver/protowire/rpc.proto b/infrastructure/network/netadapter/server/grpcserver/protowire/rpc.proto index 4cf527520..69b25d72e 100644 --- a/infrastructure/network/netadapter/server/grpcserver/protowire/rpc.proto +++ b/infrastructure/network/netadapter/server/grpcserver/protowire/rpc.proto @@ -902,9 +902,22 @@ message GetPruningWindowRootsResponseMessage { RPCError error = 1000; } -message ArchivalBlock { +message AcceptedTxEntry{ + string transactionId = 1; + uint32 index_within_block = 2; +} + + +message MergesetBlockAcceptanceData{ + string blockHash = 1; + repeated AcceptedTxEntry acceptedTxs = 3; +} + +message ArchivalBlock{ string child = 1; RpcBlock block = 2; + repeated MergesetBlockAcceptanceData acceptanceData = 3; + string selectedParent = 4; } message AddArchivalBlocksRequestMessage { repeated ArchivalBlock blocks = 1; } diff --git a/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_add_archival_blocks.go b/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_add_archival_blocks.go index 487c0dfd7..92174344f 100644 --- a/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_add_archival_blocks.go +++ b/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_add_archival_blocks.go @@ -6,6 +6,7 @@ import ( ) func (x *KaspadMessage_AddArchivalBlocksRequest) toAppMessage() (appmessage.Message, error) { + panic("we need to implement acceptance data conversion") if x == nil { return nil, errors.Wrapf(errorNil, "KaspadMessage_AddArchivalBlocksRequest is nil") } @@ -32,7 +33,8 @@ func (x *KaspadMessage_AddArchivalBlocksRequest) fromAppMessage(message *appmess blocks := make([]*ArchivalBlock, len(message.Blocks)) for i, block := range message.Blocks { protoBlock := &ArchivalBlock{ - Child: block.Child, + Child: block.Child, + SelectedParent: block.SelectedParent, } if block.Block != nil { @@ -42,6 +44,12 @@ func (x *KaspadMessage_AddArchivalBlocksRequest) fromAppMessage(message *appmess return err } } + + protoBlock.AcceptanceData = make([]*MergesetBlockAcceptanceData, len(block.AcceptanceData)) + for j, acceptanceData := range block.AcceptanceData { + protoBlock.AcceptanceData[j] = &MergesetBlockAcceptanceData{} + protoBlock.AcceptanceData[j].fromAppMessage(acceptanceData) + } blocks[i] = protoBlock } @@ -51,6 +59,23 @@ func (x *KaspadMessage_AddArchivalBlocksRequest) fromAppMessage(message *appmess return nil } +func (x *MergesetBlockAcceptanceData) fromAppMessage(message *appmessage.MergesetBlockAcceptanceData) error { + if message == nil { + return errors.Wrapf(errorNil, "MergesetBlockAcceptanceData is nil") + } + + x.BlockHash = message.BlockHash + x.AcceptedTxs = make([]*AcceptedTxEntry, len(message.AcceptedTxs)) + for i, tx := range message.AcceptedTxs { + x.AcceptedTxs[i] = &AcceptedTxEntry{ + TransactionId: tx.TransactionID, + IndexWithinBlock: tx.IndexWithinBlock, + } + } + + return nil +} + func (x *KaspadMessage_AddArchivalBlocksResponse) toAppMessage() (appmessage.Message, error) { if x == nil { return nil, errors.Wrapf(errorNil, "KaspadMessage_AddArchivalBlocksResponse is nil")