|
|
@ -85,6 +85,7 @@ type Options struct { |
|
|
|
logPath string `json:"log_file,omitempty"` |
|
|
|
hush3ConfPath string `json:"hush3_conf,omitempty"` |
|
|
|
cacheSize int `json:"hush3_conf,omitempty"` |
|
|
|
PingEnable bool |
|
|
|
} |
|
|
|
|
|
|
|
func main() { |
|
|
@ -215,15 +216,16 @@ func main() { |
|
|
|
{ |
|
|
|
service, err := frontend.NewLwdStreamer(cache, chainName, opts.PingEnable) |
|
|
|
if err != nil { |
|
|
|
common.Log.WithFields(logrus.Fields{ |
|
|
|
log.WithFields(logrus.Fields{ |
|
|
|
"error": err, |
|
|
|
}).Fatal("couldn't create backend") |
|
|
|
} |
|
|
|
walletrpc.RegisterCompactTxStreamerServer(server, service) |
|
|
|
|
|
|
|
// Register service
|
|
|
|
walletrpc.RegisterCompactTxStreamerServer(server, service) |
|
|
|
} |
|
|
|
|
|
|
|
// Register service
|
|
|
|
walletrpc.RegisterCompactTxStreamerServer(server, service) |
|
|
|
|
|
|
|
|
|
|
|
// Initialize mempool monitor
|
|
|
|