raiden icon indicating copy to clipboard operation
raiden copied to clipboard

Default non-release builds to development mode

Open ulope opened this issue 6 years ago • 1 comments
trafficstars

Problem Definition

All our releases as well as the source tree in master currently default to the production environment-type. IMO this is a problem since we want our users to only use actual version tagged releases on mainnet.

Suggested Solution

Change the default environment-type to be dependent on the release type. E.g. (slightly pseudo code):

is_prod = (re.match(r'^v\d\.\d\.\d(-?rc\d)?$', raiden_version) is not None)
[...]
option('--environment-type', ...,default = 'production' if is_prod else 'development')

Open questions

  • Should the chain default also be changed to non-mainnet if we're a dev release? If so which chain?

ulope avatar Feb 25 '19 14:02 ulope

I'm afraid this could introduce more confusion than it solves. Is there a different way to avoid this problem?

karlb avatar Sep 25 '20 14:09 karlb