Skip to content

Conversation

@rosarp
Copy link
Member

@rosarp rosarp commented Nov 19, 2025

Adds example according to #77

@rosarp rosarp requested a review from bkontur November 19, 2025 09:49
@rosarp
Copy link
Member Author

rosarp commented Nov 19, 2025

@bkontur the modified code is only common.js
The main function of store_chunked_data.js and store_big_data.js are same.
May be we should merge examples adding documentation instead.

@bkontur
Copy link
Collaborator

bkontur commented Nov 20, 2025

@bkontur the modified code is only common.js The main function of store_chunked_data.js and store_big_data.js are same. May be we should merge examples adding documentation instead.

Let's keep it as it is, but first, let's start to use PAPI here also, we merged PAPI example:

if (i > 0 && i % MAX_CHUNKS == 0) {
      await waitForNewBlock();
}

with something sophisticated, we will just push transactions/chunks in the loop until it returns some error "Block is full or similar error", then the loop will wait for another block and again continues to push chunks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants