nuls-io/nuls-v1

ConsensusStatusEnum 这个枚举类存在问题

SmileYu opened this issue · 2 comments

NOT_IN(0, 69999), IN(2, 69998), WAITING(1, 69997); 这三个枚举值的code 和
getConsensusStatusByCode(int code)的解析值存在不一致。

public static ConsensusStatusEnum getConsensusStatusByCode(int code) {
switch (code) {
case 1:
return IN;
case 2:
return WAITING;
case 0:
return NOT_IN;
default:
return null;
}
}

Thanks report. We will fix it ASAP.

Fixed at ee748c8.