-
Notifications
You must be signed in to change notification settings - Fork 39
Implement pruneblock method and test #132
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
Conversation
371f56c to
2d05895
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks pretty good man. Can you strip out all the unrelated changes then I'll do another review. Keep at it man, you're killing it.
2d05895 to
cec8afd
Compare
|
Please undraft only after you've seen to all previous review suggestions. Thanks |
cec8afd to
29760bb
Compare
|
Still has formatting changes in it. |
|
Hey mate, I just merged #117, I've been working on that for a while now. As such it has some of my latest ideas in it. In general if you want to copy something you might want to reach into the |
Alright, I am going to do that... Thank you. The work you did is massive. |
|
Please squash the commits into a single one. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good, couple more things. Stick at it!
29760bb to
a1a308e
Compare
|
I am having a hard time squashing the commits, the one having the merge after resolving conflict seems to not appear for me to squash to the original one that was there, so I want to ask if there is a way to resolve that, or If I should close this PR and open a fresh PR with the final stage of this PR? |
|
Yeah something strange has happened to the git index on this branch. I managed to get it kind of sane again using the following series of commands.
Then I was able to run |
Noted... I will try your opinion... Thank you. |
8c00f0b to
4ceedaa
Compare
This worked... Thank you :). |
|
Ugh, bro! Now you have changes from the v29 PR in there. Can you flick through your diffs before you push them to help catch these things. |
19fd0b5 to
2e76667
Compare
|
This is getting clean! One final thing, and I wouldn't normally ask but because this PR is a test run for more of the same then we should get it perfect. The integration test is not in order (should be below the |
smiles, honestly, I thought of the order too, but I thought best I hear it from you. Thank you so much for the reviews, sometimes I feel I am stressing you. I have learnt a lot from the reviews you gave me, and will make sure I do the remaining ones the right way. |
2e76667 to
bbcec24
Compare
|
No stress man, if you apply effort and learn from your mistakes then we all win. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK bbcec24
bbcec24a9065f9a2c481e20817ee97ed76c1dcc7 Implement pruneblock method and test (GideonBature)
Pull request description:
Going by the conversations with tcharding for PR #116 on implementing one method at a time for easier review: This is the first method implementation `pruneblockchain` which is a specific type that returns a standard type (numeric). Once this is approved, I’ll proceed with the remaining ones.
ACKs for top commit:
tcharding:
ACK bbcec24a9065f9a2c481e20817ee97ed76c1dcc7
Tree-SHA512: 93b6dad6db42e6dad2c0e229553cc415f1d6c8b150dfda092f243b5ff61c7f8932878ee12d330915ca19e3b482c40d546c291692dad14980d9ac92e492f3dfbd
The JSON-RPC method
pruneblockchainreturns a standard type (numeric). We would like to test this in case a later version of Core changes this behaviour.This PR adds a client function that errors if the return value is anything other than
numeric, along with an integration test that calls this function.Ref: #116