Skip to content

Commit 8b7e8b5

Browse files
committed
Let use 12->18 signers inparallel
1 parent cfd82f6 commit 8b7e8b5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

examples/store_big_data.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,9 @@ function printStatistics(dataSize) {
148148
console.log('═══════════════════════════════════════════════════════════════════════════════');
149149
for (const blockNum of sortedBlocks) {
150150
const count = txsPerBlock[blockNum];
151+
const size = formatBytes(count * CHUNK_SIZE);
151152
const bar = '█'.repeat(count);
152-
console.log(`| Block #${blockNum.toString().padEnd(10)} | ${count.toString().padStart(3)} txs | ${bar}`);
153+
console.log(`| Block #${blockNum.toString().padEnd(10)} | ${count.toString().padStart(3)} txs | ${size.padEnd(12)} | ${bar}`);
153154
}
154155
console.log('═══════════════════════════════════════════════════════════════════════════════');
155156
console.log('\n');
@@ -213,7 +214,7 @@ async function main() {
213214
const { sudoSigner, _ } = setupKeyringAndSigners(SEED, '//Bigdatasigner');
214215

215216
// Let's do parallelism with multiple accounts
216-
const signers = Array.from({ length: 12 }, (_, i) => {
217+
const signers = Array.from({ length: 18 }, (_, i) => {
217218
if (!signerDiscriminator) {
218219
return newSigner(`//Signer${i + 1}`)
219220
} else {

0 commit comments

Comments
 (0)