Fixed consensus issues with large no. of users and inputs. (#280)

* Fixed issue in consensus contract output  sorting.

* Improved load test script.

* Removed flatbuffer verifier restrictions to support large no. of users and inputs.

* Improved consensus proposal cleanup.

* Restored the earlier proposal cleanup logic.

* Minor fixes.

* const fix.
This commit is contained in:
Ravin Perera
2021-04-01 17:12:39 +05:30
committed by GitHub
parent af48f3b01f
commit bba5266f5d
4 changed files with 33 additions and 24 deletions

View File

@@ -108,7 +108,10 @@ function singleUserInputOutput(payloadKB, requestCount) {
timer.start();
for (let i = 0; i < requestCount; i++) {
const nonce = i.toString().padStart(5);
await hpc.sendContractInput(payload, nonce, 20);
hpc.sendContractInput(payload, nonce, 10).then(r => {
if (r != "ok")
console.log(r);
});
}
})
}
@@ -148,7 +151,10 @@ function largePayload(payloadMB) {
});
timer.start();
await hpc.sendContractInput(payload);
await hpc.sendContractInput(payload).then(r => {
if (r != "ok")
console.log(r);
});;
})
}