mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-11-24 14:35:53 +00:00
set up appmessage converters
This commit is contained in:
parent
06c67068ce
commit
38e9ab81e4
@ -4,7 +4,7 @@ package appmessage
|
||||
// its respective RPC message
|
||||
type TxIDBlockHashPair struct {
|
||||
TxID string
|
||||
blockhash string
|
||||
Hash string
|
||||
}
|
||||
|
||||
// GetAcceptingBlockHashesOfTxsRequestMessage is an appmessage corresponding to
|
||||
|
||||
@ -4,7 +4,7 @@ package appmessage
|
||||
// its respective RPC message
|
||||
type TxIDBlockPair struct {
|
||||
TxID string
|
||||
BlockHash RPCBlock
|
||||
Block RPCBlock
|
||||
}
|
||||
|
||||
// GetAcceptingBlocksOfTxsRequestMessage is an appmessage corresponding to
|
||||
|
||||
@ -162,8 +162,8 @@ type KaspadMessage struct {
|
||||
// *KaspadMessage_GetAcceptingBlockHashesOfTxsResponse
|
||||
// *KaspadMessage_GetAcceptingBlockOfTxRequest
|
||||
// *KaspadMessage_GetAcceptingBlockOfTxResponse
|
||||
// *KaspadMessage_GetAcceptingBlocksOfTxRequest
|
||||
// *KaspadMessage_GetAcceptingBlocksOfTxResponse
|
||||
// *KaspadMessage_GetAcceptingBlocksOfTxsRequest
|
||||
// *KaspadMessage_GetAcceptingBlocksOfTxsResponse
|
||||
// *KaspadMessage_GetIncludingBlockHashOfTxRequest
|
||||
// *KaspadMessage_GetIncludingBlockHashOfTxResponse
|
||||
// *KaspadMessage_GetTxRequest
|
||||
@ -1168,16 +1168,16 @@ func (x *KaspadMessage) GetGetAcceptingBlockOfTxResponse() *GetAcceptingBlockOfT
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *KaspadMessage) GetGetAcceptingBlocksOfTxRequest() *GetAcceptingBlocksOfTxsRequestMessage {
|
||||
if x, ok := x.GetPayload().(*KaspadMessage_GetAcceptingBlocksOfTxRequest); ok {
|
||||
return x.GetAcceptingBlocksOfTxRequest
|
||||
func (x *KaspadMessage) GetGetAcceptingBlocksOfTxsRequest() *GetAcceptingBlocksOfTxsRequestMessage {
|
||||
if x, ok := x.GetPayload().(*KaspadMessage_GetAcceptingBlocksOfTxsRequest); ok {
|
||||
return x.GetAcceptingBlocksOfTxsRequest
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *KaspadMessage) GetGetAcceptingBlocksOfTxResponse() *GetAcceptingBlocksOfTxsResponseMessage {
|
||||
if x, ok := x.GetPayload().(*KaspadMessage_GetAcceptingBlocksOfTxResponse); ok {
|
||||
return x.GetAcceptingBlocksOfTxResponse
|
||||
func (x *KaspadMessage) GetGetAcceptingBlocksOfTxsResponse() *GetAcceptingBlocksOfTxsResponseMessage {
|
||||
if x, ok := x.GetPayload().(*KaspadMessage_GetAcceptingBlocksOfTxsResponse); ok {
|
||||
return x.GetAcceptingBlocksOfTxsResponse
|
||||
}
|
||||
return nil
|
||||
}
|
||||
@ -1800,12 +1800,12 @@ type KaspadMessage_GetAcceptingBlockOfTxResponse struct {
|
||||
GetAcceptingBlockOfTxResponse *GetAcceptingBlockOfTxResponseMessage `protobuf:"bytes,1093,opt,name=getAcceptingBlockOfTxResponse,proto3,oneof"`
|
||||
}
|
||||
|
||||
type KaspadMessage_GetAcceptingBlocksOfTxRequest struct {
|
||||
GetAcceptingBlocksOfTxRequest *GetAcceptingBlocksOfTxsRequestMessage `protobuf:"bytes,1094,opt,name=getAcceptingBlocksOfTxRequest,proto3,oneof"`
|
||||
type KaspadMessage_GetAcceptingBlocksOfTxsRequest struct {
|
||||
GetAcceptingBlocksOfTxsRequest *GetAcceptingBlocksOfTxsRequestMessage `protobuf:"bytes,1094,opt,name=getAcceptingBlocksOfTxsRequest,proto3,oneof"`
|
||||
}
|
||||
|
||||
type KaspadMessage_GetAcceptingBlocksOfTxResponse struct {
|
||||
GetAcceptingBlocksOfTxResponse *GetAcceptingBlocksOfTxsResponseMessage `protobuf:"bytes,1095,opt,name=getAcceptingBlocksOfTxResponse,proto3,oneof"`
|
||||
type KaspadMessage_GetAcceptingBlocksOfTxsResponse struct {
|
||||
GetAcceptingBlocksOfTxsResponse *GetAcceptingBlocksOfTxsResponseMessage `protobuf:"bytes,1095,opt,name=getAcceptingBlocksOfTxsResponse,proto3,oneof"`
|
||||
}
|
||||
|
||||
type KaspadMessage_GetIncludingBlockHashOfTxRequest struct {
|
||||
@ -2120,9 +2120,9 @@ func (*KaspadMessage_GetAcceptingBlockOfTxRequest) isKaspadMessage_Payload() {}
|
||||
|
||||
func (*KaspadMessage_GetAcceptingBlockOfTxResponse) isKaspadMessage_Payload() {}
|
||||
|
||||
func (*KaspadMessage_GetAcceptingBlocksOfTxRequest) isKaspadMessage_Payload() {}
|
||||
func (*KaspadMessage_GetAcceptingBlocksOfTxsRequest) isKaspadMessage_Payload() {}
|
||||
|
||||
func (*KaspadMessage_GetAcceptingBlocksOfTxResponse) isKaspadMessage_Payload() {}
|
||||
func (*KaspadMessage_GetAcceptingBlocksOfTxsResponse) isKaspadMessage_Payload() {}
|
||||
|
||||
func (*KaspadMessage_GetIncludingBlockHashOfTxRequest) isKaspadMessage_Payload() {}
|
||||
|
||||
@ -2150,7 +2150,7 @@ 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,
|
||||
0x6f, 0x22, 0xc8, 0x7d, 0x0a, 0x0d, 0x4b, 0x61, 0x73, 0x70, 0x61, 0x64, 0x4d, 0x65, 0x73, 0x73,
|
||||
0x6f, 0x22, 0xcc, 0x7d, 0x0a, 0x0d, 0x4b, 0x61, 0x73, 0x70, 0x61, 0x64, 0x4d, 0x65, 0x73, 0x73,
|
||||
0x61, 0x67, 0x65, 0x12, 0x3b, 0x0a, 0x09, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73,
|
||||
0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x77, 0x69,
|
||||
0x72, 0x65, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x4d, 0x65, 0x73, 0x73,
|
||||
@ -3075,99 +3075,100 @@ var file_messages_proto_rawDesc = []byte{
|
||||
0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
|
||||
0x48, 0x00, 0x52, 0x1d, 0x67, 0x65, 0x74, 0x41, 0x63, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6e, 0x67,
|
||||
0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x4f, 0x66, 0x54, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
|
||||
0x65, 0x12, 0x79, 0x0a, 0x1d, 0x67, 0x65, 0x74, 0x41, 0x63, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6e,
|
||||
0x67, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x4f, 0x66, 0x54, 0x78, 0x52, 0x65, 0x71, 0x75, 0x65,
|
||||
0x73, 0x74, 0x18, 0xc6, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x70, 0x72, 0x6f, 0x74,
|
||||
0x6f, 0x77, 0x69, 0x72, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x63, 0x63, 0x65, 0x70, 0x74, 0x69,
|
||||
0x6e, 0x67, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x4f, 0x66, 0x54, 0x78, 0x73, 0x52, 0x65, 0x71,
|
||||
0x75, 0x65, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x48, 0x00, 0x52, 0x1d, 0x67,
|
||||
0x65, 0x74, 0x41, 0x63, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6e, 0x67, 0x42, 0x6c, 0x6f, 0x63, 0x6b,
|
||||
0x73, 0x4f, 0x66, 0x54, 0x78, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x7c, 0x0a, 0x1e,
|
||||
0x65, 0x12, 0x7b, 0x0a, 0x1e, 0x67, 0x65, 0x74, 0x41, 0x63, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6e,
|
||||
0x67, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x4f, 0x66, 0x54, 0x78, 0x73, 0x52, 0x65, 0x71, 0x75,
|
||||
0x65, 0x73, 0x74, 0x18, 0xc6, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x70, 0x72, 0x6f,
|
||||
0x74, 0x6f, 0x77, 0x69, 0x72, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x63, 0x63, 0x65, 0x70, 0x74,
|
||||
0x69, 0x6e, 0x67, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x4f, 0x66, 0x54, 0x78, 0x73, 0x52, 0x65,
|
||||
0x71, 0x75, 0x65, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x48, 0x00, 0x52, 0x1e,
|
||||
0x67, 0x65, 0x74, 0x41, 0x63, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6e, 0x67, 0x42, 0x6c, 0x6f, 0x63,
|
||||
0x6b, 0x73, 0x4f, 0x66, 0x54, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0xc7,
|
||||
0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x77, 0x69, 0x72,
|
||||
0x65, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x63, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6e, 0x67, 0x42, 0x6c,
|
||||
0x6b, 0x73, 0x4f, 0x66, 0x54, 0x78, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x7e,
|
||||
0x0a, 0x1f, 0x67, 0x65, 0x74, 0x41, 0x63, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6e, 0x67, 0x42, 0x6c,
|
||||
0x6f, 0x63, 0x6b, 0x73, 0x4f, 0x66, 0x54, 0x78, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
|
||||
0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x48, 0x00, 0x52, 0x1e, 0x67, 0x65, 0x74, 0x41,
|
||||
0x63, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6e, 0x67, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x4f, 0x66,
|
||||
0x54, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x81, 0x01, 0x0a, 0x20, 0x67,
|
||||
0x65, 0x74, 0x49, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x69, 0x6e, 0x67, 0x42, 0x6c, 0x6f, 0x63, 0x6b,
|
||||
0x48, 0x61, 0x73, 0x68, 0x4f, 0x66, 0x54, 0x78, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18,
|
||||
0xc8, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x77, 0x69,
|
||||
0x72, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x49, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x69, 0x6e, 0x67, 0x42,
|
||||
0x65, 0x18, 0xc7, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
||||
0x77, 0x69, 0x72, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x63, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6e,
|
||||
0x67, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x4f, 0x66, 0x54, 0x78, 0x73, 0x52, 0x65, 0x73, 0x70,
|
||||
0x6f, 0x6e, 0x73, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x48, 0x00, 0x52, 0x1f, 0x67,
|
||||
0x65, 0x74, 0x41, 0x63, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6e, 0x67, 0x42, 0x6c, 0x6f, 0x63, 0x6b,
|
||||
0x73, 0x4f, 0x66, 0x54, 0x78, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x81,
|
||||
0x01, 0x0a, 0x20, 0x67, 0x65, 0x74, 0x49, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x69, 0x6e, 0x67, 0x42,
|
||||
0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x61, 0x73, 0x68, 0x4f, 0x66, 0x54, 0x78, 0x52, 0x65, 0x71, 0x75,
|
||||
0x65, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x48, 0x00, 0x52, 0x20, 0x67, 0x65,
|
||||
0x74, 0x49, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x69, 0x6e, 0x67, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48,
|
||||
0x61, 0x73, 0x68, 0x4f, 0x66, 0x54, 0x78, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x84,
|
||||
0x01, 0x0a, 0x21, 0x67, 0x65, 0x74, 0x49, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x69, 0x6e, 0x67, 0x42,
|
||||
0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x61, 0x73, 0x68, 0x4f, 0x66, 0x54, 0x78, 0x52, 0x65, 0x73, 0x70,
|
||||
0x6f, 0x6e, 0x73, 0x65, 0x18, 0xc9, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x70, 0x72,
|
||||
0x6f, 0x74, 0x6f, 0x77, 0x69, 0x72, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x49, 0x6e, 0x63, 0x6c, 0x75,
|
||||
0x64, 0x69, 0x6e, 0x67, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x61, 0x73, 0x68, 0x4f, 0x66, 0x54,
|
||||
0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
|
||||
0x48, 0x00, 0x52, 0x21, 0x67, 0x65, 0x74, 0x49, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x69, 0x6e, 0x67,
|
||||
0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x61, 0x73, 0x68, 0x4f, 0x66, 0x54, 0x78, 0x52, 0x65, 0x73,
|
||||
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x45, 0x0a, 0x0c, 0x67, 0x65, 0x74, 0x54, 0x78, 0x52, 0x65,
|
||||
0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0xca, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x70,
|
||||
0x72, 0x6f, 0x74, 0x6f, 0x77, 0x69, 0x72, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x78, 0x52, 0x65,
|
||||
0x71, 0x75, 0x65, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x48, 0x00, 0x52, 0x0c,
|
||||
0x67, 0x65, 0x74, 0x54, 0x78, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x48, 0x0a, 0x0d,
|
||||
0x67, 0x65, 0x74, 0x54, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0xcb, 0x08,
|
||||
0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x77, 0x69, 0x72, 0x65,
|
||||
0x2e, 0x47, 0x65, 0x74, 0x54, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x4d, 0x65,
|
||||
0x73, 0x73, 0x61, 0x67, 0x65, 0x48, 0x00, 0x52, 0x0d, 0x67, 0x65, 0x74, 0x54, 0x78, 0x52, 0x65,
|
||||
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x48, 0x0a, 0x0d, 0x67, 0x65, 0x74, 0x54, 0x78, 0x73,
|
||||
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0xcc, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f,
|
||||
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x77, 0x69, 0x72, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x78,
|
||||
0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x48,
|
||||
0x00, 0x52, 0x0d, 0x67, 0x65, 0x74, 0x54, 0x78, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
|
||||
0x12, 0x4b, 0x0a, 0x0e, 0x67, 0x65, 0x74, 0x54, 0x78, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
|
||||
0x73, 0x65, 0x18, 0xcd, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x70, 0x72, 0x6f, 0x74,
|
||||
0x6f, 0x77, 0x69, 0x72, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x78, 0x73, 0x52, 0x65, 0x73, 0x70,
|
||||
0x6f, 0x6e, 0x73, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x48, 0x00, 0x52, 0x0e, 0x67,
|
||||
0x65, 0x74, 0x54, 0x78, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6c, 0x0a,
|
||||
0x19, 0x67, 0x65, 0x74, 0x54, 0x78, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x61, 0x74, 0x69,
|
||||
0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0xce, 0x08, 0x20, 0x01, 0x28,
|
||||
0x0b, 0x32, 0x2b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x77, 0x69, 0x72, 0x65, 0x2e, 0x47, 0x65,
|
||||
0x74, 0x54, 0x78, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73,
|
||||
0x65, 0x73, 0x74, 0x18, 0xc8, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x70, 0x72, 0x6f,
|
||||
0x74, 0x6f, 0x77, 0x69, 0x72, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x49, 0x6e, 0x63, 0x6c, 0x75, 0x64,
|
||||
0x69, 0x6e, 0x67, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x61, 0x73, 0x68, 0x4f, 0x66, 0x54, 0x78,
|
||||
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x48, 0x00,
|
||||
0x52, 0x19, 0x67, 0x65, 0x74, 0x54, 0x78, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x61, 0x74,
|
||||
0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x6f, 0x0a, 0x1a, 0x67,
|
||||
0x65, 0x74, 0x54, 0x78, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e,
|
||||
0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0xcf, 0x08, 0x20, 0x01, 0x28, 0x0b,
|
||||
0x32, 0x2c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x77, 0x69, 0x72, 0x65, 0x2e, 0x47, 0x65, 0x74,
|
||||
0x54, 0x78, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52,
|
||||
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x48, 0x00,
|
||||
0x52, 0x1a, 0x67, 0x65, 0x74, 0x54, 0x78, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x61, 0x74,
|
||||
0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6f, 0x0a, 0x1a,
|
||||
0x67, 0x65, 0x74, 0x54, 0x78, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x61, 0x74, 0x69,
|
||||
0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0xd0, 0x08, 0x20, 0x01, 0x28,
|
||||
0x0b, 0x32, 0x2c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x77, 0x69, 0x72, 0x65, 0x2e, 0x47, 0x65,
|
||||
0x74, 0x54, 0x78, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e,
|
||||
0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x48,
|
||||
0x00, 0x52, 0x1a, 0x67, 0x65, 0x74, 0x54, 0x78, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d,
|
||||
0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x72, 0x0a,
|
||||
0x1b, 0x67, 0x65, 0x74, 0x54, 0x78, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x61, 0x74,
|
||||
0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0xd1, 0x08, 0x20,
|
||||
0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x77, 0x69, 0x72, 0x65, 0x2e,
|
||||
0x47, 0x65, 0x74, 0x54, 0x78, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x61, 0x74, 0x69,
|
||||
0x52, 0x20, 0x67, 0x65, 0x74, 0x49, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x69, 0x6e, 0x67, 0x42, 0x6c,
|
||||
0x6f, 0x63, 0x6b, 0x48, 0x61, 0x73, 0x68, 0x4f, 0x66, 0x54, 0x78, 0x52, 0x65, 0x71, 0x75, 0x65,
|
||||
0x73, 0x74, 0x12, 0x84, 0x01, 0x0a, 0x21, 0x67, 0x65, 0x74, 0x49, 0x6e, 0x63, 0x6c, 0x75, 0x64,
|
||||
0x69, 0x6e, 0x67, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x61, 0x73, 0x68, 0x4f, 0x66, 0x54, 0x78,
|
||||
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0xc9, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32,
|
||||
0x33, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x77, 0x69, 0x72, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x49,
|
||||
0x6e, 0x63, 0x6c, 0x75, 0x64, 0x69, 0x6e, 0x67, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x61, 0x73,
|
||||
0x68, 0x4f, 0x66, 0x54, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x4d, 0x65, 0x73,
|
||||
0x73, 0x61, 0x67, 0x65, 0x48, 0x00, 0x52, 0x21, 0x67, 0x65, 0x74, 0x49, 0x6e, 0x63, 0x6c, 0x75,
|
||||
0x64, 0x69, 0x6e, 0x67, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x61, 0x73, 0x68, 0x4f, 0x66, 0x54,
|
||||
0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x45, 0x0a, 0x0c, 0x67, 0x65, 0x74,
|
||||
0x54, 0x78, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0xca, 0x08, 0x20, 0x01, 0x28, 0x0b,
|
||||
0x32, 0x1e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x77, 0x69, 0x72, 0x65, 0x2e, 0x47, 0x65, 0x74,
|
||||
0x54, 0x78, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
|
||||
0x48, 0x00, 0x52, 0x0c, 0x67, 0x65, 0x74, 0x54, 0x78, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
|
||||
0x12, 0x48, 0x0a, 0x0d, 0x67, 0x65, 0x74, 0x54, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
|
||||
0x65, 0x18, 0xcb, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
||||
0x77, 0x69, 0x72, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
|
||||
0x73, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x48, 0x00, 0x52, 0x0d, 0x67, 0x65, 0x74,
|
||||
0x54, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x48, 0x0a, 0x0d, 0x67, 0x65,
|
||||
0x74, 0x54, 0x78, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0xcc, 0x08, 0x20, 0x01,
|
||||
0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x77, 0x69, 0x72, 0x65, 0x2e, 0x47,
|
||||
0x65, 0x74, 0x54, 0x78, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73,
|
||||
0x61, 0x67, 0x65, 0x48, 0x00, 0x52, 0x0d, 0x67, 0x65, 0x74, 0x54, 0x78, 0x73, 0x52, 0x65, 0x71,
|
||||
0x75, 0x65, 0x73, 0x74, 0x12, 0x4b, 0x0a, 0x0e, 0x67, 0x65, 0x74, 0x54, 0x78, 0x73, 0x52, 0x65,
|
||||
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0xcd, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e,
|
||||
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x77, 0x69, 0x72, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x78, 0x73,
|
||||
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x48,
|
||||
0x00, 0x52, 0x0e, 0x67, 0x65, 0x74, 0x54, 0x78, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
|
||||
0x65, 0x12, 0x6c, 0x0a, 0x19, 0x67, 0x65, 0x74, 0x54, 0x78, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72,
|
||||
0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0xce,
|
||||
0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x77, 0x69, 0x72,
|
||||
0x65, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x78, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x61, 0x74,
|
||||
0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61,
|
||||
0x67, 0x65, 0x48, 0x00, 0x52, 0x19, 0x67, 0x65, 0x74, 0x54, 0x78, 0x43, 0x6f, 0x6e, 0x66, 0x69,
|
||||
0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
|
||||
0x6f, 0x0a, 0x1a, 0x67, 0x65, 0x74, 0x54, 0x78, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x61,
|
||||
0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0xcf, 0x08,
|
||||
0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x77, 0x69, 0x72, 0x65,
|
||||
0x2e, 0x47, 0x65, 0x74, 0x54, 0x78, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x61, 0x74, 0x69,
|
||||
0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61,
|
||||
0x67, 0x65, 0x48, 0x00, 0x52, 0x1b, 0x67, 0x65, 0x74, 0x54, 0x78, 0x73, 0x43, 0x6f, 0x6e, 0x66,
|
||||
0x69, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
|
||||
0x65, 0x42, 0x09, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x32, 0x50, 0x0a, 0x03,
|
||||
0x50, 0x32, 0x50, 0x12, 0x49, 0x0a, 0x0d, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x53, 0x74,
|
||||
0x72, 0x65, 0x61, 0x6d, 0x12, 0x18, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x77, 0x69, 0x72, 0x65,
|
||||
0x2e, 0x4b, 0x61, 0x73, 0x70, 0x61, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x1a, 0x18,
|
||||
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x77, 0x69, 0x72, 0x65, 0x2e, 0x4b, 0x61, 0x73, 0x70, 0x61,
|
||||
0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x00, 0x28, 0x01, 0x30, 0x01, 0x32, 0x50,
|
||||
0x0a, 0x03, 0x52, 0x50, 0x43, 0x12, 0x49, 0x0a, 0x0d, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
|
||||
0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x18, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x77, 0x69,
|
||||
0x72, 0x65, 0x2e, 0x4b, 0x61, 0x73, 0x70, 0x61, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
|
||||
0x1a, 0x18, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x77, 0x69, 0x72, 0x65, 0x2e, 0x4b, 0x61, 0x73,
|
||||
0x70, 0x61, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x00, 0x28, 0x01, 0x30, 0x01,
|
||||
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,
|
||||
0x67, 0x65, 0x48, 0x00, 0x52, 0x1a, 0x67, 0x65, 0x74, 0x54, 0x78, 0x43, 0x6f, 0x6e, 0x66, 0x69,
|
||||
0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
|
||||
0x12, 0x6f, 0x0a, 0x1a, 0x67, 0x65, 0x74, 0x54, 0x78, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72,
|
||||
0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0xd0,
|
||||
0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x77, 0x69, 0x72,
|
||||
0x65, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x78, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x61,
|
||||
0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73,
|
||||
0x61, 0x67, 0x65, 0x48, 0x00, 0x52, 0x1a, 0x67, 0x65, 0x74, 0x54, 0x78, 0x73, 0x43, 0x6f, 0x6e,
|
||||
0x66, 0x69, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
|
||||
0x74, 0x12, 0x72, 0x0a, 0x1b, 0x67, 0x65, 0x74, 0x54, 0x78, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69,
|
||||
0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
|
||||
0x18, 0xd1, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x77,
|
||||
0x69, 0x72, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x78, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72,
|
||||
0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x4d,
|
||||
0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x48, 0x00, 0x52, 0x1b, 0x67, 0x65, 0x74, 0x54, 0x78, 0x73,
|
||||
0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73,
|
||||
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x09, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64,
|
||||
0x32, 0x50, 0x0a, 0x03, 0x50, 0x32, 0x50, 0x12, 0x49, 0x0a, 0x0d, 0x4d, 0x65, 0x73, 0x73, 0x61,
|
||||
0x67, 0x65, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x18, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
||||
0x77, 0x69, 0x72, 0x65, 0x2e, 0x4b, 0x61, 0x73, 0x70, 0x61, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61,
|
||||
0x67, 0x65, 0x1a, 0x18, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x77, 0x69, 0x72, 0x65, 0x2e, 0x4b,
|
||||
0x61, 0x73, 0x70, 0x61, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x00, 0x28, 0x01,
|
||||
0x30, 0x01, 0x32, 0x50, 0x0a, 0x03, 0x52, 0x50, 0x43, 0x12, 0x49, 0x0a, 0x0d, 0x4d, 0x65, 0x73,
|
||||
0x73, 0x61, 0x67, 0x65, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x18, 0x2e, 0x70, 0x72, 0x6f,
|
||||
0x74, 0x6f, 0x77, 0x69, 0x72, 0x65, 0x2e, 0x4b, 0x61, 0x73, 0x70, 0x61, 0x64, 0x4d, 0x65, 0x73,
|
||||
0x73, 0x61, 0x67, 0x65, 0x1a, 0x18, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x77, 0x69, 0x72, 0x65,
|
||||
0x2e, 0x4b, 0x61, 0x73, 0x70, 0x61, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x00,
|
||||
0x28, 0x01, 0x30, 0x01, 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 (
|
||||
@ -3470,8 +3471,8 @@ var file_messages_proto_depIdxs = []int32{
|
||||
133, // 133: protowire.KaspadMessage.getAcceptingBlockHashesOfTxsResponse:type_name -> protowire.GetAcceptingBlockHashesOfTxsResponseMessage
|
||||
134, // 134: protowire.KaspadMessage.getAcceptingBlockOfTxRequest:type_name -> protowire.GetAcceptingBlockOfTxRequestMessage
|
||||
135, // 135: protowire.KaspadMessage.getAcceptingBlockOfTxResponse:type_name -> protowire.GetAcceptingBlockOfTxResponseMessage
|
||||
136, // 136: protowire.KaspadMessage.getAcceptingBlocksOfTxRequest:type_name -> protowire.GetAcceptingBlocksOfTxsRequestMessage
|
||||
137, // 137: protowire.KaspadMessage.getAcceptingBlocksOfTxResponse:type_name -> protowire.GetAcceptingBlocksOfTxsResponseMessage
|
||||
136, // 136: protowire.KaspadMessage.getAcceptingBlocksOfTxsRequest:type_name -> protowire.GetAcceptingBlocksOfTxsRequestMessage
|
||||
137, // 137: protowire.KaspadMessage.getAcceptingBlocksOfTxsResponse:type_name -> protowire.GetAcceptingBlocksOfTxsResponseMessage
|
||||
138, // 138: protowire.KaspadMessage.getIncludingBlockHashOfTxRequest:type_name -> protowire.GetIncludingBlockHashOfTxRequestMessage
|
||||
139, // 139: protowire.KaspadMessage.getIncludingBlockHashOfTxResponse:type_name -> protowire.GetIncludingBlockHashOfTxResponseMessage
|
||||
140, // 140: protowire.KaspadMessage.getTxRequest:type_name -> protowire.GetTxRequestMessage
|
||||
@ -3651,8 +3652,8 @@ func file_messages_proto_init() {
|
||||
(*KaspadMessage_GetAcceptingBlockHashesOfTxsResponse)(nil),
|
||||
(*KaspadMessage_GetAcceptingBlockOfTxRequest)(nil),
|
||||
(*KaspadMessage_GetAcceptingBlockOfTxResponse)(nil),
|
||||
(*KaspadMessage_GetAcceptingBlocksOfTxRequest)(nil),
|
||||
(*KaspadMessage_GetAcceptingBlocksOfTxResponse)(nil),
|
||||
(*KaspadMessage_GetAcceptingBlocksOfTxsRequest)(nil),
|
||||
(*KaspadMessage_GetAcceptingBlocksOfTxsResponse)(nil),
|
||||
(*KaspadMessage_GetIncludingBlockHashOfTxRequest)(nil),
|
||||
(*KaspadMessage_GetIncludingBlockHashOfTxResponse)(nil),
|
||||
(*KaspadMessage_GetTxRequest)(nil),
|
||||
|
||||
@ -146,8 +146,8 @@ message KaspadMessage {
|
||||
GetAcceptingBlockHashesOfTxsResponseMessage getAcceptingBlockHashesOfTxsResponse = 1091;
|
||||
GetAcceptingBlockOfTxRequestMessage getAcceptingBlockOfTxRequest = 1092;
|
||||
GetAcceptingBlockOfTxResponseMessage getAcceptingBlockOfTxResponse = 1093;
|
||||
GetAcceptingBlocksOfTxsRequestMessage getAcceptingBlocksOfTxRequest = 1094;
|
||||
GetAcceptingBlocksOfTxsResponseMessage getAcceptingBlocksOfTxResponse = 1095;
|
||||
GetAcceptingBlocksOfTxsRequestMessage getAcceptingBlocksOfTxsRequest = 1094;
|
||||
GetAcceptingBlocksOfTxsResponseMessage getAcceptingBlocksOfTxsResponse = 1095;
|
||||
GetIncludingBlockHashOfTxRequestMessage getIncludingBlockHashOfTxRequest = 1096;
|
||||
GetIncludingBlockHashOfTxResponseMessage getIncludingBlockHashOfTxResponse = 1097;
|
||||
GetTxRequestMessage getTxRequest = 1098;
|
||||
|
||||
@ -1919,7 +1919,7 @@ See NotifyNewBlockTemplateRequestMessage
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| txID | [string](#string) | | |
|
||||
| confirmations | [int32](#int32) | | |
|
||||
| confirmations | [int64](#int64) | | |
|
||||
|
||||
|
||||
|
||||
@ -1935,7 +1935,7 @@ See NotifyNewBlockTemplateRequestMessage
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| txID | [string](#string) | | |
|
||||
| blockHash | [string](#string) | | |
|
||||
| Hash | [string](#string) | | |
|
||||
|
||||
|
||||
|
||||
@ -1966,7 +1966,7 @@ See NotifyNewBlockTemplateRequestMessage
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| txID | [string](#string) | repeated | |
|
||||
| txIDs | [string](#string) | repeated | |
|
||||
|
||||
|
||||
|
||||
@ -1981,7 +1981,7 @@ See NotifyNewBlockTemplateRequestMessage
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| txIDBlockHashPair | [TxIDBlockHashPair](#protowire.TxIDBlockHashPair) | repeated | |
|
||||
| txIDBlockHashPairs | [TxIDBlockHashPair](#protowire.TxIDBlockHashPair) | repeated | |
|
||||
| error | [RPCError](#protowire.RPCError) | | |
|
||||
|
||||
|
||||
@ -2028,7 +2028,7 @@ See NotifyNewBlockTemplateRequestMessage
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| txID | [string](#string) | repeated | |
|
||||
| txIDs | [string](#string) | repeated | |
|
||||
|
||||
|
||||
|
||||
@ -2043,7 +2043,7 @@ See NotifyNewBlockTemplateRequestMessage
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| txIDBlockPair | [TxIDBlockPair](#protowire.TxIDBlockPair) | repeated | |
|
||||
| txIDBlockPairs | [TxIDBlockPair](#protowire.TxIDBlockPair) | repeated | |
|
||||
| error | [RPCError](#protowire.RPCError) | | |
|
||||
|
||||
|
||||
@ -2074,7 +2074,7 @@ See NotifyNewBlockTemplateRequestMessage
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| blockHash | [string](#string) | | |
|
||||
| hash | [string](#string) | | |
|
||||
| error | [RPCError](#protowire.RPCError) | | |
|
||||
|
||||
|
||||
@ -2121,7 +2121,7 @@ See NotifyNewBlockTemplateRequestMessage
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| txID | [string](#string) | repeated | |
|
||||
| txIDs | [string](#string) | repeated | |
|
||||
|
||||
|
||||
|
||||
@ -2183,7 +2183,7 @@ See NotifyNewBlockTemplateRequestMessage
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| txID | [string](#string) | repeated | |
|
||||
| txIDs | [string](#string) | repeated | |
|
||||
|
||||
|
||||
|
||||
@ -2198,7 +2198,7 @@ See NotifyNewBlockTemplateRequestMessage
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| txIDConfirmations | [TxIDConfirmationsPair](#protowire.TxIDConfirmationsPair) | repeated | |
|
||||
| txIDConfirmationsPairs | [TxIDConfirmationsPair](#protowire.TxIDConfirmationsPair) | repeated | |
|
||||
| error | [RPCError](#protowire.RPCError) | | |
|
||||
|
||||
|
||||
|
||||
@ -6221,7 +6221,7 @@ type TxIDConfirmationsPair struct {
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
TxID string `protobuf:"bytes,1,opt,name=txID,proto3" json:"txID,omitempty"`
|
||||
Confirmations int32 `protobuf:"varint,2,opt,name=confirmations,proto3" json:"confirmations,omitempty"`
|
||||
Confirmations int64 `protobuf:"varint,2,opt,name=confirmations,proto3" json:"confirmations,omitempty"`
|
||||
}
|
||||
|
||||
func (x *TxIDConfirmationsPair) Reset() {
|
||||
@ -6263,7 +6263,7 @@ func (x *TxIDConfirmationsPair) GetTxID() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *TxIDConfirmationsPair) GetConfirmations() int32 {
|
||||
func (x *TxIDConfirmationsPair) GetConfirmations() int64 {
|
||||
if x != nil {
|
||||
return x.Confirmations
|
||||
}
|
||||
@ -6275,8 +6275,8 @@ type TxIDBlockHashPair struct {
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
TxID string `protobuf:"bytes,1,opt,name=txID,proto3" json:"txID,omitempty"`
|
||||
BlockHash string `protobuf:"bytes,2,opt,name=blockHash,proto3" json:"blockHash,omitempty"`
|
||||
TxID string `protobuf:"bytes,1,opt,name=txID,proto3" json:"txID,omitempty"`
|
||||
Hash string `protobuf:"bytes,2,opt,name=Hash,proto3" json:"Hash,omitempty"`
|
||||
}
|
||||
|
||||
func (x *TxIDBlockHashPair) Reset() {
|
||||
@ -6318,9 +6318,9 @@ func (x *TxIDBlockHashPair) GetTxID() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *TxIDBlockHashPair) GetBlockHash() string {
|
||||
func (x *TxIDBlockHashPair) GetHash() string {
|
||||
if x != nil {
|
||||
return x.BlockHash
|
||||
return x.Hash
|
||||
}
|
||||
return ""
|
||||
}
|
||||
@ -6385,7 +6385,7 @@ type GetAcceptingBlockHashesOfTxsRequestMessage struct {
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
TxID []string `protobuf:"bytes,1,rep,name=txID,proto3" json:"txID,omitempty"`
|
||||
TxIDs []string `protobuf:"bytes,1,rep,name=txIDs,proto3" json:"txIDs,omitempty"`
|
||||
}
|
||||
|
||||
func (x *GetAcceptingBlockHashesOfTxsRequestMessage) Reset() {
|
||||
@ -6420,9 +6420,9 @@ func (*GetAcceptingBlockHashesOfTxsRequestMessage) Descriptor() ([]byte, []int)
|
||||
return file_rpc_proto_rawDescGZIP(), []int{113}
|
||||
}
|
||||
|
||||
func (x *GetAcceptingBlockHashesOfTxsRequestMessage) GetTxID() []string {
|
||||
func (x *GetAcceptingBlockHashesOfTxsRequestMessage) GetTxIDs() []string {
|
||||
if x != nil {
|
||||
return x.TxID
|
||||
return x.TxIDs
|
||||
}
|
||||
return nil
|
||||
}
|
||||
@ -6432,8 +6432,8 @@ type GetAcceptingBlockHashesOfTxsResponseMessage struct {
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
TxIDBlockHashPair []*TxIDBlockHashPair `protobuf:"bytes,1,rep,name=txIDBlockHashPair,proto3" json:"txIDBlockHashPair,omitempty"`
|
||||
Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"`
|
||||
TxIDBlockHashPairs []*TxIDBlockHashPair `protobuf:"bytes,1,rep,name=txIDBlockHashPairs,proto3" json:"txIDBlockHashPairs,omitempty"`
|
||||
Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"`
|
||||
}
|
||||
|
||||
func (x *GetAcceptingBlockHashesOfTxsResponseMessage) Reset() {
|
||||
@ -6468,9 +6468,9 @@ func (*GetAcceptingBlockHashesOfTxsResponseMessage) Descriptor() ([]byte, []int)
|
||||
return file_rpc_proto_rawDescGZIP(), []int{114}
|
||||
}
|
||||
|
||||
func (x *GetAcceptingBlockHashesOfTxsResponseMessage) GetTxIDBlockHashPair() []*TxIDBlockHashPair {
|
||||
func (x *GetAcceptingBlockHashesOfTxsResponseMessage) GetTxIDBlockHashPairs() []*TxIDBlockHashPair {
|
||||
if x != nil {
|
||||
return x.TxIDBlockHashPair
|
||||
return x.TxIDBlockHashPairs
|
||||
}
|
||||
return nil
|
||||
}
|
||||
@ -6589,7 +6589,7 @@ type GetAcceptingBlocksOfTxsRequestMessage struct {
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
TxID []string `protobuf:"bytes,1,rep,name=txID,proto3" json:"txID,omitempty"`
|
||||
TxIDs []string `protobuf:"bytes,1,rep,name=txIDs,proto3" json:"txIDs,omitempty"`
|
||||
}
|
||||
|
||||
func (x *GetAcceptingBlocksOfTxsRequestMessage) Reset() {
|
||||
@ -6624,9 +6624,9 @@ func (*GetAcceptingBlocksOfTxsRequestMessage) Descriptor() ([]byte, []int) {
|
||||
return file_rpc_proto_rawDescGZIP(), []int{117}
|
||||
}
|
||||
|
||||
func (x *GetAcceptingBlocksOfTxsRequestMessage) GetTxID() []string {
|
||||
func (x *GetAcceptingBlocksOfTxsRequestMessage) GetTxIDs() []string {
|
||||
if x != nil {
|
||||
return x.TxID
|
||||
return x.TxIDs
|
||||
}
|
||||
return nil
|
||||
}
|
||||
@ -6636,8 +6636,8 @@ type GetAcceptingBlocksOfTxsResponseMessage struct {
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
TxIDBlockPair []*TxIDBlockPair `protobuf:"bytes,1,rep,name=txIDBlockPair,proto3" json:"txIDBlockPair,omitempty"`
|
||||
Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"`
|
||||
TxIDBlockPairs []*TxIDBlockPair `protobuf:"bytes,1,rep,name=txIDBlockPairs,proto3" json:"txIDBlockPairs,omitempty"`
|
||||
Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"`
|
||||
}
|
||||
|
||||
func (x *GetAcceptingBlocksOfTxsResponseMessage) Reset() {
|
||||
@ -6672,9 +6672,9 @@ func (*GetAcceptingBlocksOfTxsResponseMessage) Descriptor() ([]byte, []int) {
|
||||
return file_rpc_proto_rawDescGZIP(), []int{118}
|
||||
}
|
||||
|
||||
func (x *GetAcceptingBlocksOfTxsResponseMessage) GetTxIDBlockPair() []*TxIDBlockPair {
|
||||
func (x *GetAcceptingBlocksOfTxsResponseMessage) GetTxIDBlockPairs() []*TxIDBlockPair {
|
||||
if x != nil {
|
||||
return x.TxIDBlockPair
|
||||
return x.TxIDBlockPairs
|
||||
}
|
||||
return nil
|
||||
}
|
||||
@ -6738,8 +6738,8 @@ type GetIncludingBlockHashOfTxResponseMessage struct {
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
BlockHash string `protobuf:"bytes,1,opt,name=blockHash,proto3" json:"blockHash,omitempty"`
|
||||
Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"`
|
||||
Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
|
||||
Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"`
|
||||
}
|
||||
|
||||
func (x *GetIncludingBlockHashOfTxResponseMessage) Reset() {
|
||||
@ -6774,9 +6774,9 @@ func (*GetIncludingBlockHashOfTxResponseMessage) Descriptor() ([]byte, []int) {
|
||||
return file_rpc_proto_rawDescGZIP(), []int{120}
|
||||
}
|
||||
|
||||
func (x *GetIncludingBlockHashOfTxResponseMessage) GetBlockHash() string {
|
||||
func (x *GetIncludingBlockHashOfTxResponseMessage) GetHash() string {
|
||||
if x != nil {
|
||||
return x.BlockHash
|
||||
return x.Hash
|
||||
}
|
||||
return ""
|
||||
}
|
||||
@ -6895,7 +6895,7 @@ type GetTxsRequestMessage struct {
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
TxID []string `protobuf:"bytes,1,rep,name=txID,proto3" json:"txID,omitempty"`
|
||||
TxIDs []string `protobuf:"bytes,1,rep,name=txIDs,proto3" json:"txIDs,omitempty"`
|
||||
}
|
||||
|
||||
func (x *GetTxsRequestMessage) Reset() {
|
||||
@ -6930,9 +6930,9 @@ func (*GetTxsRequestMessage) Descriptor() ([]byte, []int) {
|
||||
return file_rpc_proto_rawDescGZIP(), []int{123}
|
||||
}
|
||||
|
||||
func (x *GetTxsRequestMessage) GetTxID() []string {
|
||||
func (x *GetTxsRequestMessage) GetTxIDs() []string {
|
||||
if x != nil {
|
||||
return x.TxID
|
||||
return x.TxIDs
|
||||
}
|
||||
return nil
|
||||
}
|
||||
@ -7099,7 +7099,7 @@ type GetTxsConfirmationsRequestMessage struct {
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
TxID []string `protobuf:"bytes,1,rep,name=txID,proto3" json:"txID,omitempty"`
|
||||
TxIDs []string `protobuf:"bytes,1,rep,name=txIDs,proto3" json:"txIDs,omitempty"`
|
||||
}
|
||||
|
||||
func (x *GetTxsConfirmationsRequestMessage) Reset() {
|
||||
@ -7134,9 +7134,9 @@ func (*GetTxsConfirmationsRequestMessage) Descriptor() ([]byte, []int) {
|
||||
return file_rpc_proto_rawDescGZIP(), []int{127}
|
||||
}
|
||||
|
||||
func (x *GetTxsConfirmationsRequestMessage) GetTxID() []string {
|
||||
func (x *GetTxsConfirmationsRequestMessage) GetTxIDs() []string {
|
||||
if x != nil {
|
||||
return x.TxID
|
||||
return x.TxIDs
|
||||
}
|
||||
return nil
|
||||
}
|
||||
@ -7146,8 +7146,8 @@ type GetTxsConfirmationsResponseMessage struct {
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
TxIDConfirmations []*TxIDConfirmationsPair `protobuf:"bytes,1,rep,name=txIDConfirmations,proto3" json:"txIDConfirmations,omitempty"`
|
||||
Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"`
|
||||
TxIDConfirmationsPairs []*TxIDConfirmationsPair `protobuf:"bytes,1,rep,name=txIDConfirmationsPairs,proto3" json:"txIDConfirmationsPairs,omitempty"`
|
||||
Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"`
|
||||
}
|
||||
|
||||
func (x *GetTxsConfirmationsResponseMessage) Reset() {
|
||||
@ -7182,9 +7182,9 @@ func (*GetTxsConfirmationsResponseMessage) Descriptor() ([]byte, []int) {
|
||||
return file_rpc_proto_rawDescGZIP(), []int{128}
|
||||
}
|
||||
|
||||
func (x *GetTxsConfirmationsResponseMessage) GetTxIDConfirmations() []*TxIDConfirmationsPair {
|
||||
func (x *GetTxsConfirmationsResponseMessage) GetTxIDConfirmationsPairs() []*TxIDConfirmationsPair {
|
||||
if x != nil {
|
||||
return x.TxIDConfirmations
|
||||
return x.TxIDConfirmationsPairs
|
||||
}
|
||||
return nil
|
||||
}
|
||||
@ -8014,118 +8014,118 @@ var file_rpc_proto_rawDesc = []byte{
|
||||
0x69, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x50, 0x61, 0x69, 0x72, 0x12, 0x12, 0x0a,
|
||||
0x04, 0x74, 0x78, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x78, 0x49,
|
||||
0x44, 0x12, 0x24, 0x0a, 0x0d, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f,
|
||||
0x6e, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0d, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x72,
|
||||
0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x45, 0x0a, 0x11, 0x54, 0x78, 0x49, 0x44, 0x42,
|
||||
0x6e, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x72,
|
||||
0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x3b, 0x0a, 0x11, 0x54, 0x78, 0x49, 0x44, 0x42,
|
||||
0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x61, 0x73, 0x68, 0x50, 0x61, 0x69, 0x72, 0x12, 0x12, 0x0a, 0x04,
|
||||
0x74, 0x78, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x78, 0x49, 0x44,
|
||||
0x12, 0x1c, 0x0a, 0x09, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x61, 0x73, 0x68, 0x18, 0x02, 0x20,
|
||||
0x01, 0x28, 0x09, 0x52, 0x09, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x61, 0x73, 0x68, 0x22, 0x4e,
|
||||
0x0a, 0x0d, 0x54, 0x78, 0x49, 0x44, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x50, 0x61, 0x69, 0x72, 0x12,
|
||||
0x12, 0x0a, 0x04, 0x74, 0x78, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74,
|
||||
0x78, 0x49, 0x44, 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, 0x22, 0x40,
|
||||
0x0a, 0x2a, 0x47, 0x65, 0x74, 0x41, 0x63, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6e, 0x67, 0x42, 0x6c,
|
||||
0x6f, 0x63, 0x6b, 0x48, 0x61, 0x73, 0x68, 0x65, 0x73, 0x4f, 0x66, 0x54, 0x78, 0x73, 0x52, 0x65,
|
||||
0x71, 0x75, 0x65, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x12, 0x0a, 0x04,
|
||||
0x74, 0x78, 0x49, 0x44, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x74, 0x78, 0x49, 0x44,
|
||||
0x22, 0xa5, 0x01, 0x0a, 0x2b, 0x47, 0x65, 0x74, 0x41, 0x63, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6e,
|
||||
0x67, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x61, 0x73, 0x68, 0x65, 0x73, 0x4f, 0x66, 0x54, 0x78,
|
||||
0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
|
||||
0x12, 0x4a, 0x0a, 0x11, 0x74, 0x78, 0x49, 0x44, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x61, 0x73,
|
||||
0x68, 0x50, 0x61, 0x69, 0x72, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x70, 0x72,
|
||||
0x6f, 0x74, 0x6f, 0x77, 0x69, 0x72, 0x65, 0x2e, 0x54, 0x78, 0x49, 0x44, 0x42, 0x6c, 0x6f, 0x63,
|
||||
0x6b, 0x48, 0x61, 0x73, 0x68, 0x50, 0x61, 0x69, 0x72, 0x52, 0x11, 0x74, 0x78, 0x49, 0x44, 0x42,
|
||||
0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x61, 0x73, 0x68, 0x50, 0x61, 0x69, 0x72, 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, 0x39, 0x0a, 0x23, 0x47, 0x65, 0x74, 0x41,
|
||||
0x63, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6e, 0x67, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x4f, 0x66, 0x54,
|
||||
0x78, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12,
|
||||
0x12, 0x0a, 0x04, 0x74, 0x78, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74,
|
||||
0x78, 0x49, 0x44, 0x22, 0x7d, 0x0a, 0x24, 0x47, 0x65, 0x74, 0x41, 0x63, 0x63, 0x65, 0x70, 0x74,
|
||||
0x69, 0x6e, 0x67, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x4f, 0x66, 0x54, 0x78, 0x52, 0x65, 0x73, 0x70,
|
||||
0x6f, 0x6e, 0x73, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x29, 0x0a, 0x05, 0x62,
|
||||
0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x01, 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, 0x2a, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18,
|
||||
0x12, 0x12, 0x0a, 0x04, 0x48, 0x61, 0x73, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,
|
||||
0x48, 0x61, 0x73, 0x68, 0x22, 0x4e, 0x0a, 0x0d, 0x54, 0x78, 0x49, 0x44, 0x42, 0x6c, 0x6f, 0x63,
|
||||
0x6b, 0x50, 0x61, 0x69, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x78, 0x49, 0x44, 0x18, 0x01, 0x20,
|
||||
0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x78, 0x49, 0x44, 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, 0x22, 0x42, 0x0a, 0x2a, 0x47, 0x65, 0x74, 0x41, 0x63, 0x63, 0x65, 0x70,
|
||||
0x74, 0x69, 0x6e, 0x67, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x61, 0x73, 0x68, 0x65, 0x73, 0x4f,
|
||||
0x66, 0x54, 0x78, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61,
|
||||
0x67, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x78, 0x49, 0x44, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28,
|
||||
0x09, 0x52, 0x05, 0x74, 0x78, 0x49, 0x44, 0x73, 0x22, 0xa7, 0x01, 0x0a, 0x2b, 0x47, 0x65, 0x74,
|
||||
0x41, 0x63, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6e, 0x67, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x61,
|
||||
0x73, 0x68, 0x65, 0x73, 0x4f, 0x66, 0x54, 0x78, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
|
||||
0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x4c, 0x0a, 0x12, 0x74, 0x78, 0x49, 0x44,
|
||||
0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x61, 0x73, 0x68, 0x50, 0x61, 0x69, 0x72, 0x73, 0x18, 0x01,
|
||||
0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x77, 0x69, 0x72, 0x65,
|
||||
0x2e, 0x54, 0x78, 0x49, 0x44, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x61, 0x73, 0x68, 0x50, 0x61,
|
||||
0x69, 0x72, 0x52, 0x12, 0x74, 0x78, 0x49, 0x44, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x61, 0x73,
|
||||
0x68, 0x50, 0x61, 0x69, 0x72, 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, 0x3b, 0x0a, 0x25, 0x47, 0x65, 0x74, 0x41, 0x63, 0x63, 0x65, 0x70, 0x74, 0x69,
|
||||
0x6e, 0x67, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x4f, 0x66, 0x54, 0x78, 0x73, 0x52, 0x65, 0x71,
|
||||
0x75, 0x65, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74,
|
||||
0x78, 0x49, 0x44, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x74, 0x78, 0x49, 0x44, 0x22,
|
||||
0x94, 0x01, 0x0a, 0x26, 0x47, 0x65, 0x74, 0x41, 0x63, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6e, 0x67,
|
||||
0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x4f, 0x66, 0x54, 0x78, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f,
|
||||
0x6e, 0x73, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x3e, 0x0a, 0x0d, 0x74, 0x78,
|
||||
0x49, 0x44, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x50, 0x61, 0x69, 0x72, 0x18, 0x01, 0x20, 0x03, 0x28,
|
||||
0x0b, 0x32, 0x18, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x77, 0x69, 0x72, 0x65, 0x2e, 0x54, 0x78,
|
||||
0x49, 0x44, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x50, 0x61, 0x69, 0x72, 0x52, 0x0d, 0x74, 0x78, 0x49,
|
||||
0x44, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x50, 0x61, 0x69, 0x72, 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, 0x3d, 0x0a, 0x27, 0x47, 0x65, 0x74, 0x49, 0x6e, 0x63,
|
||||
0x6c, 0x75, 0x64, 0x69, 0x6e, 0x67, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x61, 0x73, 0x68, 0x4f,
|
||||
0x66, 0x54, 0x78, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67,
|
||||
0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x78, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
|
||||
0x04, 0x74, 0x78, 0x49, 0x44, 0x22, 0x74, 0x0a, 0x28, 0x47, 0x65, 0x74, 0x49, 0x6e, 0x63, 0x6c,
|
||||
0x75, 0x64, 0x69, 0x6e, 0x67, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x61, 0x73, 0x68, 0x4f, 0x66,
|
||||
0x54, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67,
|
||||
0x65, 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,
|
||||
0x6f, 0x72, 0x22, 0x39, 0x0a, 0x23, 0x47, 0x65, 0x74, 0x41, 0x63, 0x63, 0x65, 0x70, 0x74, 0x69,
|
||||
0x6e, 0x67, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x4f, 0x66, 0x54, 0x78, 0x52, 0x65, 0x71, 0x75, 0x65,
|
||||
0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x78, 0x49,
|
||||
0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x78, 0x49, 0x44, 0x22, 0x7d, 0x0a,
|
||||
0x24, 0x47, 0x65, 0x74, 0x41, 0x63, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6e, 0x67, 0x42, 0x6c, 0x6f,
|
||||
0x63, 0x6b, 0x4f, 0x66, 0x54, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x4d, 0x65,
|
||||
0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x29, 0x0a, 0x05, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x01,
|
||||
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, 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, 0x3d, 0x0a, 0x25,
|
||||
0x47, 0x65, 0x74, 0x41, 0x63, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6e, 0x67, 0x42, 0x6c, 0x6f, 0x63,
|
||||
0x6b, 0x73, 0x4f, 0x66, 0x54, 0x78, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4d, 0x65,
|
||||
0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x78, 0x49, 0x44, 0x73, 0x18, 0x01,
|
||||
0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x74, 0x78, 0x49, 0x44, 0x73, 0x22, 0x96, 0x01, 0x0a, 0x26,
|
||||
0x47, 0x65, 0x74, 0x41, 0x63, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6e, 0x67, 0x42, 0x6c, 0x6f, 0x63,
|
||||
0x6b, 0x73, 0x4f, 0x66, 0x54, 0x78, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x4d,
|
||||
0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x40, 0x0a, 0x0e, 0x74, 0x78, 0x49, 0x44, 0x42, 0x6c,
|
||||
0x6f, 0x63, 0x6b, 0x50, 0x61, 0x69, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18,
|
||||
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x77, 0x69, 0x72, 0x65, 0x2e, 0x54, 0x78, 0x49, 0x44, 0x42,
|
||||
0x6c, 0x6f, 0x63, 0x6b, 0x50, 0x61, 0x69, 0x72, 0x52, 0x0e, 0x74, 0x78, 0x49, 0x44, 0x42, 0x6c,
|
||||
0x6f, 0x63, 0x6b, 0x50, 0x61, 0x69, 0x72, 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, 0x3d, 0x0a, 0x27, 0x47, 0x65, 0x74, 0x49, 0x6e, 0x63, 0x6c, 0x75,
|
||||
0x64, 0x69, 0x6e, 0x67, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x61, 0x73, 0x68, 0x4f, 0x66, 0x54,
|
||||
0x78, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12,
|
||||
0x12, 0x0a, 0x04, 0x74, 0x78, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74,
|
||||
0x78, 0x49, 0x44, 0x22, 0x6a, 0x0a, 0x28, 0x47, 0x65, 0x74, 0x49, 0x6e, 0x63, 0x6c, 0x75, 0x64,
|
||||
0x69, 0x6e, 0x67, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x61, 0x73, 0x68, 0x4f, 0x66, 0x54, 0x78,
|
||||
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12,
|
||||
0x12, 0x0a, 0x04, 0x68, 0x61, 0x73, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x68,
|
||||
0x61, 0x73, 0x68, 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,
|
||||
0x29, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x54, 0x78, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4d,
|
||||
0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x78, 0x49, 0x44, 0x18, 0x01,
|
||||
0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x78, 0x49, 0x44, 0x22, 0x7f, 0x0a, 0x14, 0x47, 0x65,
|
||||
0x74, 0x54, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61,
|
||||
0x67, 0x65, 0x12, 0x3b, 0x0a, 0x0b, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f,
|
||||
0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x77,
|
||||
0x69, 0x72, 0x65, 0x2e, 0x52, 0x70, 0x63, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69,
|
||||
0x6f, 0x6e, 0x52, 0x0b, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 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, 0x29, 0x0a, 0x13, 0x47,
|
||||
0x65, 0x74, 0x54, 0x78, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61,
|
||||
0x72, 0x72, 0x6f, 0x72, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x2c, 0x0a, 0x14, 0x47,
|
||||
0x65, 0x74, 0x54, 0x78, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73,
|
||||
0x61, 0x67, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x78, 0x49, 0x44, 0x73, 0x18, 0x01, 0x20, 0x03,
|
||||
0x28, 0x09, 0x52, 0x05, 0x74, 0x78, 0x49, 0x44, 0x73, 0x22, 0x82, 0x01, 0x0a, 0x15, 0x47, 0x65,
|
||||
0x74, 0x54, 0x78, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x4d, 0x65, 0x73, 0x73,
|
||||
0x61, 0x67, 0x65, 0x12, 0x3d, 0x0a, 0x0c, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69,
|
||||
0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x72, 0x6f, 0x74,
|
||||
0x6f, 0x77, 0x69, 0x72, 0x65, 0x2e, 0x52, 0x70, 0x63, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63,
|
||||
0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0c, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f,
|
||||
0x6e, 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, 0x36,
|
||||
0x0a, 0x20, 0x47, 0x65, 0x74, 0x54, 0x78, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x61, 0x74,
|
||||
0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61,
|
||||
0x67, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x78, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
|
||||
0x52, 0x04, 0x74, 0x78, 0x49, 0x44, 0x22, 0x7f, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x54, 0x78, 0x52,
|
||||
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x3b,
|
||||
0x0a, 0x0b, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20,
|
||||
0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x77, 0x69, 0x72, 0x65, 0x2e,
|
||||
0x52, 0x70, 0x63, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0b,
|
||||
0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 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, 0x2a, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x54, 0x78,
|
||||
0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12,
|
||||
0x12, 0x0a, 0x04, 0x74, 0x78, 0x49, 0x44, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x74,
|
||||
0x78, 0x49, 0x44, 0x22, 0x82, 0x01, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x54, 0x78, 0x73, 0x52, 0x65,
|
||||
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x3d, 0x0a,
|
||||
0x0c, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20,
|
||||
0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x77, 0x69, 0x72, 0x65, 0x2e,
|
||||
0x52, 0x70, 0x63, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0c,
|
||||
0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 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, 0x36, 0x0a, 0x20, 0x47, 0x65, 0x74, 0x54,
|
||||
0x78, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65,
|
||||
0x71, 0x75, 0x65, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x12, 0x0a, 0x04,
|
||||
0x74, 0x78, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x78, 0x49, 0x44,
|
||||
0x22, 0x75, 0x0a, 0x21, 0x47, 0x65, 0x74, 0x54, 0x78, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d,
|
||||
0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x4d, 0x65,
|
||||
0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x24, 0x0a, 0x0d, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d,
|
||||
0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x63, 0x6f,
|
||||
0x6e, 0x66, 0x69, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 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, 0x37, 0x0a, 0x21, 0x47, 0x65, 0x74, 0x54, 0x78,
|
||||
0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65,
|
||||
0x71, 0x75, 0x65, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x12, 0x0a, 0x04,
|
||||
0x74, 0x78, 0x49, 0x44, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x74, 0x78, 0x49, 0x44,
|
||||
0x22, 0xa0, 0x01, 0x0a, 0x22, 0x47, 0x65, 0x74, 0x54, 0x78, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69,
|
||||
0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
|
||||
0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x4e, 0x0a, 0x11, 0x74, 0x78, 0x49, 0x44, 0x43,
|
||||
0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03,
|
||||
0x28, 0x0b, 0x32, 0x20, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x77, 0x69, 0x72, 0x65, 0x2e, 0x54,
|
||||
0x78, 0x49, 0x44, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73,
|
||||
0x50, 0x61, 0x69, 0x72, 0x52, 0x11, 0x74, 0x78, 0x49, 0x44, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72,
|
||||
0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 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, 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,
|
||||
0x52, 0x04, 0x74, 0x78, 0x49, 0x44, 0x22, 0x75, 0x0a, 0x21, 0x47, 0x65, 0x74, 0x54, 0x78, 0x43,
|
||||
0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70,
|
||||
0x6f, 0x6e, 0x73, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x24, 0x0a, 0x0d, 0x63,
|
||||
0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x01,
|
||||
0x28, 0x03, 0x52, 0x0d, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e,
|
||||
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, 0x39, 0x0a,
|
||||
0x21, 0x47, 0x65, 0x74, 0x54, 0x78, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x61, 0x74,
|
||||
0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61,
|
||||
0x67, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x78, 0x49, 0x44, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28,
|
||||
0x09, 0x52, 0x05, 0x74, 0x78, 0x49, 0x44, 0x73, 0x22, 0xaa, 0x01, 0x0a, 0x22, 0x47, 0x65, 0x74,
|
||||
0x54, 0x78, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73,
|
||||
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12,
|
||||
0x58, 0x0a, 0x16, 0x74, 0x78, 0x49, 0x44, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x61, 0x74,
|
||||
0x69, 0x6f, 0x6e, 0x73, 0x50, 0x61, 0x69, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32,
|
||||
0x20, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x77, 0x69, 0x72, 0x65, 0x2e, 0x54, 0x78, 0x49, 0x44,
|
||||
0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x50, 0x61, 0x69,
|
||||
0x72, 0x52, 0x16, 0x74, 0x78, 0x49, 0x44, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x61, 0x74,
|
||||
0x69, 0x6f, 0x6e, 0x73, 0x50, 0x61, 0x69, 0x72, 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, 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 (
|
||||
@ -8353,11 +8353,11 @@ var file_rpc_proto_depIdxs = []int32{
|
||||
1, // 75: protowire.GetMempoolEntriesByAddressesResponseMessage.error:type_name -> protowire.RPCError
|
||||
1, // 76: protowire.GetCoinSupplyResponseMessage.error:type_name -> protowire.RPCError
|
||||
2, // 77: protowire.TxIDBlockPair.block:type_name -> protowire.RpcBlock
|
||||
112, // 78: protowire.GetAcceptingBlockHashesOfTxsResponseMessage.txIDBlockHashPair:type_name -> protowire.TxIDBlockHashPair
|
||||
112, // 78: protowire.GetAcceptingBlockHashesOfTxsResponseMessage.txIDBlockHashPairs:type_name -> protowire.TxIDBlockHashPair
|
||||
1, // 79: protowire.GetAcceptingBlockHashesOfTxsResponseMessage.error:type_name -> protowire.RPCError
|
||||
2, // 80: protowire.GetAcceptingBlockOfTxResponseMessage.block:type_name -> protowire.RpcBlock
|
||||
1, // 81: protowire.GetAcceptingBlockOfTxResponseMessage.error:type_name -> protowire.RPCError
|
||||
113, // 82: protowire.GetAcceptingBlocksOfTxsResponseMessage.txIDBlockPair:type_name -> protowire.TxIDBlockPair
|
||||
113, // 82: protowire.GetAcceptingBlocksOfTxsResponseMessage.txIDBlockPairs:type_name -> protowire.TxIDBlockPair
|
||||
1, // 83: protowire.GetAcceptingBlocksOfTxsResponseMessage.error:type_name -> protowire.RPCError
|
||||
1, // 84: protowire.GetIncludingBlockHashOfTxResponseMessage.error:type_name -> protowire.RPCError
|
||||
6, // 85: protowire.GetTxResponseMessage.transaction:type_name -> protowire.RpcTransaction
|
||||
@ -8365,7 +8365,7 @@ var file_rpc_proto_depIdxs = []int32{
|
||||
6, // 87: protowire.GetTxsResponseMessage.transactions:type_name -> protowire.RpcTransaction
|
||||
1, // 88: protowire.GetTxsResponseMessage.error:type_name -> protowire.RPCError
|
||||
1, // 89: protowire.GetTxConfirmationsResponseMessage.error:type_name -> protowire.RPCError
|
||||
111, // 90: protowire.GetTxsConfirmationsResponseMessage.txIDConfirmations:type_name -> protowire.TxIDConfirmationsPair
|
||||
111, // 90: protowire.GetTxsConfirmationsResponseMessage.txIDConfirmationsPairs:type_name -> protowire.TxIDConfirmationsPair
|
||||
1, // 91: protowire.GetTxsConfirmationsResponseMessage.error:type_name -> protowire.RPCError
|
||||
92, // [92:92] is the sub-list for method output_type
|
||||
92, // [92:92] is the sub-list for method input_type
|
||||
|
||||
@ -736,12 +736,12 @@ message GetCoinSupplyResponseMessage{
|
||||
|
||||
message TxIDConfirmationsPair {
|
||||
string txID = 1;
|
||||
int32 confirmations = 2;
|
||||
int64 confirmations = 2;
|
||||
}
|
||||
|
||||
message TxIDBlockHashPair {
|
||||
string txID = 1;
|
||||
string blockHash = 2;
|
||||
string Hash = 2;
|
||||
}
|
||||
|
||||
message TxIDBlockPair {
|
||||
@ -750,11 +750,11 @@ message TxIDBlockPair {
|
||||
}
|
||||
|
||||
message GetAcceptingBlockHashesOfTxsRequestMessage{
|
||||
repeated string txID = 1;
|
||||
repeated string txIDs = 1;
|
||||
}
|
||||
|
||||
message GetAcceptingBlockHashesOfTxsResponseMessage{
|
||||
repeated TxIDBlockHashPair txIDBlockHashPair = 1;
|
||||
repeated TxIDBlockHashPair txIDBlockHashPairs = 1;
|
||||
|
||||
RPCError error = 1000;
|
||||
}
|
||||
@ -770,11 +770,11 @@ message GetAcceptingBlockOfTxResponseMessage{
|
||||
}
|
||||
|
||||
message GetAcceptingBlocksOfTxsRequestMessage{
|
||||
repeated string txID = 1;
|
||||
repeated string txIDs = 1;
|
||||
}
|
||||
|
||||
message GetAcceptingBlocksOfTxsResponseMessage{
|
||||
repeated TxIDBlockPair txIDBlockPair = 1;
|
||||
repeated TxIDBlockPair txIDBlockPairs = 1;
|
||||
|
||||
RPCError error = 1000;
|
||||
}
|
||||
@ -784,7 +784,7 @@ message GetIncludingBlockHashOfTxRequestMessage{
|
||||
}
|
||||
|
||||
message GetIncludingBlockHashOfTxResponseMessage{
|
||||
string blockHash = 1;
|
||||
string hash = 1;
|
||||
|
||||
RPCError error = 1000;
|
||||
}
|
||||
@ -801,7 +801,7 @@ message GetTxResponseMessage{
|
||||
}
|
||||
|
||||
message GetTxsRequestMessage{
|
||||
repeated string txID = 1;
|
||||
repeated string txIDs = 1;
|
||||
}
|
||||
|
||||
message GetTxsResponseMessage{
|
||||
@ -822,11 +822,11 @@ message GetTxConfirmationsResponseMessage{
|
||||
}
|
||||
|
||||
message GetTxsConfirmationsRequestMessage{
|
||||
repeated string txID = 1;
|
||||
repeated string txIDs = 1;
|
||||
}
|
||||
|
||||
message GetTxsConfirmationsResponseMessage{
|
||||
repeated TxIDConfirmationsPair txIDConfirmations = 1;
|
||||
repeated TxIDConfirmationsPair txIDConfirmationsPairs = 1;
|
||||
|
||||
RPCError error = 1000;
|
||||
}
|
||||
@ -0,0 +1,81 @@
|
||||
package protowire
|
||||
|
||||
import (
|
||||
"github.com/kaspanet/kaspad/app/appmessage"
|
||||
"github.com/pkg/errors"
|
||||
)
|
||||
|
||||
func (x *KaspadMessage_GetAcceptingBlockOfTxRequest) toAppMessage() (appmessage.Message, error) {
|
||||
if x == nil {
|
||||
return nil, errors.Wrapf(errorNil, "KaspadMessage_GetAcceptingBlockOfTxRequest")
|
||||
}
|
||||
return x.GetAcceptingBlockOfTxRequest.toAppMessage()
|
||||
}
|
||||
|
||||
func (x *KaspadMessage_GetAcceptingBlockOfTxRequest) fromAppMessage(message *appmessage.GetAcceptingBlockOfTxRequestMessage) error {
|
||||
x.GetAcceptingBlockOfTxRequest = &GetAcceptingBlockOfTxRequestMessage{
|
||||
TxID: message.TxID,
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *GetAcceptingBlockOfTxRequestMessage) toAppMessage() (appmessage.Message, error) {
|
||||
if x == nil {
|
||||
return nil, errors.Wrapf(errorNil, "GetAcceptingBlockOfTxRequestMessage is nil")
|
||||
}
|
||||
return &appmessage.GetAcceptingBlockOfTxRequestMessage{
|
||||
TxID: x.TxID,
|
||||
}, nil
|
||||
}
|
||||
|
||||
func (x *KaspadMessage_GetAcceptingBlockOfTxResponse) toAppMessage() (appmessage.Message, error) {
|
||||
|
||||
if x == nil {
|
||||
return nil, errors.Wrapf(errorNil, "KaspadMessage_GetAcceptingBlockOfTxResponse is nil")
|
||||
}
|
||||
return x.GetAcceptingBlockOfTxResponse.toAppMessage()
|
||||
}
|
||||
|
||||
func (x *KaspadMessage_GetAcceptingBlockOfTxResponse) fromAppMessage(message *appmessage.GetAcceptingBlockOfTxResponseMessage) error {
|
||||
var rpcErr *RPCError
|
||||
if message.Error != nil {
|
||||
rpcErr = &RPCError{Message: message.Error.Message}
|
||||
}
|
||||
rpcBlock := &RpcBlock{}
|
||||
|
||||
err := rpcBlock.fromAppMessage(message.Block)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
x.GetAcceptingBlockOfTxResponse = &GetAcceptingBlockOfTxResponseMessage{
|
||||
Block: rpcBlock,
|
||||
|
||||
Error: rpcErr,
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *GetAcceptingBlockOfTxResponseMessage) toAppMessage() (appmessage.Message, error) {
|
||||
if x == nil {
|
||||
return nil, errors.Wrapf(errorNil, "GetAcceptingBlockOfTxResponseMessage is nil")
|
||||
}
|
||||
rpcErr, err := x.Error.toAppMessage()
|
||||
// Error is an optional field
|
||||
if err != nil && !errors.Is(err, errorNil) {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if rpcErr != nil && x.Block != nil {
|
||||
return nil, errors.New("GetAcceptingBlockOfTxResponseMessage contains both an error and a response")
|
||||
}
|
||||
|
||||
appBlock, err := x.Block.toAppMessage()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return &appmessage.GetAcceptingBlockOfTxResponseMessage{
|
||||
Block: appBlock,
|
||||
Error: rpcErr,
|
||||
}, nil
|
||||
}
|
||||
@ -0,0 +1,104 @@
|
||||
package protowire
|
||||
|
||||
import (
|
||||
"github.com/kaspanet/kaspad/app/appmessage"
|
||||
"github.com/pkg/errors"
|
||||
)
|
||||
|
||||
func (x *KaspadMessage_GetAcceptingBlockHashesOfTxsRequest) toAppMessage() (appmessage.Message, error) {
|
||||
if x == nil {
|
||||
return nil, errors.Wrapf(errorNil, "KaspadMessage_GetAcceptingBlockHashesOfTxsRequest")
|
||||
}
|
||||
return x.GetAcceptingBlockHashesOfTxsRequest.toAppMessage()
|
||||
}
|
||||
|
||||
func (x *KaspadMessage_GetAcceptingBlockHashesOfTxsRequest) fromAppMessage(message *appmessage.GetAcceptingBlockHashesOfTxsRequestMessage) error {
|
||||
x.GetAcceptingBlockHashesOfTxsRequest = &GetAcceptingBlockHashesOfTxsRequestMessage{
|
||||
TxIDs: message.TxIDs,
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *GetAcceptingBlockHashesOfTxsRequestMessage) toAppMessage() (appmessage.Message, error) {
|
||||
if x == nil {
|
||||
return nil, errors.Wrapf(errorNil, "GetAcceptingBlockHashesOfTxsRequestMessage is nil")
|
||||
}
|
||||
return &appmessage.GetAcceptingBlockHashesOfTxsRequestMessage{
|
||||
TxIDs: x.TxIDs,
|
||||
}, nil
|
||||
}
|
||||
|
||||
func (x *KaspadMessage_GetAcceptingBlockHashesOfTxsResponse) toAppMessage() (appmessage.Message, error) {
|
||||
|
||||
if x == nil {
|
||||
return nil, errors.Wrapf(errorNil, "KaspadMessage_GetAcceptingBlockHashesOfTxsResponse is nil")
|
||||
}
|
||||
return x.GetAcceptingBlockHashesOfTxsResponse.toAppMessage()
|
||||
}
|
||||
|
||||
func (x *KaspadMessage_GetAcceptingBlockHashesOfTxsResponse) fromAppMessage(message *appmessage.GetAcceptingBlockHashesOfTxsResponseMessage) error {
|
||||
var rpcErr *RPCError
|
||||
if message.Error != nil {
|
||||
rpcErr = &RPCError{Message: message.Error.Message}
|
||||
}
|
||||
|
||||
rpcTxIDBlockHashPairs := make([]*TxIDBlockHashPair, len(message.TxIDBlockHashPairs))
|
||||
for i := range rpcTxIDBlockHashPairs {
|
||||
rpcTxIDBlockHashPairs[i].fromAppMessage(message.TxIDBlockHashPairs[i])
|
||||
}
|
||||
|
||||
x.GetAcceptingBlockHashesOfTxsResponse = &GetAcceptingBlockHashesOfTxsResponseMessage{
|
||||
TxIDBlockHashPairs: rpcTxIDBlockHashPairs,
|
||||
|
||||
Error: rpcErr,
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *GetAcceptingBlockHashesOfTxsResponseMessage) toAppMessage() (appmessage.Message, error) {
|
||||
if x == nil {
|
||||
return nil, errors.Wrapf(errorNil, "GetAcceptingBlockHashesOfTxsResponseMessage is nil")
|
||||
}
|
||||
rpcErr, err := x.Error.toAppMessage()
|
||||
// Error is an optional field
|
||||
if err != nil && !errors.Is(err, errorNil) {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if rpcErr != nil && x.TxIDBlockHashPairs != nil {
|
||||
return nil, errors.New("GetAcceptingBlockHashesfTxsResponseMessage contains both an error and a response")
|
||||
}
|
||||
|
||||
appTxIDBlockHashPairs := make([]*appmessage.TxIDBlockHashPair, len(x.TxIDBlockHashPairs))
|
||||
for i := range appTxIDBlockHashPairs {
|
||||
appTxIDBlockHashPairs[i], err = x.TxIDBlockHashPairs[i].toAppMessage()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
|
||||
return &appmessage.GetAcceptingBlockHashesOfTxsResponseMessage{
|
||||
TxIDBlockHashPairs: appTxIDBlockHashPairs,
|
||||
Error: rpcErr,
|
||||
}, nil
|
||||
}
|
||||
|
||||
func (x *TxIDBlockHashPair) toAppMessage() (*appmessage.TxIDBlockHashPair, error) {
|
||||
if x == nil {
|
||||
return nil, errors.Wrapf(errorNil, "TxIDBlockHashPair is nil")
|
||||
}
|
||||
|
||||
return &appmessage.TxIDBlockHashPair{
|
||||
TxID: x.TxID,
|
||||
Hash: x.Hash,
|
||||
}, nil
|
||||
}
|
||||
|
||||
func (x *TxIDBlockHashPair) fromAppMessage(message *appmessage.TxIDBlockHashPair) {
|
||||
|
||||
*x = TxIDBlockHashPair{
|
||||
TxID: message.TxID,
|
||||
Hash: message.Hash,
|
||||
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,119 @@
|
||||
package protowire
|
||||
|
||||
import (
|
||||
"github.com/kaspanet/kaspad/app/appmessage"
|
||||
"github.com/pkg/errors"
|
||||
)
|
||||
|
||||
func (x *KaspadMessage_GetAcceptingBlocksOfTxsRequest) toAppMessage() (appmessage.Message, error) {
|
||||
if x == nil {
|
||||
return nil, errors.Wrapf(errorNil, "KaspadMessage_GetAcceptingBlocksOfTxsRequest")
|
||||
}
|
||||
return x.GetAcceptingBlocksOfTxsRequest.toAppMessage()
|
||||
}
|
||||
|
||||
func (x *KaspadMessage_GetAcceptingBlocksOfTxsRequest) fromAppMessage(message *appmessage.GetAcceptingBlocksOfTxsRequestMessage) error {
|
||||
x.GetAcceptingBlocksOfTxsRequest = &GetAcceptingBlocksOfTxsRequestMessage{
|
||||
TxIDs: message.TxIDs,
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *GetAcceptingBlocksOfTxsRequestMessage) toAppMessage() (appmessage.Message, error) {
|
||||
if x == nil {
|
||||
return nil, errors.Wrapf(errorNil, "GetAcceptingBlocksOfTxsRequestMessage is nil")
|
||||
}
|
||||
return &appmessage.GetAcceptingBlocksOfTxsRequestMessage{
|
||||
TxIDs: x.TxIDs,
|
||||
}, nil
|
||||
}
|
||||
|
||||
func (x *KaspadMessage_GetAcceptingBlocksOfTxsResponse) toAppMessage() (appmessage.Message, error) {
|
||||
|
||||
if x == nil {
|
||||
return nil, errors.Wrapf(errorNil, "KaspadMessage_GetAcceptingBlocksOfTxsResponse is nil")
|
||||
}
|
||||
return x.GetAcceptingBlocksOfTxsResponse.toAppMessage()
|
||||
}
|
||||
|
||||
func (x *KaspadMessage_GetAcceptingBlocksOfTxsResponse) fromAppMessage(message *appmessage.GetAcceptingBlocksOfTxsResponseMessage) error {
|
||||
var rpcErr *RPCError
|
||||
if message.Error != nil {
|
||||
rpcErr = &RPCError{Message: message.Error.Message}
|
||||
}
|
||||
|
||||
rpcTxIDBlockPairs := make([]*TxIDBlockPair, len(message.TxIDBlockPairs))
|
||||
for i := range rpcTxIDBlockPairs {
|
||||
err := rpcTxIDBlockPairs[i].fromAppMessage(message.TxIDBlockPairs[i])
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
x.GetAcceptingBlocksOfTxsResponse = &GetAcceptingBlocksOfTxsResponseMessage{
|
||||
TxIDBlockPairs: rpcTxIDBlockPairs,
|
||||
|
||||
Error: rpcErr,
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *GetAcceptingBlocksOfTxsResponseMessage) toAppMessage() (appmessage.Message, error) {
|
||||
if x == nil {
|
||||
return nil, errors.Wrapf(errorNil, "GetAcceptingBlocksOfTxsResponseMessage is nil")
|
||||
}
|
||||
rpcErr, err := x.Error.toAppMessage()
|
||||
// Error is an optional field
|
||||
if err != nil && !errors.Is(err, errorNil) {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if rpcErr != nil && x.TxIDBlockPairs != nil {
|
||||
return nil, errors.New("GetAcceptingBlocksOfTxsResponseMessage contains both an error and a response")
|
||||
}
|
||||
|
||||
appTxIDBlockPairs := make([]*appmessage.TxIDBlockPair, len(x.TxIDBlockPairs))
|
||||
for i := range appTxIDBlockPairs {
|
||||
appTxIDBlockPairs[i], err = x.TxIDBlockPairs[i].toAppMessage()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
|
||||
return &appmessage.GetAcceptingBlocksOfTxsResponseMessage{
|
||||
TxIDBlockPairs: appTxIDBlockPairs,
|
||||
Error: rpcErr,
|
||||
}, nil
|
||||
}
|
||||
|
||||
func (x *TxIDBlockPair) toAppMessage() (*appmessage.TxIDBlockPair, error) {
|
||||
if x == nil {
|
||||
return nil, errors.Wrapf(errorNil, "TxIDBlockPair is nil")
|
||||
}
|
||||
|
||||
appBlock, err := x.Block.toAppMessage()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return &appmessage.TxIDBlockPair{
|
||||
TxID: x.TxID,
|
||||
Block: *appBlock,
|
||||
}, nil
|
||||
}
|
||||
|
||||
func (x *TxIDBlockPair) fromAppMessage(message *appmessage.TxIDBlockPair) error {
|
||||
|
||||
rpcBlock := &RpcBlock{}
|
||||
|
||||
err := rpcBlock.fromAppMessage(&message.Block)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
*x = TxIDBlockPair{
|
||||
TxID: message.TxID,
|
||||
Block: rpcBlock,
|
||||
|
||||
}
|
||||
return nil
|
||||
}
|
||||
@ -0,0 +1,70 @@
|
||||
package protowire
|
||||
|
||||
import (
|
||||
"github.com/kaspanet/kaspad/app/appmessage"
|
||||
"github.com/pkg/errors"
|
||||
)
|
||||
|
||||
func (x *KaspadMessage_GetIncludingBlockHashOfTxRequest) toAppMessage() (appmessage.Message, error) {
|
||||
if x == nil {
|
||||
return nil, errors.Wrapf(errorNil, "KaspadMessage_GetIncludingBlockHashOfTxRequest")
|
||||
}
|
||||
return x.GetIncludingBlockHashOfTxRequest.toAppMessage()
|
||||
}
|
||||
|
||||
func (x *KaspadMessage_GetIncludingBlockHashOfTxRequest) fromAppMessage(message *appmessage.GetIncludingBlockHashOfTxRequestMessage) error {
|
||||
x.GetIncludingBlockHashOfTxRequest = &GetIncludingBlockHashOfTxRequestMessage{
|
||||
TxID: message.TxID,
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *GetIncludingBlockHashOfTxRequestMessage) toAppMessage() (appmessage.Message, error) {
|
||||
if x == nil {
|
||||
return nil, errors.Wrapf(errorNil, "GetIncludingBlockHashOfTxRequestMessage is nil")
|
||||
}
|
||||
return &appmessage.GetIncludingBlockHashOfTxRequestMessage{
|
||||
TxID: x.TxID,
|
||||
}, nil
|
||||
}
|
||||
|
||||
func (x *KaspadMessage_GetIncludingBlockHashOfTxResponse) toAppMessage() (appmessage.Message, error) {
|
||||
|
||||
if x == nil {
|
||||
return nil, errors.Wrapf(errorNil, "KaspadMessage_GetIncludingBlockHashOfTxResponse is nil")
|
||||
}
|
||||
return x.GetIncludingBlockHashOfTxResponse.toAppMessage()
|
||||
}
|
||||
|
||||
func (x *KaspadMessage_GetIncludingBlockHashOfTxResponse) fromAppMessage(message *appmessage.GetIncludingBlockHashOfTxResponseMessage) error {
|
||||
var err *RPCError
|
||||
if message.Error != nil {
|
||||
err = &RPCError{Message: message.Error.Message}
|
||||
}
|
||||
x.GetIncludingBlockHashOfTxResponse = &GetIncludingBlockHashOfTxResponseMessage{
|
||||
Hash: message.Hash,
|
||||
|
||||
Error: err,
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *GetIncludingBlockHashOfTxResponseMessage) toAppMessage() (appmessage.Message, error) {
|
||||
if x == nil {
|
||||
return nil, errors.Wrapf(errorNil, "GetIncludingBlockHashOfTxResponseMessage is nil")
|
||||
}
|
||||
rpcErr, err := x.Error.toAppMessage()
|
||||
// Error is an optional field
|
||||
if err != nil && !errors.Is(err, errorNil) {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if rpcErr != nil && x.Hash != "" {
|
||||
return nil, errors.New("GetIncludingBlockHashOfTxResponseMessage contains both an error and a response")
|
||||
}
|
||||
|
||||
return &appmessage.GetIncludingBlockHashOfTxResponseMessage{
|
||||
Hash: x.Hash,
|
||||
Error: rpcErr,
|
||||
}, nil
|
||||
}
|
||||
@ -0,0 +1,78 @@
|
||||
package protowire
|
||||
|
||||
import (
|
||||
"github.com/kaspanet/kaspad/app/appmessage"
|
||||
"github.com/pkg/errors"
|
||||
)
|
||||
|
||||
func (x *KaspadMessage_GetTxRequest) toAppMessage() (appmessage.Message, error) {
|
||||
if x == nil {
|
||||
return nil, errors.Wrapf(errorNil, "KaspadMessage_GetTxRequest")
|
||||
}
|
||||
return x.GetTxRequest.toAppMessage()
|
||||
}
|
||||
|
||||
func (x *KaspadMessage_GetTxRequest) fromAppMessage(message *appmessage.GetTxRequestMessage) error {
|
||||
x.GetTxRequest = &GetTxRequestMessage{
|
||||
TxID: message.TxID,
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *GetTxRequestMessage) toAppMessage() (appmessage.Message, error) {
|
||||
if x == nil {
|
||||
return nil, errors.Wrapf(errorNil, "GetTxRequestMessage is nil")
|
||||
}
|
||||
return &appmessage.GetTxRequestMessage{
|
||||
TxID: x.TxID,
|
||||
}, nil
|
||||
}
|
||||
|
||||
func (x *KaspadMessage_GetTxResponse) toAppMessage() (appmessage.Message, error) {
|
||||
|
||||
if x == nil {
|
||||
return nil, errors.Wrapf(errorNil, "KaspadMessage_GetTxResponse is nil")
|
||||
}
|
||||
return x.GetTxResponse.toAppMessage()
|
||||
}
|
||||
|
||||
func (x *KaspadMessage_GetTxResponse) fromAppMessage(message *appmessage.GetTxResponseMessage) error {
|
||||
var rpcErr *RPCError
|
||||
if message.Error != nil {
|
||||
rpcErr = &RPCError{Message: message.Error.Message}
|
||||
}
|
||||
rpcTransaction := &RpcTransaction{}
|
||||
rpcTransaction.fromAppMessage(message.Transaction)
|
||||
|
||||
x.GetTxResponse = &GetTxResponseMessage{
|
||||
Transaction: rpcTransaction,
|
||||
|
||||
Error: rpcErr,
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *GetTxResponseMessage) toAppMessage() (appmessage.Message, error) {
|
||||
if x == nil {
|
||||
return nil, errors.Wrapf(errorNil, "GetTxResponseMessage is nil")
|
||||
}
|
||||
rpcErr, err := x.Error.toAppMessage()
|
||||
// Error is an optional field
|
||||
if err != nil && !errors.Is(err, errorNil) {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if rpcErr != nil && x.Transaction != nil {
|
||||
return nil, errors.New("GetTxResponseMessage contains both an error and a response")
|
||||
}
|
||||
|
||||
appTransaction, err := x.Transaction.toAppMessage()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return &appmessage.GetTxResponseMessage{
|
||||
Transaction: appTransaction,
|
||||
Error: rpcErr,
|
||||
}, nil
|
||||
}
|
||||
@ -0,0 +1,71 @@
|
||||
package protowire
|
||||
|
||||
import (
|
||||
"github.com/kaspanet/kaspad/app/appmessage"
|
||||
"github.com/pkg/errors"
|
||||
)
|
||||
|
||||
func (x *KaspadMessage_GetTxConfirmationsRequest) toAppMessage() (appmessage.Message, error) {
|
||||
if x == nil {
|
||||
return nil, errors.Wrapf(errorNil, "KaspadMessage_GetTxConfirmationsRequest")
|
||||
}
|
||||
return x.GetTxConfirmationsRequest.toAppMessage()
|
||||
}
|
||||
|
||||
func (x *KaspadMessage_GetTxConfirmationsRequest) fromAppMessage(message *appmessage.GetTxConfirmationsRequestMessage) error {
|
||||
x.GetTxConfirmationsRequest = &GetTxConfirmationsRequestMessage{
|
||||
TxID: message.TxID,
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *GetTxConfirmationsRequestMessage) toAppMessage() (appmessage.Message, error) {
|
||||
if x == nil {
|
||||
return nil, errors.Wrapf(errorNil, "GetTxConfirmationsRequestMessage is nil")
|
||||
}
|
||||
return &appmessage.GetTxConfirmationsRequestMessage{
|
||||
TxID: x.TxID,
|
||||
}, nil
|
||||
}
|
||||
|
||||
func (x *KaspadMessage_GetTxConfirmationsResponse) toAppMessage() (appmessage.Message, error) {
|
||||
|
||||
if x == nil {
|
||||
return nil, errors.Wrapf(errorNil, "KaspadMessage_GetTxConfirmationsResponse is nil")
|
||||
}
|
||||
return x.GetTxConfirmationsResponse.toAppMessage()
|
||||
}
|
||||
|
||||
func (x *KaspadMessage_GetTxConfirmationsResponse) fromAppMessage(message *appmessage.GetTxConfirmationsResponseMessage) error {
|
||||
var rpcErr *RPCError
|
||||
if message.Error != nil {
|
||||
rpcErr = &RPCError{Message: message.Error.Message}
|
||||
}
|
||||
|
||||
x.GetTxConfirmationsResponse = &GetTxConfirmationsResponseMessage{
|
||||
Confirmations: message.Confirmations,
|
||||
|
||||
Error: rpcErr,
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *GetTxConfirmationsResponseMessage) toAppMessage() (appmessage.Message, error) {
|
||||
if x == nil {
|
||||
return nil, errors.Wrapf(errorNil, "GetTxConfirmationsResponseMessage is nil")
|
||||
}
|
||||
rpcErr, err := x.Error.toAppMessage()
|
||||
// Error is an optional field
|
||||
if err != nil && !errors.Is(err, errorNil) {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return &appmessage.GetTxConfirmationsResponseMessage{
|
||||
Confirmations: x.Confirmations,
|
||||
Error: rpcErr,
|
||||
}, nil
|
||||
}
|
||||
@ -0,0 +1,84 @@
|
||||
package protowire
|
||||
|
||||
import (
|
||||
"github.com/kaspanet/kaspad/app/appmessage"
|
||||
"github.com/pkg/errors"
|
||||
)
|
||||
|
||||
func (x *KaspadMessage_GetTxsRequest) toAppMessage() (appmessage.Message, error) {
|
||||
if x == nil {
|
||||
return nil, errors.Wrapf(errorNil, "KaspadMessage_GetTxsRequest")
|
||||
}
|
||||
return x.GetTxsRequest.toAppMessage()
|
||||
}
|
||||
|
||||
func (x *KaspadMessage_GetTxsRequest) fromAppMessage(message *appmessage.GetTxsRequestMessage) error {
|
||||
x.GetTxsRequest = &GetTxsRequestMessage{
|
||||
TxIDs: message.TxIDs,
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *GetTxsRequestMessage) toAppMessage() (appmessage.Message, error) {
|
||||
if x == nil {
|
||||
return nil, errors.Wrapf(errorNil, "GetTxsRequestMessage is nil")
|
||||
}
|
||||
return &appmessage.GetTxsRequestMessage{
|
||||
TxIDs: x.TxIDs,
|
||||
}, nil
|
||||
}
|
||||
|
||||
func (x *KaspadMessage_GetTxsResponse) toAppMessage() (appmessage.Message, error) {
|
||||
|
||||
if x == nil {
|
||||
return nil, errors.Wrapf(errorNil, "KaspadMessage_GetTxsResponse is nil")
|
||||
}
|
||||
return x.GetTxsResponse.toAppMessage()
|
||||
}
|
||||
|
||||
func (x *KaspadMessage_GetTxsResponse) fromAppMessage(message *appmessage.GetTxsResponseMessage) error {
|
||||
var rpcErr *RPCError
|
||||
if message.Error != nil {
|
||||
rpcErr = &RPCError{Message: message.Error.Message}
|
||||
}
|
||||
|
||||
rpcTransactions := make([]*RpcTransaction, len(message.Transactions))
|
||||
for i := range rpcTransactions {
|
||||
rpcTransactions[i].fromAppMessage(message.Transactions[i])
|
||||
}
|
||||
|
||||
x.GetTxsResponse = &GetTxsResponseMessage{
|
||||
Transactions: rpcTransactions,
|
||||
|
||||
Error: rpcErr,
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *GetTxsResponseMessage) toAppMessage() (appmessage.Message, error) {
|
||||
if x == nil {
|
||||
return nil, errors.Wrapf(errorNil, "GetTxsResponseMessage is nil")
|
||||
}
|
||||
rpcErr, err := x.Error.toAppMessage()
|
||||
// Error is an optional field
|
||||
if err != nil && !errors.Is(err, errorNil) {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if rpcErr != nil && x.Transactions != nil {
|
||||
return nil, errors.New("GetTxsResponseMessage contains both an error and a response")
|
||||
}
|
||||
|
||||
appTransactions := make([]*appmessage.RPCTransaction, len(x.Transactions))
|
||||
for i := range appTransactions {
|
||||
appTransactions[i], err = x.Transactions[i].toAppMessage()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
|
||||
return &appmessage.GetTxsResponseMessage{
|
||||
Transactions: appTransactions,
|
||||
Error: rpcErr,
|
||||
}, nil
|
||||
}
|
||||
@ -0,0 +1,103 @@
|
||||
package protowire
|
||||
|
||||
import (
|
||||
"github.com/kaspanet/kaspad/app/appmessage"
|
||||
"github.com/pkg/errors"
|
||||
)
|
||||
|
||||
func (x *KaspadMessage_GetTxsConfirmationsRequest) toAppMessage() (appmessage.Message, error) {
|
||||
if x == nil {
|
||||
return nil, errors.Wrapf(errorNil, "KaspadMessage_GetTxsConfirmationsRequest")
|
||||
}
|
||||
return x.GetTxsConfirmationsRequest.toAppMessage()
|
||||
}
|
||||
|
||||
func (x *KaspadMessage_GetTxsConfirmationsRequest) fromAppMessage(message *appmessage.GetTxsConfirmationsRequestMessage) error {
|
||||
x.GetTxsConfirmationsRequest = &GetTxsConfirmationsRequestMessage{
|
||||
TxIDs: message.TxIDs,
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *GetTxsConfirmationsRequestMessage) toAppMessage() (appmessage.Message, error) {
|
||||
if x == nil {
|
||||
return nil, errors.Wrapf(errorNil, "GetTxsConfirmationsRequestMessage is nil")
|
||||
}
|
||||
return &appmessage.GetTxsConfirmationsRequestMessage{
|
||||
TxIDs: x.TxIDs,
|
||||
}, nil
|
||||
}
|
||||
|
||||
func (x *KaspadMessage_GetTxsConfirmationsResponse) toAppMessage() (appmessage.Message, error) {
|
||||
|
||||
if x == nil {
|
||||
return nil, errors.Wrapf(errorNil, "KaspadMessage_GetTxsConfirmationsResponse is nil")
|
||||
}
|
||||
return x.GetTxsConfirmationsResponse.toAppMessage()
|
||||
}
|
||||
|
||||
func (x *KaspadMessage_GetTxsConfirmationsResponse) fromAppMessage(message *appmessage.GetTxsConfirmationsResponseMessage) error {
|
||||
var rpcErr *RPCError
|
||||
if message.Error != nil {
|
||||
rpcErr = &RPCError{Message: message.Error.Message}
|
||||
}
|
||||
|
||||
rpcTxIDConfirmationsPairs := make([]*TxIDConfirmationsPair, len(message.TxIDConfirmationsPairs))
|
||||
for i := range rpcTxIDConfirmationsPairs {
|
||||
rpcTxIDConfirmationsPairs[i].fromAppMessage(message.TxIDConfirmationsPairs[i])
|
||||
}
|
||||
|
||||
x.GetTxsConfirmationsResponse = &GetTxsConfirmationsResponseMessage{
|
||||
TxIDConfirmationsPairs: rpcTxIDConfirmationsPairs,
|
||||
|
||||
Error: rpcErr,
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *GetTxsConfirmationsResponseMessage) toAppMessage() (appmessage.Message, error) {
|
||||
if x == nil {
|
||||
return nil, errors.Wrapf(errorNil, "GetTxsConfirmationsResponseMessage is nil")
|
||||
}
|
||||
rpcErr, err := x.Error.toAppMessage()
|
||||
// Error is an optional field
|
||||
if err != nil && !errors.Is(err, errorNil) {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if rpcErr != nil && x.TxIDConfirmationsPairs != nil {
|
||||
return nil, errors.New("GetTxsConfirmationsResponseMessage contains both an error and a response")
|
||||
}
|
||||
|
||||
appTxIDConfirmationsPairs := make([]*appmessage.TxIDConfirmationsPair, len(x.TxIDConfirmationsPairs))
|
||||
for i := range appTxIDConfirmationsPairs {
|
||||
appTxIDConfirmationsPairs[i], err = x.TxIDConfirmationsPairs[i].toAppMessage()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
|
||||
return &appmessage.GetTxsConfirmationsResponseMessage{
|
||||
TxIDConfirmationsPairs: appTxIDConfirmationsPairs,
|
||||
Error: rpcErr,
|
||||
}, nil
|
||||
}
|
||||
|
||||
func (x *TxIDConfirmationsPair) toAppMessage() (*appmessage.TxIDConfirmationsPair, error) {
|
||||
if x == nil {
|
||||
return nil, errors.Wrapf(errorNil, "TxIDConfirmationsPair is nil")
|
||||
}
|
||||
|
||||
return &appmessage.TxIDConfirmationsPair{
|
||||
TxID: x.TxID,
|
||||
Confirmations: x.Confirmations,
|
||||
}, nil
|
||||
}
|
||||
|
||||
func (x *TxIDConfirmationsPair) fromAppMessage(message *appmessage.TxIDConfirmationsPair) {
|
||||
|
||||
*x = TxIDConfirmationsPair{
|
||||
TxID: message.TxID,
|
||||
Confirmations: message.Confirmations,
|
||||
}
|
||||
}
|
||||
@ -982,6 +982,118 @@ func toRPCPayload(message appmessage.Message) (isKaspadMessage_Payload, error) {
|
||||
return nil, err
|
||||
}
|
||||
return payload, nil
|
||||
case *appmessage.GetAcceptingBlockHashesOfTxsRequestMessage:
|
||||
payload := new(KaspadMessage_GetAcceptingBlockHashesOfTxsRequest)
|
||||
err := payload.fromAppMessage(message)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return payload, nil
|
||||
case *appmessage.GetAcceptingBlockHashesOfTxsResponseMessage:
|
||||
payload := new(KaspadMessage_GetAcceptingBlockHashesOfTxsResponse)
|
||||
err := payload.fromAppMessage(message)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return payload, nil
|
||||
case *appmessage.GetAcceptingBlockOfTxRequestMessage:
|
||||
payload := new(KaspadMessage_GetAcceptingBlockOfTxRequest)
|
||||
err := payload.fromAppMessage(message)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return payload, nil
|
||||
case *appmessage.GetAcceptingBlockOfTxResponseMessage:
|
||||
payload := new(KaspadMessage_GetAcceptingBlockOfTxResponse)
|
||||
err := payload.fromAppMessage(message)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return payload, nil
|
||||
case *appmessage.GetAcceptingBlocksOfTxsRequestMessage:
|
||||
payload := new(KaspadMessage_GetAcceptingBlocksOfTxsRequest)
|
||||
err := payload.fromAppMessage(message)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return payload, nil
|
||||
case *appmessage.GetAcceptingBlocksOfTxsResponseMessage:
|
||||
payload := new(KaspadMessage_GetAcceptingBlocksOfTxsResponse)
|
||||
err := payload.fromAppMessage(message)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return payload, nil
|
||||
case *appmessage.GetIncludingBlockHashOfTxRequestMessage:
|
||||
payload := new(KaspadMessage_GetIncludingBlockHashOfTxRequest)
|
||||
err := payload.fromAppMessage(message)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return payload, nil
|
||||
case *appmessage.GetIncludingBlockHashOfTxResponseMessage:
|
||||
payload := new(KaspadMessage_GetIncludingBlockHashOfTxResponse)
|
||||
err := payload.fromAppMessage(message)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return payload, nil
|
||||
case *appmessage.GetTxRequestMessage:
|
||||
payload := new(KaspadMessage_GetTxRequest)
|
||||
err := payload.fromAppMessage(message)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return payload, nil
|
||||
case *appmessage.GetTxResponseMessage:
|
||||
payload := new(KaspadMessage_GetTxResponse)
|
||||
err := payload.fromAppMessage(message)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return payload, nil
|
||||
case *appmessage.GetTxsRequestMessage:
|
||||
payload := new(KaspadMessage_GetTxsRequest)
|
||||
err := payload.fromAppMessage(message)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return payload, nil
|
||||
case *appmessage.GetTxsResponseMessage:
|
||||
payload := new(KaspadMessage_GetTxsResponse)
|
||||
err := payload.fromAppMessage(message)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return payload, nil
|
||||
case *appmessage.GetTxConfirmationsRequestMessage:
|
||||
payload := new(KaspadMessage_GetTxConfirmationsRequest)
|
||||
err := payload.fromAppMessage(message)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return payload, nil
|
||||
case *appmessage.GetTxConfirmationsResponseMessage:
|
||||
payload := new(KaspadMessage_GetTxConfirmationsResponse)
|
||||
err := payload.fromAppMessage(message)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return payload, nil
|
||||
case *appmessage.GetTxsConfirmationsRequestMessage:
|
||||
payload := new(KaspadMessage_GetTxsConfirmationsRequest)
|
||||
err := payload.fromAppMessage(message)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return payload, nil
|
||||
case *appmessage.GetTxsConfirmationsResponseMessage:
|
||||
payload := new(KaspadMessage_GetTxsConfirmationsResponse)
|
||||
err := payload.fromAppMessage(message)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return payload, nil
|
||||
default:
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user