Too slow while simulating the contract deployed on mainnet #4613
Unanswered
UselessXiaoYao
asked this question in
Troubleshooting
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Recently, I have an idea to simulate some contracts that deployed on mainnet, in order to get tax, price and such things about them.
But when I test it, I found the efficiency is too low.
For example, I designed a progress to get the tax of sell/buy/transfer of the token MOROS(0xab85fc558d722a2b7c040ffb77db676bd9e7d322), but the transfer function call consume almost 6 seconds once.
And I watched my machine resource of CPU/MEM/Network, none of them ran out of.
Below is a piece of my code:
So, whether it's a wrong way to do such simulations? Or is there a fast solutions?
Beta Was this translation helpful? Give feedback.
All reactions