Remove UTXOs call

This commit is contained in:
Aditya Kulkarni
2019-09-25 11:43:54 -07:00
parent 3c5d62dbc3
commit d59757571d
8 changed files with 91 additions and 250 deletions

View File

@@ -496,85 +496,6 @@ func (m *TransparentAddressBlockFilter) GetRange() *BlockRange {
return nil
}
type Utxo struct {
Address *TransparentAddress `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
Txid []byte `protobuf:"bytes,2,opt,name=txid,proto3" json:"txid,omitempty"`
OutputIndex uint64 `protobuf:"varint,3,opt,name=outputIndex,proto3" json:"outputIndex,omitempty"`
Script []byte `protobuf:"bytes,4,opt,name=script,proto3" json:"script,omitempty"`
Value uint64 `protobuf:"varint,5,opt,name=value,proto3" json:"value,omitempty"`
Height uint64 `protobuf:"varint,6,opt,name=height,proto3" json:"height,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Utxo) Reset() { *m = Utxo{} }
func (m *Utxo) String() string { return proto.CompactTextString(m) }
func (*Utxo) ProtoMessage() {}
func (*Utxo) Descriptor() ([]byte, []int) {
return fileDescriptor_a0b84a42fa06f626, []int{10}
}
func (m *Utxo) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Utxo.Unmarshal(m, b)
}
func (m *Utxo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Utxo.Marshal(b, m, deterministic)
}
func (m *Utxo) XXX_Merge(src proto.Message) {
xxx_messageInfo_Utxo.Merge(m, src)
}
func (m *Utxo) XXX_Size() int {
return xxx_messageInfo_Utxo.Size(m)
}
func (m *Utxo) XXX_DiscardUnknown() {
xxx_messageInfo_Utxo.DiscardUnknown(m)
}
var xxx_messageInfo_Utxo proto.InternalMessageInfo
func (m *Utxo) GetAddress() *TransparentAddress {
if m != nil {
return m.Address
}
return nil
}
func (m *Utxo) GetTxid() []byte {
if m != nil {
return m.Txid
}
return nil
}
func (m *Utxo) GetOutputIndex() uint64 {
if m != nil {
return m.OutputIndex
}
return 0
}
func (m *Utxo) GetScript() []byte {
if m != nil {
return m.Script
}
return nil
}
func (m *Utxo) GetValue() uint64 {
if m != nil {
return m.Value
}
return 0
}
func (m *Utxo) GetHeight() uint64 {
if m != nil {
return m.Height
}
return 0
}
func init() {
proto.RegisterType((*BlockID)(nil), "cash.z.wallet.sdk.rpc.BlockID")
proto.RegisterType((*BlockRange)(nil), "cash.z.wallet.sdk.rpc.BlockRange")
@@ -586,57 +507,51 @@ func init() {
proto.RegisterType((*LightdInfo)(nil), "cash.z.wallet.sdk.rpc.LightdInfo")
proto.RegisterType((*TransparentAddress)(nil), "cash.z.wallet.sdk.rpc.TransparentAddress")
proto.RegisterType((*TransparentAddressBlockFilter)(nil), "cash.z.wallet.sdk.rpc.TransparentAddressBlockFilter")
proto.RegisterType((*Utxo)(nil), "cash.z.wallet.sdk.rpc.Utxo")
}
func init() { proto.RegisterFile("service.proto", fileDescriptor_a0b84a42fa06f626) }
var fileDescriptor_a0b84a42fa06f626 = []byte{
// 700 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x8c, 0x55, 0xcf, 0x6e, 0x13, 0x3f,
0x10, 0x6e, 0xda, 0xa4, 0x6d, 0x26, 0x69, 0xab, 0x9f, 0xf5, 0x2b, 0x44, 0xa1, 0x40, 0x31, 0x42,
0x82, 0xcb, 0xaa, 0x2a, 0x45, 0x70, 0xe0, 0xd2, 0x86, 0x7f, 0x95, 0x0a, 0x02, 0x27, 0x70, 0x28,
0x87, 0xca, 0xdd, 0x75, 0x93, 0xa5, 0xc9, 0x7a, 0x65, 0x3b, 0x69, 0xe0, 0xd1, 0x78, 0x01, 0xde,
0x88, 0x33, 0xf6, 0x78, 0xd3, 0x6c, 0x54, 0x96, 0xe4, 0xb6, 0x63, 0xcf, 0x7c, 0x33, 0xf3, 0xcd,
0xe7, 0x59, 0xd8, 0xd0, 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
0x6e, 0xe6, 0xde, 0xb1, 0x52, 0xd5, 0xe4, 0x60, 0x61, 0xf8, 0xdc, 0xb3, 0x5c, 0x98, 0x2a, 0x9b,
0x93, 0xe1, 0x94, 0x73, 0x1b, 0x6d, 0xa7, 0x20, 0x16, 0xd7, 0x5f, 0xb3, 0x48, 0x03, 0x53, 0x00,
0xba, 0x74, 0x54, 0x3b, 0xad, 0xfa, 0x6b, 0x7b, 0x73, 0xbe, 0x8a, 0xbf, 0xbd, 0xa7, 0x7f, 0x02,
0x00, 0x00, 0xff, 0xff, 0xb2, 0x4f, 0xf9, 0x1a, 0x35, 0x07, 0x00, 0x00,
// 609 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x54, 0x41, 0x6f, 0x13, 0x3d,
0x10, 0xcd, 0xb6, 0xd9, 0xb6, 0x99, 0xa6, 0xad, 0x3e, 0xeb, 0x2b, 0x44, 0x51, 0x81, 0x62, 0x84,
0xd4, 0xd3, 0xaa, 0x2a, 0x45, 0x70, 0xe0, 0xd2, 0x06, 0x08, 0x95, 0x0a, 0x02, 0x27, 0xa7, 0x72,
0xa8, 0xdc, 0xf5, 0x34, 0xbb, 0x34, 0xb1, 0x57, 0xb6, 0x49, 0x03, 0x3f, 0x86, 0x1f, 0xc2, 0xaf,
0x43, 0xf6, 0x6e, 0x9a, 0x8d, 0x60, 0x9b, 0xdc, 0x76, 0xec, 0x37, 0xef, 0xcd, 0x8c, 0xe7, 0x2d,
0x6c, 0x19, 0xd4, 0xe3, 0x34, 0xc6, 0x28, 0xd3, 0xca, 0x2a, 0xb2, 0x1b, 0x73, 0x93, 0x44, 0x3f,
0xa3, 0x5b, 0x3e, 0x1c, 0xa2, 0x8d, 0x8c, 0xb8, 0x89, 0x74, 0x16, 0xb7, 0x77, 0x63, 0x35, 0xca,
0x78, 0x6c, 0x2f, 0xaf, 0x95, 0x1e, 0x71, 0x6b, 0x72,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56, 0xa5, 0x97, 0xd7, 0xea, 0x61, 0xb4, 0x46,
0xbe, 0xc2, 0xd6, 0x94, 0x32, 0xb7, 0xea, 0xe2, 0xce, 0x97, 0xa4, 0x3e, 0x0c, 0xc8, 0x85, 0x9f,
0x42, 0xd9, 0x22, 0x4f, 0x2a, 0x52, 0xa7, 0xae, 0x6d, 0x3f, 0xaf, 0x00, 0xcc, 0x5b, 0x8d, 0xd6,
0xc8, 0x25, 0xec, 0x38, 0x03, 0x95, 0xc9, 0x97, 0xcb, 0xad, 0x2c, 0xbf, 0xec, 0x47, 0x5a, 0x23,
0x1a, 0x76, 0xba, 0x38, 0x5d, 0xa2, 0xfe, 0x24, 0x15, 0x86, 0x1c, 0x57, 0x55, 0x7f, 0xdf, 0xd2,
0x2d, 0xdd, 0xd2, 0x61, 0x40, 0x98, 0x7f, 0x8d, 0x92, 0x5f, 0xf7, 0x2a, 0x72, 0xbd, 0xb9, 0xdb,
0x55, 0x6f, 0x35, 0x23, 0xa0, 0xb5, 0xd3, 0xcd, 0x8b, 0x46, 0x7e, 0xad, 0xb3, 0xf8, 0x6a, 0xcd,
0xff, 0xd4, 0x5f, 0xfc, 0x09, 0x00, 0x00, 0xff, 0xff, 0x53, 0xcd, 0xf6, 0x94, 0x13, 0x06, 0x00,
0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
@@ -659,7 +574,6 @@ type CompactTxStreamerClient interface {
GetTransaction(ctx context.Context, in *TxFilter, opts ...grpc.CallOption) (*RawTransaction, error)
SendTransaction(ctx context.Context, in *RawTransaction, opts ...grpc.CallOption) (*SendResponse, error)
// t-Address support
GetUtxos(ctx context.Context, in *TransparentAddress, opts ...grpc.CallOption) (CompactTxStreamer_GetUtxosClient, error)
GetAddressTxids(ctx context.Context, in *TransparentAddressBlockFilter, opts ...grpc.CallOption) (CompactTxStreamer_GetAddressTxidsClient, error)
// Misc
GetLightdInfo(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*LightdInfo, error)
@@ -741,40 +655,8 @@ func (c *compactTxStreamerClient) SendTransaction(ctx context.Context, in *RawTr
return out, nil
}
func (c *compactTxStreamerClient) GetUtxos(ctx context.Context, in *TransparentAddress, opts ...grpc.CallOption) (CompactTxStreamer_GetUtxosClient, error) {
stream, err := c.cc.NewStream(ctx, &_CompactTxStreamer_serviceDesc.Streams[1], "/cash.z.wallet.sdk.rpc.CompactTxStreamer/GetUtxos", opts...)
if err != nil {
return nil, err
}
x := &compactTxStreamerGetUtxosClient{stream}
if err := x.ClientStream.SendMsg(in); err != nil {
return nil, err
}
if err := x.ClientStream.CloseSend(); err != nil {
return nil, err
}
return x, nil
}
type CompactTxStreamer_GetUtxosClient interface {
Recv() (*Utxo, error)
grpc.ClientStream
}
type compactTxStreamerGetUtxosClient struct {
grpc.ClientStream
}
func (x *compactTxStreamerGetUtxosClient) Recv() (*Utxo, error) {
m := new(Utxo)
if err := x.ClientStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
func (c *compactTxStreamerClient) GetAddressTxids(ctx context.Context, in *TransparentAddressBlockFilter, opts ...grpc.CallOption) (CompactTxStreamer_GetAddressTxidsClient, error) {
stream, err := c.cc.NewStream(ctx, &_CompactTxStreamer_serviceDesc.Streams[2], "/cash.z.wallet.sdk.rpc.CompactTxStreamer/GetAddressTxids", opts...)
stream, err := c.cc.NewStream(ctx, &_CompactTxStreamer_serviceDesc.Streams[1], "/cash.z.wallet.sdk.rpc.CompactTxStreamer/GetAddressTxids", opts...)
if err != nil {
return nil, err
}
@@ -824,7 +706,6 @@ type CompactTxStreamerServer interface {
GetTransaction(context.Context, *TxFilter) (*RawTransaction, error)
SendTransaction(context.Context, *RawTransaction) (*SendResponse, error)
// t-Address support
GetUtxos(*TransparentAddress, CompactTxStreamer_GetUtxosServer) error
GetAddressTxids(*TransparentAddressBlockFilter, CompactTxStreamer_GetAddressTxidsServer) error
// Misc
GetLightdInfo(context.Context, *Empty) (*LightdInfo, error)
@@ -849,9 +730,6 @@ func (*UnimplementedCompactTxStreamerServer) GetTransaction(ctx context.Context,
func (*UnimplementedCompactTxStreamerServer) SendTransaction(ctx context.Context, req *RawTransaction) (*SendResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method SendTransaction not implemented")
}
func (*UnimplementedCompactTxStreamerServer) GetUtxos(req *TransparentAddress, srv CompactTxStreamer_GetUtxosServer) error {
return status.Errorf(codes.Unimplemented, "method GetUtxos not implemented")
}
func (*UnimplementedCompactTxStreamerServer) GetAddressTxids(req *TransparentAddressBlockFilter, srv CompactTxStreamer_GetAddressTxidsServer) error {
return status.Errorf(codes.Unimplemented, "method GetAddressTxids not implemented")
}
@@ -956,27 +834,6 @@ func _CompactTxStreamer_SendTransaction_Handler(srv interface{}, ctx context.Con
return interceptor(ctx, in, info, handler)
}
func _CompactTxStreamer_GetUtxos_Handler(srv interface{}, stream grpc.ServerStream) error {
m := new(TransparentAddress)
if err := stream.RecvMsg(m); err != nil {
return err
}
return srv.(CompactTxStreamerServer).GetUtxos(m, &compactTxStreamerGetUtxosServer{stream})
}
type CompactTxStreamer_GetUtxosServer interface {
Send(*Utxo) error
grpc.ServerStream
}
type compactTxStreamerGetUtxosServer struct {
grpc.ServerStream
}
func (x *compactTxStreamerGetUtxosServer) Send(m *Utxo) error {
return x.ServerStream.SendMsg(m)
}
func _CompactTxStreamer_GetAddressTxids_Handler(srv interface{}, stream grpc.ServerStream) error {
m := new(TransparentAddressBlockFilter)
if err := stream.RecvMsg(m); err != nil {
@@ -1047,11 +904,6 @@ var _CompactTxStreamer_serviceDesc = grpc.ServiceDesc{
Handler: _CompactTxStreamer_GetBlockRange_Handler,
ServerStreams: true,
},
{
StreamName: "GetUtxos",
Handler: _CompactTxStreamer_GetUtxos_Handler,
ServerStreams: true,
},
{
StreamName: "GetAddressTxids",
Handler: _CompactTxStreamer_GetAddressTxids_Handler,

View File

@@ -61,15 +61,6 @@ message TransparentAddressBlockFilter {
BlockRange range = 2;
}
message Utxo {
TransparentAddress address = 1;
bytes txid = 2;
uint64 outputIndex = 3;
bytes script = 4;
uint64 value = 5;
uint64 height = 6;
}
service CompactTxStreamer {
// Compact Blocks
rpc GetLatestBlock(ChainSpec) returns (BlockID) {}
@@ -81,7 +72,6 @@ service CompactTxStreamer {
rpc SendTransaction(RawTransaction) returns (SendResponse) {}
// t-Address support
rpc GetUtxos(TransparentAddress) returns (stream Utxo) {}
rpc GetAddressTxids(TransparentAddressBlockFilter) returns (stream RawTransaction) {}
// Misc