Skip to content

update wait_for_tansaction api to support long poll - #10

Open
fishronsage wants to merge 2 commits into
aptos-labs:mainfrom
ALCOVE-LAB:api
Open

update wait_for_tansaction api to support long poll#10
fishronsage wants to merge 2 commits into
aptos-labs:mainfrom
ALCOVE-LAB:api

Conversation

@fishronsage

Copy link
Copy Markdown
Contributor

No description provided.

@davidiw davidiw left a comment

Copy link
Copy Markdown
Contributor

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.

Comment thread aptos_sdk/async_client.py Outdated
@davidiw

davidiw commented Jul 29, 2024

Copy link
Copy Markdown
Contributor

Coming back to this within the next 24 hours.

@fishronsage

Copy link
Copy Markdown
Contributor Author

(c3003a9 paste the previous review here for convenient)

@davidiw davidiw left a comment

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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

davidiw commented Aug 27, 2024

Copy link
Copy Markdown
Contributor

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

@fishronsage

fishronsage commented Aug 28, 2024

Copy link
Copy Markdown
Contributor Author

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

Comment thread aptos_sdk/async_client.py Outdated
Comment thread aptos_sdk/async_client.py Outdated
@davidiw

davidiw commented Sep 13, 2024

Copy link
Copy Markdown
Contributor

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

Co-authored-by: David Wolinsky <isaac.wolinsky@gmail.com>
@davidiw

davidiw commented Sep 13, 2024

Copy link
Copy Markdown
Contributor

Why are the tests failing 🤔

@fishronsage

Copy link
Copy Markdown
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

fishronsage commented Sep 17, 2024

Copy link
Copy Markdown
Contributor Author

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
Copy Markdown
Contributor Author

@davidiw

davidiw commented Sep 19, 2024

Copy link
Copy Markdown
Contributor

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