REJECT_CONFLICT -> REJECT_DUPLICATE
Signed-off-by: Pasta <pasta@dashboost.org>
This commit is contained in:
parent
9d336854f7
commit
82dcb03e35
@ -692,10 +692,10 @@ bool CDeterministicMNManager::BuildNewListFromBlock(const CBlock& block, const C
|
||||
}
|
||||
|
||||
if (newList.HasUniqueProperty(proTx.addr)) {
|
||||
return _state.DoS(100, false, REJECT_CONFLICT, "bad-protx-dup-addr");
|
||||
return _state.DoS(100, false, REJECT_DUPLICATE, "bad-protx-dup-addr");
|
||||
}
|
||||
if (newList.HasUniqueProperty(proTx.keyIDOwner) || newList.HasUniqueProperty(proTx.pubKeyOperator)) {
|
||||
return _state.DoS(100, false, REJECT_CONFLICT, "bad-protx-dup-key");
|
||||
return _state.DoS(100, false, REJECT_DUPLICATE, "bad-protx-dup-key");
|
||||
}
|
||||
|
||||
dmn->nOperatorReward = proTx.nOperatorReward;
|
||||
@ -724,7 +724,7 @@ bool CDeterministicMNManager::BuildNewListFromBlock(const CBlock& block, const C
|
||||
}
|
||||
|
||||
if (newList.HasUniqueProperty(proTx.addr) && newList.GetUniquePropertyMN(proTx.addr)->proTxHash != proTx.proTxHash) {
|
||||
return _state.DoS(100, false, REJECT_CONFLICT, "bad-protx-dup-addr");
|
||||
return _state.DoS(100, false, REJECT_DUPLICATE, "bad-protx-dup-addr");
|
||||
}
|
||||
|
||||
CDeterministicMNCPtr dmn = newList.GetMN(proTx.proTxHash);
|
||||
|
Loading…
Reference in New Issue
Block a user