solana-labs / solana

Web-Scale Blockchain for fast, secure, scalable, decentralized apps and marketplaces.
https://solanalabs.com
Apache License 2.0
13.19k stars 4.3k forks source link

Versioned Transaction and Address Lookup Table feature activation #26391

Closed jstarry closed 8 months ago

jstarry commented 2 years ago

Problem

Support for versioned transactions and the new address lookup table feature hasn't been enabled on the mainnet-beta cluster yet. Enabling this feature is critical for allowing users to read / write more accounts in a single atomic transaction.

Rollout Plan

staccDOTsol commented 2 years ago

Wen mainnet-beta?

got here via https://github.com/staccDOTsol/address-lookup-table-multi-swap

kidding lol wp

a-broz commented 2 years ago

Any update on this being merged ?

jstarry commented 2 years ago

The changes are merged but guides are still in progress. We are targeting a launch at the end of September assuming that all parties have enough time to prepare.

Broever101 commented 2 years ago

Is there any demo of using address lookup table and version transaction ?

This might help a little https://medium.com/@antematterio/how-to-use-address-lookup-tables-in-solana-e2fe42dcc101

pindaroso commented 2 years ago

@jstarry Just checking in. Is this on mainnet? Thanks!

jstarry commented 2 years ago

Targeting Oct 7th for activation

Arrowana commented 2 years ago

Note, activation tomorrow but latest cli does not have #27123 in solana-cli 1.14.3

staccDOTsol commented 2 years ago

Note, Lfg. https://twitter.com/staccoverflow/status/1577917150425235461?s=46&t=mfi-ZbpDnc34scupUFCtYQ

boucheravi commented 2 years ago

still on for a 7th october activation? have heard some rumors of the update being paused for now

jstarry commented 2 years ago

Pushing back one more epoch to avoid activating on the weekend in case any service get disrupted due to the new transaction version. So the new date is Monday, Oct 10th.

boucheravi commented 2 years ago

thanks for the update!

staccDOTsol commented 2 years ago

one

more

epoch

exp0nge commented 2 years ago

~Have there been noticeable getBlock perf. hits with this or did a new index get added that needs to be added to get the same perf as prior to activation?~

bmeeder22 commented 2 years ago

Did this ever get activated?

a26nine commented 2 years ago

Did this ever get activated?

Yes, it did. A few weeks ago...

omarkilani commented 1 year ago

Hi @jstarry,

Just wondering if I'm understanding this correctly, but if an ALT is deactivated and closed, it seems to mean that a message which references that ALT can no longer load any addresses belonging to that ALT?

jstarry commented 1 year ago

Hi @jstarry,

Just wondering if I'm understanding this correctly, but if an ALT is deactivated and closed, it seems to mean that a message which references that ALT can no longer load any addresses belonging to that ALT?

Yeah, that's correct.

statikdev commented 1 year ago

Hi @jstarry,

Just wondering if I'm understanding this correctly, but if an ALT is deactivated and closed, it seems to mean that a message which references that ALT can no longer load any addresses belonging to that ALT?

Yeah, that's correct.

If an account referenced in the ALT is no longer accessible, that would cause history to be lost from running getSignaturesForAddress or trying to associate that account to the transaction, right?

What is the reason for allowing closing of an ALT?

CriesofCarrots commented 1 year ago

No, there shouldn't be any history lost. The data supporting getSignaturesForAddress and other RPC endpoints gets stored in rocksdb when the transaction is processed, and duplicated to bigtable from there.

omarkilani commented 1 year ago

No, there shouldn't be any history lost. The data supporting getSignaturesForAddress and other RPC endpoints gets stored in rocksdb when the transaction is processed, and duplicated to bigtable from there.

Hey @CriesofCarrots , does this mean loadedAddresses from getTransaction still returns the right data even when the ALT account is closed?

CriesofCarrots commented 1 year ago

Hey @CriesofCarrots , does this mean loadedAddresses from getTransaction still returns the right data even when the ALT account is closed?

Yes, that's correct.

omarkilani commented 1 year ago

Hey @CriesofCarrots , does this mean loadedAddresses from getTransaction still returns the right data even when the ALT account is closed?

Yes, that's correct.

Awesome!

Thanks for your quick response!

statikdev commented 1 year ago

No, there shouldn't be any history lost. The data supporting getSignaturesForAddress and other RPC endpoints gets stored in rocksdb when the transaction is processed, and duplicated to bigtable from there.

đź‘Ť .

When walking backwards through transactions, if the ALT is not accessible, what would be the best way to find a referenced account?

EDIT: Disregard. Outdated as I wrote it and submitted without seeing the other comments..

a26nine commented 1 year ago

Is there any demo of using address lookup table and version transaction ?

This might help a little https://medium.com/@antematterio/how-to-use-address-lookup-tables-in-solana-e2fe42dcc101

Any example to use to create the version transaction using PDA ?

https://blog.a26nine.dev/address-lookup-tables-and-versioned-transactions-on-solana