Skip to content

Conversation

@joe-p
Copy link
Contributor

@joe-p joe-p commented Dec 16, 2024

Proposed Changes

A few questions:

  1. Is there a reason why txids were used instead of round? Is there a concern a block will be in indexer but not a txn?
  2. On cursory glance, this seems to be the only use-case for the transaction logger. Is there another usecase that I am missing or can we stop using this class and mark it for deprecation? (assuming it's not commonly used externally)

@joe-p joe-p force-pushed the fix/waitForIndexer_rejected_txn branch from b0aa106 to a5d9ecf Compare December 16, 2024 19:58
@robdmoore
Copy link
Contributor

Answered the first question at #356 (comment)

Re: the second question, it is useful to have a log of transaction IDs where you are testing code that performs multiple transactions and want to assert on the result of that code. The transaction logger provides a nice unobtrusive way to do that out of the box.

@joe-p
Copy link
Contributor Author

joe-p commented Dec 20, 2024

Answered the first question at #356 (comment)

It's not clear to me why round would be slower. "wait for all transactions" (current implementation) and "wait for last round" (this PR) are the same question to the indexer, with the latter being more succinct and only requiring one call.

Re: the second question, it is useful to have a log of transaction IDs where you are testing code that performs multiple transactions and want to assert on the result of that code. The transaction logger provides a nice unobtrusive way to do that out of the box.

Are there any examples of how it'd be used?

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

Successfully merging this pull request may close these issues.

3 participants