-
Notifications
You must be signed in to change notification settings - Fork 3
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
Add XRPL tx finality check. #48
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 4 of 4 files at r1, all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @miladz68 and @ysv)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 4 of 4 files at r1, all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @dzmitryhil and @miladz68)
relayer/processes/xrpl_tx_observer.go
line 269 at r1 (raw file):
// Any tem code Final unless the protocol changes to make the transaction valid. // tefPAST_SEQ Final when another transaction with the same sequence number is included in a validated ledger. // tefMAX_LEDGER Final when a validated ledger has a ledger index higher than the transaction's LastLedgerSequence field, and no validated ledger includes the transaction.
I don't fully understand this
lets probably discuss after call
relayer/processes/xrpl_tx_observer.go
line 272 at r1 (raw file):
func txIsFinal(tx rippledata.TransactionWithMetaData) bool { txResult := tx.MetaData.TransactionResult if tx.MetaData.TransactionResult.Success() ||
nit:
if
and second return
is not needed here. You can just write
return tx.MetaData.TransactionResult.Success() || ...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @miladz68 and @ysv)
relayer/processes/xrpl_tx_observer.go
line 269 at r1 (raw file):
Previously, ysv (Yaroslav Savchuk) wrote…
I don't fully understand this
lets probably discuss after call
Sure
relayer/processes/xrpl_tx_observer.go
line 272 at r1 (raw file):
Previously, ysv (Yaroslav Savchuk) wrote…
nit:
if
and secondreturn
is not needed here. You can just writereturn tx.MetaData.TransactionResult.Success() || ...
Rright, updated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 1 files at r2, all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @miladz68 and @ysv)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 1 files at r2, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @miladz68)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status:
complete! all files reviewed, all discussions resolved (waiting on @miladz68)
# Conflicts: # relayer/processes/xrpl_tx_observer.go # relayer/xrpl/constatns.go
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 4 of 4 files at r3, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @dzmitryhil, @miladz68, and @ysv)
relayer/xrpl/constatns.go
line 8 at r3 (raw file):
TecPathDryTxResult = "tecPATH_DRY" // TefNOTicketTxResult defines the result which indicates the usage of the passed ticket or not created ticket. // TefNOTicketTxResult defines that the usage of the passed ticket or not created ticket.
duplicated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @miladz68, @wojtek-coreum, and @ysv)
relayer/xrpl/constatns.go
line 8 at r3 (raw file):
Previously, wojtek-coreum (Wojtek) wrote…
duplicated
Done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 3 of 4 files at r3, 1 of 1 files at r4, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @wojtek-coreum and @ysv)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 3 of 4 files at r3, 1 of 1 files at r4, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @wojtek-coreum)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 1 files at r4, all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @dzmitryhil)
Description
Add XRPL tx finality check.
XRPL tx finality spec: https://xrpl.org/finality-of-results.html
Reviewers checklist:
Authors checklist
This change is![Reviewable](https://camo.githubusercontent.com/1541c4039185914e83657d3683ec25920c672c6c5c7ab4240ee7bff601adec0b/68747470733a2f2f72657669657761626c652e696f2f7265766965775f627574746f6e2e737667)