@@ -167,13 +167,16 @@ func decodeHashes(in [][]byte) ([]*chainhash.Hash, error) {
167
167
168
168
// versionServer provides RPC clients with the ability to query the RPC server
169
169
// version.
170
- type versionServer struct {}
170
+ type versionServer struct {
171
+ pb.UnimplementedVersionServiceServer
172
+ }
171
173
172
174
// walletServer provides wallet services for RPC clients.
173
175
type walletServer struct {
174
176
ready uint32 // atomic
175
177
wallet * wallet.Wallet
176
178
dialCSPPServer func (ctx context.Context , network , addr string ) (net.Conn , error )
179
+ pb.UnimplementedWalletServiceServer
177
180
}
178
181
179
182
// loaderServer provides RPC clients with the ability to load and close wallets,
@@ -182,52 +185,62 @@ type loaderServer struct {
182
185
ready uint32 // atomic
183
186
loader * loader.Loader
184
187
activeNet * netparams.Params
188
+ pb.UnimplementedWalletLoaderServiceServer
185
189
}
186
190
187
191
// seedServer provides RPC clients with the ability to generate secure random
188
192
// seeds encoded in both binary and human-readable formats, and decode any
189
193
// human-readable input back to binary.
190
- type seedServer struct {}
194
+ type seedServer struct {
195
+ pb.UnimplementedSeedServiceServer
196
+ }
191
197
192
198
// accountMixerServer provides RPC clients with the ability to start/stop the
193
199
// account mixing privacy service.
194
200
type accountMixerServer struct {
195
201
ready uint32 // atomic
196
202
loader * loader.Loader
203
+ pb.UnimplementedAccountMixerServiceServer
197
204
}
198
205
199
206
// ticketbuyerServer provides RPC clients with the ability to start/stop the
200
207
// automatic ticket buyer service.
201
208
type ticketbuyerV2Server struct {
202
209
ready uint32 // atomic
203
210
loader * loader.Loader
211
+ pb.UnimplementedTicketBuyerV2ServiceServer
204
212
}
205
213
206
214
type agendaServer struct {
207
215
ready uint32 // atomic
208
216
activeNet * chaincfg.Params
217
+ pb.UnimplementedAgendaServiceServer
209
218
}
210
219
211
220
type votingServer struct {
212
221
ready uint32 // atomic
213
222
wallet * wallet.Wallet
223
+ pb.UnimplementedVotingServiceServer
214
224
}
215
225
216
226
// messageVerificationServer provides RPC clients with the ability to verify
217
227
// that a message was signed using the private key of a particular address.
218
228
type messageVerificationServer struct {
219
229
chainParams * chaincfg.Params
230
+ pb.UnimplementedMessageVerificationServiceServer
220
231
}
221
232
222
233
type decodeMessageServer struct {
223
234
chainParams * chaincfg.Params
235
+ pb.UnimplementedDecodeMessageServiceServer
224
236
}
225
237
226
238
// networkServer provices RPC clients with the ability to perform network
227
239
// related calls that are not necessarily used or backed by the wallet itself.
228
240
type networkServer struct {
229
241
ready uint32 // atomic
230
242
wallet * wallet.Wallet
243
+ pb.UnimplementedNetworkServiceServer
231
244
}
232
245
233
246
// Singleton implementations of each service. Not all services are immediately
0 commit comments