btcwallet icon indicating copy to clipboard operation
btcwallet copied to clipboard

gRpc server can't startup

Open lydayudianer opened this issue 6 years ago • 1 comments

env:mac error: [CRT] GRPC: Server.RegisterService after Server.Serve for "walletrpc.WalletService"

go func() { log.Infof("Experimental RPC server listening on %s", lis.Addr()) err := rpcs.Serve(lis) log.Tracef("Finished serving expimental RPC: %v", err) }() in startRPCServers(loader) . rpcs.Serve(lis) before loader.RunAfterLoad(func(w *wallet.Wallet) in btcwallet.go

lydayudianer avatar Feb 11 '19 01:02 lydayudianer

Seems like the registration of the WalletServiceServer is done after the server is already running which results in a runtime error. There's a more elaborate issue here https://github.com/btcsuite/btcwallet/issues/670

nostdm avatar Jan 29 '20 13:01 nostdm