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
currently, running arbitrary bot actions back-to-back can't be done right away. that's because the second execution instantiates its wallet from the chainsync process running in the background, which may be a few milliseconds behind. I found a time.sleep(1) call to be sufficient to let it catch up. however, this is a bit messy and sub-optimal. Avoiding that would be ideal. A few ways to do so are:
create a wait_for_data() function which waits for chainsync to update to the latest block
allow instantiating bot wallets directly from the chain, without the use of chainsync. as discussed at the offsite, this is the only case where bots require the data backend to run, so creating an alternate method would remove this dependency.
The text was updated successfully, but these errors were encountered:
This is a known issue. Unfortunately, solution number 2 isn't feasible because anvil loses state after some time, and getting shorts/longs needs deltas from the beginning of time. I'll look into solution 1, but on the server side to ensure the analysis pipeline is up to date before returning
currently, running arbitrary bot actions back-to-back can't be done right away. that's because the second execution instantiates its wallet from the chainsync process running in the background, which may be a few milliseconds behind. I found a
time.sleep(1)
call to be sufficient to let it catch up. however, this is a bit messy and sub-optimal. Avoiding that would be ideal. A few ways to do so are:wait_for_data()
function which waits for chainsync to update to the latest blockThe text was updated successfully, but these errors were encountered: