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

fix relayed tx notarization check #485

Merged
merged 2 commits into from
Feb 27, 2025

Conversation

axenteoctavian
Copy link

@axenteoctavian axenteoctavian commented Feb 27, 2025

  • fix relayed tx notarization check
  • fix Dockerfile (copied fix from master branch)

@axenteoctavian axenteoctavian self-assigned this Feb 27, 2025
@axenteoctavian axenteoctavian marked this pull request as ready for review February 27, 2025 12:36
@@ -656,8 +656,7 @@ func (tp *TransactionProcessor) isRelayedMoveBalanceTransaction(
tx *transaction.ApiTransactionResult,
allScrs []*transaction.ApiTransactionResult,
) (bool, error) {
isNotarized := tx.NotarizedAtSourceInMetaNonce > 0 && tx.NotarizedAtDestinationInMetaNonce > 0
if !isNotarized {
if !tp.txNotarizationChecker.IsNotarized(*tx) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can this ever panic?

Copy link
Author

Choose a reason for hiding this comment

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

Nope. There is a check for nil in TransactionProcessor constructor

@axenteoctavian axenteoctavian merged commit b5eea8e into feat/sovereign Feb 27, 2025
7 checks passed
@axenteoctavian axenteoctavian deleted the fix-relayed-tx-notarization-check branch February 27, 2025 13:59
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