I was concurrently running 2 bash scripts (doing the same thing). The script calls sendwithdata via multichain-cli and then let it sleep for 1 second, increment counter (to see how many transactions it has created), repeat. The scripts were running for roughly 6 days. I checked today and noticed that it is now very slow for a transaction to complete. I used time command to get the output and got the result as follows:
time multichain-cli registryv2-rnd sendwithdata 18uEqFhANZs1Ktjd9CeorNShJjcWNn5RddmS4y 0 7B6D6573736167653A202754657374696E67277D
{"method":"sendwithdata","params":["18uEqFhANZs1Ktjd9CeorNShJjcWNn5RddmS4y",0,"7B6D6573736167653A202754657374696E67277D"],"id":1,"chain_name":"registryv2-rnd"}
b759d511d9ebf05cf2053d33ac4b8469018936bbd77961dc8ddb503fa1c35b96
real 0m4.587s
user 0m0.004s
sys 0m0.004s
Any insights why it seems to choke? Any optimization that I can do to make it faster again?
Thanks.