blockworks-foundation / liquidator-v3

Mango Markets V3 Liquidator Bot
MIT License
309 stars 111 forks source link

Optional commitment level #20

Closed ricardojmendez closed 2 years ago

ricardojmendez commented 2 years ago

The Triton team recommends using the commitment level confirmed in order to avoid BlockhashNotFound errors. Adding a parameter.

mschneider commented 2 years ago

Oh i see, you probably want to specify confirmed only on the getRecentBlockhash request, rather then on the account data reading requests.

riordanp commented 2 years ago

The latest mango-client uses confirmed blockhashes by default. Config option for the connection might be useful anyway.