-
Notifications
You must be signed in to change notification settings - Fork 18
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
Conversation
miiu96
commented
Aug 5, 2024
- Fixed get transaction endpoint
# Conflicts: # process/transactionProcessor.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.
Why all these changes from the last commit?
process/transactionProcessor.go
Outdated
return &data.ProcessStatusResponse{ | ||
Status: string(transaction.TxStatusPending), | ||
Status: string(transaction.TxStatusSuccess), |
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.
this is wrong. How we are going to return the pending status?
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.
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", |
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.
I think a continue statement should be added here, otherwise it will use 0 as sndShardID
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.
added
good find
} | ||
|
||
rcvShardID, err := tp.getShardByAddress(scr.RcvAddr) | ||
if err != nil { |
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.
same here? continue?
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.
done
2e0e5bb
to
73edf0b
Compare
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.
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 ---
/------/