mirror of
https://github.com/aljazceru/ark.git
synced 2025-12-17 20:24:21 +01:00
IsInitialized > walletLoaded & panic recovery (#266)
* isInitialized update update walletInitialized to return true is walled.db exist, add walletLoaded that check if wallet property is nil * panic handler
This commit is contained in:
@@ -9,6 +9,7 @@ import (
|
||||
// UnaryInterceptor returns the unary interceptor
|
||||
func UnaryInterceptor(svc *macaroons.Service) grpc.ServerOption {
|
||||
return grpc.UnaryInterceptor(middleware.ChainUnaryServer(
|
||||
unaryPanicRecoveryInterceptor(),
|
||||
unaryLogger,
|
||||
unaryMacaroonAuthHandler(svc),
|
||||
))
|
||||
@@ -17,6 +18,7 @@ func UnaryInterceptor(svc *macaroons.Service) grpc.ServerOption {
|
||||
// StreamInterceptor returns the stream interceptor with a logrus log
|
||||
func StreamInterceptor(svc *macaroons.Service) grpc.ServerOption {
|
||||
return grpc.StreamInterceptor(middleware.ChainStreamServer(
|
||||
streamPanicRecoveryInterceptor(),
|
||||
streamLogger,
|
||||
streamMacaroonAuthHandler(svc),
|
||||
))
|
||||
|
||||
Reference in New Issue
Block a user