You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Need to do some CPU synchronous computation ( for like 50-100ms) as fast as possible after the transaction data from sendTransaction() gets to the "kernel zone" but I dont want to block somehow the NodeJS event loop so my sendTransaction() gets delayed.
I am not very familiar with NodeJS and from the ethers.js code I can't figure out if sendTransaction() will send in a kind of "sync-ed"way the bytes on the socket .
There should be no "drain" events I guess since this operation is a one-time situation for the life of my running program.
Could somebody give me some hints about how should I approach this problem with ethers.js ?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
Need to do some CPU synchronous computation ( for like 50-100ms) as fast as possible after the transaction data from sendTransaction() gets to the "kernel zone" but I dont want to block somehow the NodeJS event loop so my sendTransaction() gets delayed.
I am not very familiar with NodeJS and from the ethers.js code I can't figure out if sendTransaction() will send in a kind of "sync-ed"way the bytes on the socket .
There should be no "drain" events I guess since this operation is a one-time situation for the life of my running program.
Could somebody give me some hints about how should I approach this problem with ethers.js ?
Thanks,
Valentin
Beta Was this translation helpful? Give feedback.
All reactions