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

update wait_for_tansaction api to support long poll #10

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

fishronsage
Copy link
Contributor

No description provided.

Copy link
Contributor

@davidiw davidiw left a comment

Choose a reason for hiding this comment

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

thank you for your contribution!!!

From reading the spec here: https://fullnode.mainnet.aptoslabs.com/v1/spec#/operations/wait_transaction_by_hash

it seems like we should just use this as a drop in replacement for the existing code, so it should just be a small amount of changes.

I'm not sure we need to try to use both code paths at this point unless we found that there's a perceivable performance difference.

aptos_sdk/async_client.py Outdated Show resolved Hide resolved
@davidiw
Copy link
Contributor

davidiw commented Jul 29, 2024

Coming back to this within the next 24 hours.

@fishronsage
Copy link
Contributor Author

(c3003a9 paste the previous review here for convenient)

Copy link
Contributor

@davidiw davidiw left a comment

Choose a reason for hiding this comment

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

do I need to migrate my comments here?

@fishronsage
Copy link
Contributor Author

do I need to migrate my comments here?

I think we can discuss here for new comments and leave old ones there since it's easy to track. 😄

@davidiw
Copy link
Contributor

davidiw commented Aug 27, 2024

curious, after giving feedback in the previous commit, it doesn't look like this was updated. is that intended? @fishronsage

@fishronsage
Copy link
Contributor Author

fishronsage commented Aug 28, 2024

@davidiw No. I had replied your feedback and pinged you in c3003a9. Thought you might be too busy to response 😂

aptos_sdk/async_client.py Outdated Show resolved Hide resolved
aptos_sdk/async_client.py Outdated Show resolved Hide resolved
@davidiw
Copy link
Contributor

davidiw commented Sep 13, 2024

lemme know what you think of the tweak and then we can land it.

@davidiw
Copy link
Contributor

davidiw commented Sep 13, 2024

Why are the tests failing 🤔

@fishronsage
Copy link
Contributor Author

I think it could be due to some settings of devent? I ran this on testnet and it passed. I also ran the ts sdk's example, got 404 too on devent.

@fishronsage
Copy link
Contributor Author

fishronsage commented Sep 17, 2024

Yeah, I regret that statement. If we get a 404, it likely means something else since we enabled stickiness. We could check to see that stickiness is enabled, but it is by default 🤷

(c3003a9#r146052694)

BTW, I got 404 on testnet. maybe 404 should be still handled? 🤷‍♂️
Screenshot_20240917_200151

@fishronsage
Copy link
Contributor Author

@davidiw
Copy link
Contributor

davidiw commented Sep 19, 2024

Okay, let's wait to land this until we figure out why the infra is inconsistent with our expectations. I'm following up with the maintainers of the fullnodes.

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.

2 participants