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

About synchronization issues #78

Open
AmazingGame opened this issue Aug 3, 2023 · 0 comments
Open

About synchronization issues #78

AmazingGame opened this issue Aug 3, 2023 · 0 comments

Comments

@AmazingGame
Copy link

I'm having trouble syncing amms with my local erigon archive node.

mistake:

This error contains multiple until panic.
{ethers_providers::rpc::transports::ws::backend} Error response from WS err=Space limit exceeded: Message too long: 16963321 > 16777216

I tried setting the Ws config max_message_size and max_frame_size to unlimited, and that got resolved, and the sync works fine. But after a few minutes of syncing, this error still occurs, but this time there is only one, and it doesn't panic.

Will this cause some information to be lost when syncing an amm?

code:

let ws_config = WebSocketConfig {
         max_send_queue: None,
         max_message_size: None,
         max_frame_size: None,
         ..WebSocketConfig::default()
     };

     // Setup ethers provider
     let ws: Ws = Ws::connect_with_config(args.wss, ws_config).await.unwrap();
     let provider: Arc<Provider<Ws>> = Arc::new(Provider::new(ws));

factory:
[
     {
         "factory_address": "0xc0aee478e3658e2610c5f7a4a2e1777ce9e4f2ac",
         "dex": "UniswapV2",
         "creation_block": 10794229,
         "fee": 300
     },
     {
         "factory_address": "0x4eef5746ed22a2fd368629c1852365bf5dcb79f1",
         "dex": "UniswapV2",
         "creation_block": 12385067,
         "fee": 300
     },
     {
         "factory_address": "0x9deb29c9a4c7a88a3c0257393b7f3335338d9a9d",
         "dex": "UniswapV2",
         "creation_block": 10828414,
         "fee": 300
     },
     {
         "factory_address": "0x115934131916c8b277dd010ee02de363c09d037c",
         "dex": "UniswapV2",
         "creation_block": 12771526,
         "fee": 300
     },
     {
         "factory_address": "0x35113a300ca0d7621374890abfeac30e88f214b1",
         "dex": "UniswapV2",
         "creation_block": 15210780,
         "fee": 300
     },
     {
         "factory_address": "0x5c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f",
         "dex": "UniswapV2",
         "creation_block": 10000835,
         "fee": 300
     },
     {
         "factory_address": "0x1097053fd2ea711dad45caccc45eff7548fcb362",
         "dex": "UniswapV2",
         "creation_block": 15614590,
         "fee": 300
     },
     {
         "factory_address": "0x1f98431c8ad98523631ae4a59f267346ea31f984",
         "dex": "UniswapV3",
         "creation_block": 12369621
     }
]
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

1 participant