Don't retry commit message for Not enough members to validate
errors
This commit is contained in:
parent
5a8c31df32
commit
5119d04243
@ -1318,9 +1318,12 @@ export default class Services {
|
|||||||
const content = JSON.parse(response);
|
const content = JSON.parse(response);
|
||||||
const error = content.error;
|
const error = content.error;
|
||||||
const errorMsg = error['GenericError'];
|
const errorMsg = error['GenericError'];
|
||||||
if (errorMsg === 'State is identical to the previous state') {
|
const dontRetry = [
|
||||||
return;
|
'State is identical to the previous state',
|
||||||
} else if (errorMsg === 'Not enough valid proofs') { return; }
|
'Not enough valid proofs',
|
||||||
|
'Not enough members to validate',
|
||||||
|
];
|
||||||
|
if (dontRetry.includes(errorMsg)) { return; }
|
||||||
// Wait and retry
|
// Wait and retry
|
||||||
setTimeout(async () => {
|
setTimeout(async () => {
|
||||||
await this.sendCommitMessage(JSON.stringify(content));
|
await this.sendCommitMessage(JSON.stringify(content));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user