Provide descriptive results in msg response values (channel upgrades) #5421
Labels
channel-upgradability
Channel upgradability feature
icebox
Issues that we will not address for the time being
Several msg responses uses a typed result value. This was originally intended for handling no-op processing for packet processing, but it got reused for channel upgradability. I would recommend using a string type rather than a typed result value to increase flexibility in changing the descriptive behaviour in the future. This would allow for upgrade specific results to be included, rather than simply "SUCCESS" and "FAILURE".
Due to timing constraints, the result value will be left as is. If the response value becomes useful, we can deprecate the old field and add a new string field as a replacement. Opening this issue to document this idea and provide a historical record for creating result values in future features
See proposed change:
I propose a string so that we aren't tied to a specific struct. That way we can just leave the success/failure as is but update to more descriptive responses if we so choose. Just a proposal though
This is similar to what I was ethereum do with one of their api's. They have a response status which is a string and then various string response values (valid, invalid, syncing)
Originally posted by @colin-axner in #3910 (comment)
The text was updated successfully, but these errors were encountered: