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

Transactions sent in parallel don't work #703

Open
th7nder opened this issue Jan 24, 2025 · 0 comments
Open

Transactions sent in parallel don't work #703

th7nder opened this issue Jan 24, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@th7nder
Copy link
Contributor

th7nder commented Jan 24, 2025

    tokio::join!(
        register_storage_provider(client.clone(), charlie_kp.clone()),
        set_porep_verifying_key(
            client.clone(),
            charlie_kp.clone(),
            VerifyingKey::from_raw_bytes(porep_vk_scale),
        ),
        set_post_verifying_key(
            client.clone(),
            charlie_kp.clone(),
            VerifyingKey::from_raw_bytes(post_vk_scale),
        ),
        // Deal collateral + pre_commit_deposit (1)
        add_balance(client.clone(), charlie_kp.clone(), 12_500_000_001),
        add_balance(client.clone(), alice_kp.clone(), 25_000_000_0000),
    );
2025-01-24T13:45:59.819538Z DEBUG register_storage_provider{address="5FLSigC9HGRKVhB9FiEo4Y3koPsNmBmLJbpXg2mp1hXcS59Y"}: storagext::runtime::client: Waiting for finalization, Previous nonce: 0, next nonce: 0
2025-01-24T13:46:00.825749Z DEBUG set_porep_verifying_key{address="5FLSigC9HGRKVhB9FiEo4Y3koPsNmBmLJbpXg2mp1hXcS59Y"}: storagext::runtime::client: Waiting for finalization, Previous nonce: 0, next nonce: 0
2025-01-24T13:46:01.831169Z DEBUG set_post_verifying_key{address="5FLSigC9HGRKVhB9FiEo4Y3koPsNmBmLJbpXg2mp1hXcS59Y"}: storagext::runtime::client: Waiting for finalization, Previous nonce: 0, next nonce: 0
2025-01-24T13:46:02.835048Z DEBUG add_balance{address="5FLSigC9HGRKVhB9FiEo4Y3koPsNmBmLJbpXg2mp1hXcS59Y" amount=12500000001}: storagext::runtime::client: Waiting for finalization, Previous nonce: 0, next nonce: 0
2025-01-24T13:46:06.250544Z DEBUG add_balance{address="5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY" amount=250000000000}: storagext::runtime::client: Waiting for finalization, Previous nonce: 0, next nonce: 0

It probably has to do with our mechanism of setting nonces.
We're depending on the nonce returned from the:

        let current_nonce = self
            .legacy_rpc
            .system_account_next_index(&account_keypair.account_id())
            .await?;

It's related to: paritytech/subxt#1886 and #651 .

@th7nder th7nder added the bug Something isn't working label Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant