lightninglabs / lightning-terminal

Lightning Terminal: Your Home for Lightning Liquidity
MIT License
487 stars 82 forks source link

Ability to turn off accounts feature #623

Open niteshbalusu11 opened 10 months ago

niteshbalusu11 commented 10 months ago

Is your feature request related to a problem? Please describe. Currently there is no way to turn off accounts feature in litd that uses rpc.middleware. If you want to run another custom middleware and also run litd at the same time, it doesn't work and litd crashes saying another middleware is already registered. The only workaround to this I have found is run pool, loop and faraday separately instead of running them via litd and now it's 3 separate servers instead of one.

Describe the solution you'd like Ability to turn off accounts feature in the config file so that litd doesn't need middleware.

guggero commented 10 months ago

I agree that we should be able to turn off the feature. But out of curiosity, what error do you get exactly? Because it should be possible to register multiple middlewares. Unless you're trying to register another readonly one, there can only be one of those currently (though maybe we should also fix that in lnd?).