-
Notifications
You must be signed in to change notification settings - Fork 275
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 SafeRelevantTransaction default timestamp #2347
Conversation
@@ -603,7 +603,7 @@ def __process_decoded_transaction( | |||
SafeRelevantTransaction.objects.get_or_create( | |||
ethereum_tx=ethereum_tx, | |||
safe=contract_address, | |||
defaults={"timestamp": ethereum_tx.created}, | |||
defaults={"timestamp": ethereum_tx.block.timestamp}, |
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.
It is the related field included in the queryset ethereum_tx?
If not this will create a new request to database for each ethereum_tx.
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.
Fixed using internal_tx 👍
Co-authored-by: Uxío <[email protected]>
Co-authored-by: Uxío <[email protected]>
Sometimes when reindexing a safe, if a missing Tx appears, it is being inserted with the current date instead of the correct date.
This causes an order problem in the
all-transactions
endpoint.