cculianu / Fulcrum

A fast & nimble SPV Server for BCH, BTC, and LTC
Other
331 stars 76 forks source link

Anonymous Logs #156

Closed apemithrandir closed 1 year ago

apemithrandir commented 1 year ago

In ElectrumX it is possible to set ANON_LOGS=1 in the config file. This allows you to run a server without logging any IP addresses or Bitcoin addresses.

Does such a feature exist on Fulcrum? If not, would it be possible to add it?

cculianu commented 1 year ago

This is not a bad suggestion. Would it be sufficient just to hide the IP addresses from external clients but otherwise show IPs in the logs for random stuff like peers?

apemithrandir commented 1 year ago

This is not a bad suggestion. Would it be sufficient just to hide the IP addresses from external clients but otherwise show IPs in the logs for random stuff like peers?

Yeah that seems ok.

I think the main use case is for a public server to be able to say they don't log IP addresses or Bitcoin addresses for users who connect to their public server. Should be a benefit to both the person running the public server and the users of that server.

cculianu commented 1 year ago

I guess we should also blank out things like txid's that may appear in the logs as well.

cculianu commented 1 year ago

Ok, this has been added in this commit: 2bea2e2a707e3f62066b24eb9204f75a6cc23470

I will go ahead and close this issue. Expect the anon_logs option to appear in the next Fulcrum release (which I may put out soon).