Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

write and read operations sequentially in one round #273

Open
ZhaoYP-2001 opened this issue Feb 20, 2025 · 2 comments
Open

write and read operations sequentially in one round #273

ZhaoYP-2001 opened this issue Feb 20, 2025 · 2 comments

Comments

@ZhaoYP-2001
Copy link

When using hyperledger caliper, I want to submit a transaction to write something in the world state and then read it later.
A basic solution is that I use two rounds, the first for writing and the second for reading.
However, I want to read it immediately after a successful write, which means I need to do the write and read operations sequentially in one round.
How can I achieve this?

@davidkel
Copy link
Contributor

never tried but you could look at writing a workload that submits a write, waits for it using await, then submit a read.

@davidkel
Copy link
Contributor

davidkel commented Feb 25, 2025

As an aside, this issue would be better asked on the caliper discord channel or if absolutely necessary on the caliper github repo rather than the samples benchmark repo.

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

No branches or pull requests

2 participants