-
Notifications
You must be signed in to change notification settings - Fork 0
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
Some issue with locator related commands #135
Comments
The first bug was probably fixed with commit 1b65ff1. The reason that the error appeared sometimes and sometimes not, is that it appeared always when the command "Provided start block is above the cached range. Not using nor storing locators to avoid inconsistencies." was thrown (which due to side effects threw the "red" error). This was however not intended in the case of the first "caching process" of a new address, because you should always be able to start caching an addresses from an arbitrary block on - as long as it's the first time you cache that address, or after you erase the entry in blocklocator.json. I'll look now through the rest of the post after the first of your "UPDATE"s and update the post accordingly if I find new bugs and fix them. About your first update:
As far as you reported your commands, you only seem to have cached the first 50000 blocks for the ...YUP address after you used a new blocklocator.json, and thus a block over 400000 of course would still not show up there.
If the addresses are cached separately, no entry in the blocklocator.json influences another one. Only when you cache a whole deck or a list of addresses, they will update together. Having read the update, I think the problem is simply that you haven't cached all the blocks but only the first 50000 as the standard option of this command was. If you cache the whole chain then you will benefit from the locators when doing Having thought a bit how to made some easy and useful improvements, I have made some changes to the
The Commit f375a49 |
At the moment I'm not able to check whether the locator related commands are creating duplicates in my blocklocator.json file, so the issue #117 is at the moment in standby for me.
The issue I've got while I was trying to create duplicates is the following:
I've run
token cache 539839eb5c3a3dbf1eb9b942f4a8126b58a7733efaf9d1f3ccba86904b6fcee3
,token cache 160679b53e6785664e75bc3cde5e1c41e88a9aacc8afcc92b641152f51dec959
andaddress cache mx5MdsenFDZufFuwT9ND7BKQBzS4Hy9YUP -s 445930 -b 10000
and after the blocks were processed I've got the following error message:and no entry in the blocklocator.json file was created.
Thinking my blocklocator.json file was corrupted I've renamed it and run
address cache mx5MdsenFDZufFuwT9ND7BKQBzS4Hy9YUP -s 445930 -b 1000
and got the same message while the new blocklocator.json file wasn't created.However I've renamed my blocklocator.json file back and have run
address cache mx5MdsenFDZufFuwT9ND7BKQBzS4Hy9YUP -b 100
. In this case no error message was displayed and the new entry was created in my blocklocator.json file.Thinking there was something wrong in what I've done so far I've tried to run
token cache 160679b53e6785664e75bc3cde5e1c41e88a9aacc8afcc92b641152f51dec959 -b 100
and got the following message:and nothing has changed in the blocklocator.json file.
Then I was able to successfully run
address cache mx5MdsenFDZufFuwT9ND7BKQBzS4Hy9YUP -b 1000
twice.Although there was still no transactions in the blocks I've processed.
Probably I'm doing something wrong, but I don't know what.
Right now I'm running
address cache mx5MdsenFDZufFuwT9ND7BKQBzS4Hy9YUP
, as soon I'll get the result I'll publish it here.UPDATE:
The address scanning went smoothly.
The output after the block's processing was:
I was expecting the block 454302 being mentioned in the mx5MdsenFDZufFuwT9ND7BKQBzS4Hy9YUP address section of the blocklocator.json file since the corresponding transaction bc8c92dfe02b6c9ed53c0add55a347318d7eba6a8cde138e386f1859763be6bc contains that address as receiver, but since the block is already mentioned in the mkwJijAwqXNFcEBxuC93j3Kni43wzXVuik address section I assumed the block would be being taken from there somehow.
So I've checked the time needed to get the output of the
transaction list mx5MdsenFDZufFuwT9ND7BKQBzS4Hy9YUP -x -l -f 445930 -e 455622
command (after I've runaddress cache mx5MdsenFDZufFuwT9ND7BKQBzS4Hy9YUP
as above) and compared it with the time needed to get the same output using thetransaction list mx5MdsenFDZufFuwT9ND7BKQBzS4Hy9YUP -x -f 445930 -e 455622
command and the only difference was that the former command reports to be processing blocks like thiswhile the later command wasn't reporting anything while scanning.
So this time my hypothesis was that the blocks that were not mentioned in the
address cache mx5MdsenFDZufFuwT9ND7BKQBzS4Hy9YUP
command output (as above) were not only not put into the blocklocator.json file for that address but were not retrieved from the other addresses scanning either, contrary to my previous assumption.To verify I've run
transaction list mx5MdsenFDZufFuwT9ND7BKQBzS4Hy9YUP -x -l -f 21986 -e 23192
and thentransaction list mx5MdsenFDZufFuwT9ND7BKQBzS4Hy9YUP -x -f 21986 -e 23192
and the time needed to retrieve the output was very different. The first command needed about a couple of seconds, while the latter required about a minute.So I'd say that the
address cache mx5MdsenFDZufFuwT9ND7BKQBzS4Hy9YUP
command hasn't stored all the blocks in which the address is present, but only those which were not already stored for another address (mkwJijAwqXNFcEBxuC93j3Kni43wzXVuik
in my case) which doesn't let taking advantage of the previous scanning to get quicker results while running commands that are using the locator feature._
UPDATE 09-07-2024
The same issue has the
token init
if used with the-c
flag.The text was updated successfully, but these errors were encountered: