Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor apply_successful_verification: dead code #103

Closed

Conversation

gasull
Copy link

@gasull gasull commented Apr 1, 2021

Backport of Electron-Cash#2219.

  • Makes all the code reachable but disabled
  • Renamed method for better readibility
  • Type hint that it returns bool

Related issue: Electron-Cash#2213


This change is Reviewable

- Makes all the code reachable but disabled
- Renamed method for better readibility
- Type hint that it returns `bool`
@PiRK
Copy link
Collaborator

PiRK commented Apr 1, 2021

I had a look at the history of these disabled code blocks, and it looks like they were disabled shortly after being added. I think it is unlikely that someone will ever finish the job after 3 years of inactivity. I'm wondering if we couldn't just delete them.

I feel like this suppresses a useful warning (dead code stinks) without really addressing the problem.

If we remove it, we also remove the need to maintain it.

@PiRK
Copy link
Collaborator

PiRK commented Apr 1, 2021

On the other hand, I have not really tried to figure out what this code was supposed to do, so maybe I need to have another look later.

@gasull
Copy link
Author

gasull commented Apr 2, 2021

On the other hand, I have not really tried to figure out what this code was supposed to do, so maybe I need to have another look later.

Yes, I find it hard to understand. I know it's verifying a checkpoint, whatever that means. Is this for the checkpoint that BCH added during the BCH/BSV hashwar?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants