Open hdevalence opened 1 year ago
This error message can appear (and has appeared) if one runs an old version of pcli
against a newer testnet. However, it also appears if one submits a tx exactly on the epoch boundary, in which case the suggested error message would be very helpful.
Relatedly, we want to adjust the interface for epoch boundaries: @zbuc will file (or cross-link) a follow-up issue to track.
Is your feature request related to a problem? Please describe.
(un)delegation transactions have to be prepared with respect to a specific epoch. This means that there's a narrow window close to the epoch boundary where a client could start preparing the tx with respect to the current parameters, and then have those parameters change before the tx can be submitted. This results in errors like
and users are confused because nothing indicates they could retry.
Describe the solution you'd like
Change the error message to add
; try re-building and re-submitting the transaction
at the end.