We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 64a9943 commit 93606b2Copy full SHA for 93606b2
1 file changed
pxsol/rpc.py
@@ -5,6 +5,7 @@
5
import pxsol.rate
6
import random
7
import requests
8
+import time
9
import typing
10
11
# Doc: https://solana.com/docs/rpc/http
@@ -31,6 +32,7 @@ def wait(sigs: typing.List[str]) -> None:
31
32
remain = sigs.copy()
33
for _ in itertools.repeat(0):
34
pxsol.log.debugln(f'pxsol: transaction wait unconfirmed={len(remain)}')
35
+ time.sleep(max(0.5, 1 / pxsol.config.current.rpc.qps))
36
if len(remain) == 0:
37
break
38
oldest = remain[:256]
0 commit comments