raiden
raiden copied to clipboard
Default non-release builds to development mode
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?
I'm afraid this could introduce more confusion than it solves. Is there a different way to avoid this problem?