Skip to content

Invoking Payout triggers endless loops #2

@mr-zwets

Description

@mr-zwets

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions