-
Notifications
You must be signed in to change notification settings - Fork 8
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
Pruned nodes #85
base: master
Are you sure you want to change the base?
Pruned nodes #85
Conversation
Thanks very much, I'll try to test this out today. |
So on a first try, setting
Shoul start_at_hash just be public? I can try that. (A related question, while I can use the syntax I described in my "hack", in Rust code, to specify a |
I did a lot of experimentation today, eventually realizing (I think?) that there is a more fundamental problem here than I had first imagined. Even worse, the problem I discovered did not show itself when I first tried my "hack" solution and now, I cannot reproduce my original result (I don't know what changed; I'm using the same blocks database and I get the same prune height value of 781485 as I did then). In trying to debug i discovered this; this is the result of the first call to
(I deliberately hardcoded the input hash function as the one for this block) ... this block hash corresponds to height 781479, i.e. 6 blocks earlier, but I notice that "next" is I realize this description is not nearly complete enough for you to figure it out, but just recording it for now. I don't think I can make further progress (which is fine, I have no urgent need for this, I'm just curious as to what's happening). |
No, the next field may be populated later when other blocks are read. I need to create a test vector of the blocks directory when pruned so that I can work on this with a test case... |
untestested initial attempt for #84
@AdamISZ would something like this be acceptable for your use case?