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
because of syscalls, we do not need to pass in any sysvar accounts. we can also get rid of stake config entirely. to preserve the interface for past transactions, we can skip the relevant accounts in a wrapper on next_account_info()
this should (in the case of clock and rent) and absolutely will greatly (in the case of stake history) reduce CU usage because these accounts do not need to be parsed into AccountInfos. it will also make transactions that use stake account instructions typically 32-128 bytes smaller
this was not done for the initial version on purpose because above all else except correctness, we prioritized following the native stake program as closely as possible, to de-risk the native/bpf switchover. but this is probably the first pr i will land after launch
The text was updated successfully, but these errors were encountered:
2501babe
changed the title
program: remove all sysvar pubkeys from instructions interface
remove all sysvar pubkeys from instructions interface
Feb 11, 2025
because of syscalls, we do not need to pass in any sysvar accounts. we can also get rid of stake config entirely. to preserve the interface for past transactions, we can skip the relevant accounts in a wrapper on
next_account_info()
this should (in the case of clock and rent) and absolutely will greatly (in the case of stake history) reduce CU usage because these accounts do not need to be parsed into
AccountInfo
s. it will also make transactions that use stake account instructions typically 32-128 bytes smallerthis was not done for the initial version on purpose because above all else except correctness, we prioritized following the native stake program as closely as possible, to de-risk the native/bpf switchover. but this is probably the first pr i will land after launch
The text was updated successfully, but these errors were encountered: