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

Expose Confirmed state to ChainWriter #14138

Merged
merged 4 commits into from
Aug 16, 2024

Conversation

silaslenihan
Copy link
Contributor

@silaslenihan silaslenihan requested review from a team as code owners August 16, 2024 20:45
@silaslenihan silaslenihan force-pushed the expose-confirmed-state-to-chainwriter branch from eb46d28 to c665e24 Compare August 16, 2024 20:57
@silaslenihan silaslenihan force-pushed the expose-confirmed-state-to-chainwriter branch 2 times, most recently from 2532665 to a29cd59 Compare August 16, 2024 21:26
@silaslenihan silaslenihan force-pushed the expose-confirmed-state-to-chainwriter branch from a29cd59 to 5d486cf Compare August 16, 2024 21:30
@@ -654,8 +654,8 @@ func (b *Txm[CHAIN_ID, HEAD, ADDR, TX_HASH, BLOCK_HASH, R, SEQ, FEE]) GetTransac
}
switch tx.State {
case TxUnconfirmed, TxConfirmedMissingReceipt:
// Return unconfirmed for ConfirmedMissingReceipt since a receipt is required to determine if it is finalized
return commontypes.Unconfirmed, nil
// Return pending for ConfirmedMissingReceipt since a receipt is required to consider it as unconfirmed
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: a receipt is required to consider it as confirmed

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ohh, I think Unconfirmed means different things inside TXM, and in ChainWriter.

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.

4 participants