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

Added submit_and_await endpoint to not miss the notifications #1192

Merged
merged 15 commits into from
May 29, 2023

Conversation

xgreenx
Copy link
Collaborator

@xgreenx xgreenx commented May 26, 2023

No description provided.

@xgreenx xgreenx requested a review from a team May 26, 2023 15:28
@xgreenx xgreenx self-assigned this May 26, 2023
"""
submit(tx: HexString!): Transaction!
"""
Submits transaction to the `TxPool` and await either confirmation or failure.
"""
submitAndAwait(tx: HexString!): TransactionStatus!
Copy link
Member

Choose a reason for hiding this comment

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

This should probably be a stream/subscription, as the connection is more likely to just timeout if the transaction is waiting in the transaction pool too long.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeh I agree

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I wrote a test and checked that I didn't get a timeout with a 10-minute production interval. Maybe it works for me because of OS keeps alive default behavior.

But I changed to use a subscription model. Maybe we can get a timeout in the production in some other place like ingress nginx.

Base automatically changed from freesig/test-submit-await to master May 29, 2023 09:52
@xgreenx xgreenx merged commit ea438b7 into master May 29, 2023
@xgreenx xgreenx deleted the feature/submit-and-await branch May 29, 2023 23:02
@xgreenx xgreenx mentioned this pull request Jun 13, 2023
xgreenx added a commit that referenced this pull request Jun 14, 2023
## What's Changed
* version compatibility cleanup by @Voxelot in
#1171
* Added example with custom query around the `fuel-core-client` by
@xgreenx in #1175
* Update to fuel-vm 0.32 (including wideint gas profiling) by @Dentosal
in #1173
* feat: Client primitives by @bvrooman in
#1144
* Improve executor config by @Voxelot in
#1185
* Added `contract_id` to the `ContractConfig` by @xgreenx in
#1184
* fix windows file name error by @firedpeanut in
#1176
* Make transaction status stream work by @freesig in
#1108
* Added `submit_and_await` endpoint to not miss the notifications by
@xgreenx in #1192
* feat: Use ID types in client api by @bvrooman in
#1191
* Use `fuel-vm 0.33` with predicate estimation by @xgreenx in
#1195
* Add transaction lifecycle diagram to the docs by @digorithm in
#1201
* sync with peers before producing blocks by @leviathanbeak in
#1169
* SMT storage key hashing by @xgreenx in
#1207

## New Contributors
* @firedpeanut made their first contribution in
#1176

**Full Changelog**:
v0.18.1...v0.19.0

---------

Co-authored-by: Brandon Kite <brandonkite92@gmail.com>
crypto523 pushed a commit to crypto523/fuel-core that referenced this pull request Oct 7, 2024
## What's Changed
* version compatibility cleanup by @Voxelot in
FuelLabs/fuel-core#1171
* Added example with custom query around the `fuel-core-client` by
@xgreenx in FuelLabs/fuel-core#1175
* Update to fuel-vm 0.32 (including wideint gas profiling) by @Dentosal
in FuelLabs/fuel-core#1173
* feat: Client primitives by @bvrooman in
FuelLabs/fuel-core#1144
* Improve executor config by @Voxelot in
FuelLabs/fuel-core#1185
* Added `contract_id` to the `ContractConfig` by @xgreenx in
FuelLabs/fuel-core#1184
* fix windows file name error by @firedpeanut in
FuelLabs/fuel-core#1176
* Make transaction status stream work by @freesig in
FuelLabs/fuel-core#1108
* Added `submit_and_await` endpoint to not miss the notifications by
@xgreenx in FuelLabs/fuel-core#1192
* feat: Use ID types in client api by @bvrooman in
FuelLabs/fuel-core#1191
* Use `fuel-vm 0.33` with predicate estimation by @xgreenx in
FuelLabs/fuel-core#1195
* Add transaction lifecycle diagram to the docs by @digorithm in
FuelLabs/fuel-core#1201
* sync with peers before producing blocks by @leviathanbeak in
FuelLabs/fuel-core#1169
* SMT storage key hashing by @xgreenx in
FuelLabs/fuel-core#1207

## New Contributors
* @firedpeanut made their first contribution in
FuelLabs/fuel-core#1176

**Full Changelog**:
FuelLabs/fuel-core@v0.18.1...v0.19.0

---------

Co-authored-by: Brandon Kite <brandonkite92@gmail.com>
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