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 get transaction endpoint #456

Merged
merged 13 commits into from
Aug 14, 2024
Merged

Conversation

miiu96
Copy link
Contributor

@miiu96 miiu96 commented Aug 5, 2024

  • Fixed get transaction endpoint

@miiu96 miiu96 changed the base branch from master to rc/v1.7.next1 August 6, 2024 10:02
iulianpascalau
iulianpascalau previously approved these changes Aug 7, 2024
Copy link
Contributor

@iulianpascalau iulianpascalau left a comment

Choose a reason for hiding this comment

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

Why all these changes from the last commit?

return &data.ProcessStatusResponse{
Status: string(transaction.TxStatusPending),
Status: string(transaction.TxStatusSuccess),
Copy link
Contributor

Choose a reason for hiding this comment

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

this is wrong. How we are going to return the pending status?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

reverted the changes

for _, scr := range scrs {
sndShardID, err := tp.getShardByAddress(scr.SndAddr)
if err != nil {
log.Warn("cannot compute shard ID from sender address",
Copy link
Contributor

Choose a reason for hiding this comment

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

I think a continue statement should be added here, otherwise it will use 0 as sndShardID

Copy link
Contributor Author

Choose a reason for hiding this comment

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

added
good find

}

rcvShardID, err := tp.getShardByAddress(scr.RcvAddr)
if err != nil {
Copy link
Contributor

Choose a reason for hiding this comment

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

same here? continue?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@miiu96 miiu96 self-assigned this Aug 13, 2024
Copy link
Contributor

@danidrasovean danidrasovean left a comment

Choose a reason for hiding this comment

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

Normal allin test: rc -> new-endpoint-scrs-by-tx-hash with proxy fix-transcation-endpoint #allin

--- Specific errors ---

block hash does not match 651
wrong nonce in block 304
miniblocks does not match 0
num miniblocks does not match 0
miniblock hash does not match 0
block bodies does not match 1
receipts hash missmatch 0

/------/

--- Statistics ---

Nr. of all ERRORS: 0
Nr. of all WARNS: 263
Nr. of new ERRORS: 0
Nr. of new WARNS: 10
Nr. of PANICS: 0

/------/

--- ERRORS ---

/------/

@iulianpascalau iulianpascalau merged commit b06b627 into rc/v1.7.next1 Aug 14, 2024
5 checks passed
@iulianpascalau iulianpascalau deleted the fix-transcation-endpoint branch August 14, 2024 08:58
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