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

Cannot getRawTransactions on mainnet with error "LITE_SERVER_UNKNOWN: cannot compute block with specified transaction: cannot find block (0,3cef47b3e7d12378) lt=46900413000003: lt not in db","@extra":"e5e8082d-d9df-44c1-a770-611cf79abe0f"" #93

Open
jerry-nerd opened this issue Dec 10, 2024 · 1 comment

Comments

@jerry-nerd
Copy link

Hi,
I use the mainnet config file from 1, but when I start the program with the following code:

        Tonlib tonlib=Tonlib.builder()
                .pathToTonlibSharedLib("/opt/homebrew/lib/tonlibjson-mac-x86-64.dylib")
                .pathToGlobalConfig("global.config.json")
                .build();

        Address address = Address.of("EQA870ez59EjeBmDNWBaQhvUTeGRKeJYJbJ_quKgCT__UjWr");
        RawTransactions txs = tonlib.getRawTransactions(address.toString(false), null, null);

the following log outputs:

17:18:34.527 [main] INFO org.ton.java.tonlib.Tonlib - Synchronized: 98.72%
17:18:36.812 [main] INFO org.ton.java.tonlib.Tonlib - Synchronized: 99.17%
17:18:39.242 [main] INFO org.ton.java.tonlib.Tonlib - Synchronized: 99.62%
17:18:41.808 [main] INFO org.ton.java.tonlib.Tonlib - {"@type":"error","code":500,"message":"LITE_SERVER_UNKNOWN: cannot compute block with specified transaction: cannot find block (0,3cef47b3e7d12378) lt=46900413000003: lt not in db","@extra":"e5e8082d-d9df-44c1-a770-611cf79abe0f"}
17:18:41.822 [main] INFO org.ton.java.tonlib.Tonlib - Trying next lite-server at index: 1 (5.9.10.15)
17:18:42.414 [main] INFO org.ton.java.tonlib.Tonlib - {"@type":"error","code":500,"message":"LITE_SERVER_UNKNOWN: cannot compute block with specified transaction: cannot find block (0,3cef47b3e7d12378) lt=46900413000003: lt not in db","@extra":"e5e8082d-d9df-44c1-a770-611cf79abe0f"}
17:18:42.417 [main] INFO org.ton.java.tonlib.Tonlib - Trying next lite-server at index: 2 (135.181.177.59)
17:18:52.447 [main] INFO org.ton.java.tonlib.Tonlib - {"@type":"error","code":500,"message":"LITE_SERVER_NETWORKtimeout for adnl query query","@extra":"e5e8082d-d9df-44c1-a770-611cf79abe0f"}
17:18:52.450 [main] INFO org.ton.java.tonlib.Tonlib - Trying next lite-server at index: 3 (135.181.140.212)
17:18:53.107 [main] INFO org.ton.java.tonlib.Tonlib - {"@type":"error","code":500,"message":"LITE_SERVER_UNKNOWN: cannot compute block with specified transaction: cannot find block (0,3cef47b3e7d12378) lt=46900413000003: lt not in db","@extra":"e5e8082d-d9df-44c1-a770-611cf79abe0f"}
17:18:53.110 [main] INFO org.ton.java.tonlib.Tonlib - Trying next lite-server at index: 4 (135.181.140.221)
17:18:53.632 [main] INFO org.ton.java.tonlib.Tonlib - {"@type":"error","code":500,"message":"LITE_SERVER_UNKNOWN: cannot compute block with specified transaction: cannot find block (0,3cef47b3e7d12378) lt=46900413000003: lt not in db","@extra":"e5e8082d-d9df-44c1-a770-611cf79abe0f"}
@neodix42
Copy link
Owner

this is because lite servers you are referring to do not have the block with a required account.

Try to use this global config for the mainnet:
global-config-archive.json

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

No branches or pull requests

2 participants