Despite skip_preflight
being true
, preflight_commitment
is nevertheless used
#479
Labels
skip_preflight
being true
, preflight_commitment
is nevertheless used
#479
Problem
I think that people have an expectation that
skip_preflight
makes it so that the value ofpreflight_commitment
is not used. In fact it's used unconditionally to prepare the ‘preflight bank’:https://github.com/anza-xyz/agave/blob/master/rpc/src/rpc.rs#L3650-L3653
…from which we compute the
last_valid_block_height
:https://github.com/anza-xyz/agave/blob/master/rpc/src/rpc.rs#L3658-L3660
…and the
address_loader
forsanitize_transaction
:https://github.com/anza-xyz/agave/blob/master/rpc/src/rpc.rs#L3655
Is it possible that this could nevertheless materially change
send_transaction's
behaviour? @t-nelson suggested:Proposed Solution
Only use the
preflight_commitment
whenskip_preflight
istrue
.The text was updated successfully, but these errors were encountered: