mirror of
https://github.com/EvernodeXRPL/hpcore.git
synced 2026-04-29 15:37:59 +00:00
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:
@@ -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);
|
||||
});;
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user