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

Rahul/ifl 1881 adds transaction progress bar to wallet send #4854

Merged

Conversation

patnir
Copy link
Contributor

@patnir patnir commented Mar 19, 2024

Summary

  • Adds transaction timer to wallet:send
  • when spendPostTime is not available, transaction timer displays the "normal" output
  • after posting a transaction, the spend post time is recalculated
  • The spendPostTime is averaged to smooth out anomalies over time
  • We no longer need the spendPostTimeAt in the internal settings because of the above features

Example:

image

Testing Plan

  1. With no spend post time in internal.json [you can manually remove it] run wallet:send - this will show you Sending the transaction... without an estimate. The next time you run the command, an estimate will be displayed
  2. With a time estimate, run wallet:send you should get time estimated for both

Documentation

Does this change require any updates to the Iron Fish Docs (ex. the RPC API
Reference
)? If yes, link a
related documentation pull request for the website.

[ ] Yes

Breaking Change

Is this a breaking change? If yes, add notes below on why this is breaking and label it with breaking-change-rpc or breaking-change-sdk.

[ ] Yes

@patnir patnir force-pushed the rahul/ifl-1881-transaction-progress-bar-for-wallet-send branch 3 times, most recently from 3926c60 to 0713fb3 Compare March 21, 2024 21:29
@patnir patnir force-pushed the rahul/ifl-1881-transaction-progress-bar-for-wallet-send branch 3 times, most recently from 453562a to 862af17 Compare April 8, 2024 22:03
@patnir patnir marked this pull request as ready for review April 8, 2024 22:10
@patnir patnir requested a review from a team as a code owner April 8, 2024 22:10
@patnir patnir changed the title Rahul/ifl 1881 transaction progress bar for wallet send Rahul/ifl 1881 adds transaction progress bar to wallet send Apr 8, 2024
Copy link
Contributor

@hughy hughy left a comment

Choose a reason for hiding this comment

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

Looks good to me!

Tested with and without existing estimates 👍

Updates the spend post time at the end of the transaction to create a more accurate estimate over time.
@patnir patnir force-pushed the rahul/ifl-1881-transaction-progress-bar-for-wallet-send branch from 862af17 to 2ee7323 Compare April 11, 2024 20:25
@patnir patnir merged commit c9c75e2 into staging Apr 11, 2024
9 checks passed
@patnir patnir deleted the rahul/ifl-1881-transaction-progress-bar-for-wallet-send branch April 11, 2024 21:33
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