-
Notifications
You must be signed in to change notification settings - Fork 3
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
feat: add optional CBOR representation to GET_TRANSACTION #270
Conversation
dde7d59
to
09b3697
Compare
6b5678c
to
0b4ce7e
Compare
09b3697
to
36edc11
Compare
0b4ce7e
to
1a90ca0
Compare
7eee599
to
36b7266
Compare
99ba285
to
671636e
Compare
let promises = []; | ||
|
||
// run thousands of fetchTransactionData | ||
// (promise limiter concurrency set to 500 by default) | ||
for (let i = 0; i < 5000; i++) { | ||
promises.push( | ||
transactionUtils.fetchTransactionData(`txHash-${i}`).then(data => { | ||
transactionUtils.fetchTransactionData(`txHash-${i}`, Math.random() > 0.3).then(data => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
transactionUtils.fetchTransactionData(`txHash-${i}`, Math.random() > 0.3).then(data => { | |
transactionUtils.fetchTransactionData(`txHash-${i}`, true).then(data => { |
Let's just enable it for all calls. Introducing randomness won't make the test more useful and could just make it flaky. We could add another test if it make sense to test cbor=false
param, but I think we are good.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
7d3b2b9 should solve this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 please rebase and squash
7d3b2b9
to
5f3ab98
Compare
Partially solves #253