-
Notifications
You must be signed in to change notification settings - Fork 286
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
Transaction expiration calculation -> change times to only block time #1060
Comments
@vasild did you manage to check into this |
No, but I have a rough idea:
IMO the user-facing apps should present the user time-based expiration dialogs, like "expire after N hours approximately" or "expire at 14:56 on Nov 1 2018 approximately" and convert into block number under the hood. Then maybe have some advanced, geeks-only option to set/view expiration block number directly. |
12 tasks
vasild
added a commit
that referenced
this issue
Apr 23, 2019
Switch from calculating transactions' expiration in "number of seconds since genesis block" to "chain height". Notice: this change alters the semantic of the maxTransactionAge beyond just the units (seconds vs height). Before the change we would use the user-defined transaction.timestamp and add maxTransactionAge (seconds) to it. After the change we use the current chain height when we have received the transaction (which is not user-defined and not necessary the same as when the transaction was created by the user) and add maxTransactionAge (height) to it. Resolves #1060
vasild
added a commit
that referenced
this issue
Apr 23, 2019
Switch from calculating transactions' expiration in "number of seconds since genesis block" to "chain height". Notice: this change alters the semantic of the maxTransactionAge beyond just the units (seconds vs height). Before the change we would use the user-defined transaction.timestamp and add maxTransactionAge (seconds) to it. After the change we use the current chain height when we have received the transaction (which is not user-defined and not necessary the same as when the transaction was created by the user) and add maxTransactionAge (height) to it. Resolves #1060
13 tasks
Implemented in #2461 |
ghost
mentioned this issue
Apr 28, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem? Please describe.
Now it is possible to set transaction expiration in two ways (block-time and also normal time-to-live before expiration).
Describe the solution you'd like
The only true and measurable time is block height and so in this case also transaction expiration should be set, in explicit value of block height when it should expires.transaction: {
expiration: 5980000
}
For usability the client applications would still calculate this in a time-spam, so we can show more friendly information to the user sending the transaction. The clients can also suggest like 10 blocks, 2 rounds and then the explicit block expiration height is calculated in the background.
The text was updated successfully, but these errors were encountered: