lightninglabs / neutrino

Privacy-Preserving Bitcoin Light Client
MIT License
900 stars 183 forks source link

Seeking council: Would a PR changing error type be accepted ? #205

Closed cjdelisle closed 4 years ago

cjdelisle commented 4 years ago

I wanted to ask before making the PR itself because making it will take a bit of time. Background:

For the meat and potatos:

And now all errors String() to include the name and code (if applicable) and the stack trace.

Is it slower? Certainly yes, by how much I didn't measure, but once this is implemented, any amount of it can be optimized or turned off by simply going into the er.go file.

I want to know what people think before taking the idea any further.

Crypt-iQ commented 4 years ago

I can't speak for everyone, but I would say no. I'd prefer to not have highly invasive code changes to the codebase. Would also hurt readability for new developers. Since progress on this repo is generally slow, I'd prefer to prioritize more pressing issues.

cjdelisle commented 4 years ago

Understood, thanks. I'll close this now and if anyone else has an opinion about it then they can re-open.