livepeer/go-livepeer

livepeer_cli: Prompt for rewardCut/feeShare shows a default value but pressing enter uses the current value

Aberta

#1.836 aberto em 9 de abr. de 2021

 (0 comentário) (0 reação) (0 responsável)Go (223 forks)auto 404
area: cligood first issuetype: bug

Métricas do repositório

Stars
 (583 estrelas)
Métricas de merge de PR
 (Métricas PR pendentes)

Description

It is reasonable to assume that if a default value is shown in the prompt that that would be the value used if no value is explicitly provided. However, this is not the current behavior - the current behavior is to use the current value if no value is specified even though the prompt indicates a default.

The fix here should be to line up the behavior when no value is specified with what a user would expect to avoid the scenario where the user provides no value expecting to use the default only to set the rewardCut + feeShare to 0 (the current uninitialized values) [1]. How to accomplish this is left TBD for the implementer.

[1] At least one user reported that this happened to them.

Guia do colaborador