Closed tjayrush closed 4 months ago
I'm sorry for the confusion, this is a separate issue to "I was getting a message yesterday that it couldn't find the block but its working fine now. must be related to how close in time it was to when i rebuilt the indexes."
This issue happens I think on an call to chifra abis
and can be reproduced, I think it relates to proxy contracts. I will provide more info.
Thanks. I appreciate your help.
On Thu, May 2, 2024 at 6:49 PM Dan Miller @.***> wrote:
I'm sorry for the confusion, this is a separate issue to "I was getting a message yesterday that it couldn't find the block but its working fine now. must be related to how close in time it was to when i rebuilt the indexes."
This issue happens I think on an call to chifra abis and can be reproduced, I think it relates to proxy contracts. I will provide more info.
— Reply to this email directly, view it on GitHub https://github.com/TrueBlocks/trueblocks-core/issues/3643#issuecomment-2091872660, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABJKXPSV2K4AIEVSFI6ZYTDZAK7IXAVCNFSM6AAAAABHEP7FDCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOJRHA3TENRWGA . You are receiving this because you authored the thread.Message ID: @.***>
-- Thomas Jay Rush http://t http://quickblocks.iorueblocks.io @.***
The error is from chifa serve when requesting an abi with verbose=true. Without the verbose flag the abi info is returned fine. I don't see the verbose flag here anymore https://trueblocks.io/api/#tag/Accounts/operation/accounts-abis but it is listed for the CLI https://trueblocks.io/chifra/accounts/#chifra-abis. I think the options for the cli and the http api used to match 1:1 but perhaps no more. I notice from the CLI I get the same results verbose or not, and without verbose it has the information I need, so I will stop using that flag via http.
Thanks so much for submitting this. I'll try to fix this one for version 3.0.0.
May I ask you what "information you need?"
This issue has been fixed in the lastest branch which will be merged into develop
shortly. Trouble is, develop
is in a bit of a state of flux as we move to version 3.0.0, so there may be breaking changes.
The line that needs correcting is this one in this file: /opt/ethereum/trueblocks-core/src/apps/chifra/pkg/types/types_function.go
Existing line:
result := make([]map[string]any, 0, len(params))
Should be:
result := make([]map[string]any, len(params))
Someone in our discord reported this:
I was getting a message yesterday that it couldnt findthe block but its working fine now. must be related to how close in time it was to when i rebuilt the indexes [4:29 PM]pigeons:
It's very hard to reproduce, I'm sure, but perhaps there's an easy fix if we checkout the stack trace.