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

Invoking Payout triggers endless loops #2

Open
mr-zwets opened this issue Nov 14, 2023 · 0 comments
Open

Invoking Payout triggers endless loops #2

mr-zwets opened this issue Nov 14, 2023 · 0 comments

Comments

@mr-zwets
Copy link
Member

The addition of a txidChanged check has not prevented infinite looping of updateMintingUtxos in practice.

 const noStateUpdate = nftsMinted == oldAmountMinted && !txidChanged;
    // If the Chaingraph instance has not seen the new tx, wait and re-fetch.
    if (noStateUpdate && nftsMinted != 0) {
      setTimeout(updateMintingUtxos, 500);
    }

The underlying issue is probably related to using two different indexers to get blockchain state (#1) as checking whether the txidChanged should be enough to prevent infinite looping of updateMintingUtxos , need to investigate the issue further.

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