solana-labs / solana

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

v1.3: Upgrade loader ABI on testnet #11569

Closed jackcmay closed 4 years ago

jackcmay commented 4 years ago

Problem

Needs to be updated for testnet

https://github.com/solana-labs/solana/blob/57174cdabed9821b529ed359eab759f7b28f52c4/runtime/src/bank.rs#L3243

This needs the epoch added in the same way at solana_bpf_loader_deprecated_program is in the lines above this code:

https://github.com/solana-labs/solana/blob/57174cdabed9821b529ed359eab759f7b28f52c4/genesis-programs/src/lib.rs#L121

And a collection of PRs must be backported

Proposed Solution

ryoqun commented 4 years ago

(just for fun and fyi)

great work! maybe this is the biggest patch release ever for solana. ;)

$ (export V=v1.3 && paste <(git tag -l | grep $V | sort -V | tail -n +1) <(git tag -l | grep $V | sort -V | tail -n +2 && echo origin/$V) | sed 's/\t/../' | grep '.\.\..' | (while read range; do (set -x && git log --reverse --oneline $range :**.rs) && git diff --shortstat $range :**.rs && echo; done) 2>&1) | cat:

+ git log --reverse --oneline v1.3.0..v1.3.1 ':**.rs'
fa9aa0a1d7 Token Accounts: return ui_amount, decimals with decoded account (#11407) (#11453)
f9d6fb48a4 Send votes from banking stage to vote listener (#11434) (#11454)
71654c0457 Fix cbindgen compatibility (#11455) (#11459)
 31 files changed, 599 insertions(+), 307 deletions(-)

+ git log --reverse --oneline v1.3.1..v1.3.2 ':**.rs'
a1b238280b Return delegated amount as UiTokenAmount (#11475) (#11477)
8a67504578 Add Binary64 option for account data (#11474) (#11481)
3e483314b6 Decode native-program and sysvar accounts (bp #11463) (#11485)
27815555a1 Fallback to base64 account encoding if json parse fails (#11483) (#11488)
520453e1f3 Blockstore address signatures: handle slots that cross primary indexes, and refactor get_confirmed_signatures_for_address2 (#11497) (#11508)
88cf5e79f5 Unified signature for create_program_address (#11460) (#11509)
eb7ac42b2e Return account data size with parsed accounts (#11506) (#11511)
23a381b995 Fix parsing of spl-token Mint (#11512) (#11514)
1589a41178 Add config param to specify offset/length for single and program account info (bp #11515) (#11518)
83597a5ce1 Fix solana CLI deploy (#11520) (#11530)
53e917b54f Fix bad rent in Bank::deposit as if since epoch 0 (#10468) (#11539)
6a60d7bf8e Adapt RpcClient to recent token method changes (#11519) (#11548)
61af485732 filter out old gossip pull requests (#11448) (#11553)
b8ac76066c Move cluster slots update to separate thread (#11523) (#11558)
69e53ec92a Gossip log (#11555) (#11562)
 36 files changed, 1927 insertions(+), 639 deletions(-)

+ git log --reverse --oneline v1.3.2..v1.3.3 ':**.rs'
b9f46fd904 Fix assertion failure (#11572) (#11590)
311d9a56c4 Add incoming pull response counter (#11591) (#11592)
8ee656edde Return blockstore signatures-for-address despite bigtable error (#11594) (#11599)
ba05852475 generate_pull_response optimization (#11597) (#11606)
011e325359 Ensure highest_confirmed_root only grows (#11596) (#11608)
4f7bfbdbe9 RPC: getConfirmedSignaturesForAddress2 only returns confirmed signatures (#11615) (#11618)
ecb75ccdcf short_vec::decode_len() returns wrong size for aliased values (bp #11624) (#11631)
 9 files changed, 395 insertions(+), 88 deletions(-)

+ git log --reverse --oneline v1.3.3..v1.3.4 ':**.rs'
15b92e9c8d Bigtable: Use index to filter address-signatures correctly (#11622) (#11643)
9015e47cc5 Rpc: Add until parameter for getConfirmedSignaturesForAddress2 (#11644) (#11648)
d9ae092637 Re-do rent collection check on rent-exempt account (bp #11349) (#11655)
41cad9ccd5 Faucet: Add per-request cap (#11665) (#11669)
e41004f185 rpc: rework binary encoding.  BREAKING CHANGE (bp #11646) (#11674)
0ef9185c9e Fully enable cross program support in mainnet-beta
8738241567 Get index (#11694) (#11697)
2c642d4639 Filter push/pulls from spies (#11620) (#11703)
a8220ae653 The end_slot argument to purge is now optional (#11707)
b36510a565 Skip grace blocks if previous leader was on different fork (#11679) (#11709)
 29 files changed, 736 insertions(+), 308 deletions(-)

+ git log --reverse --oneline v1.3.4..origin/v1.3 ':**.rs'
6c03e6c4b5 Allow votes to timestamp subsequent slots with the same timestamp (#11715) (#11720)
e938925b95 Add BanksClient (#11721)
e41d9c87c5 Bump spl-token to clean up magic number (bp #11726) (#11738)
d3ab1ec9cf Do not delete any ledger when `--limit-ledger-size` is not provided (#11741)
096375584b Rpc: Return error if block does not exist (#11743) (#11749)
a9f914da8e Cleanup test utilities  (#11766)
4be9d5030d Squash supermajority root on blockstore replay at startup (#11727) (#11765)
6775e01747 Add StakeInstruction::AuthorizeWithSeed (#11700) (#11779)
cdf6ff7907 Fix filter_crds_values output alignment with the inputs (#11734) (#11781)
2b4e0abb43 fix region checks (#11651) (#11785)
a227b813d8 Feature check CPI up front (#11652) (#11787)
6540d3c63e Make BPF Loader static (bp #11516) (#11790)
2d9781b101 Add option for repairing only from trusted validators (#11752) (#11773)
132550cd7a RPC: Allow the sendTransaction preflight commitment level to be configured (bp #11792) (#11794)
f5e583ef0d `solana-gossip spy` can now be given an identity keypair (`--identity` argument) (#11797)
79a2ccabb4 Return an error from create_program_address syscall (bp #11658) (#11789)
0dcbc6d4d1 The constraints on compute power a program can consume is limited only to its instruction count (bp #11717) (#11800)
67bf7515a7 Aligned program heap (#11657) (#11812)
f3904b5765 sdk: Make PubKey::create_program_address available in program unit tests (bp #11745) (#11810)
f162c6d1d0 Align host addresses (bp #11384) (#11817)
08bece7651 More efficient padding (#11656) (#11823)
ad36ddedf1 CPI support for bpf_loader_deprecated (bp #11695) (#11824)
c8e1fbd568 Update comment (#11826) (#11827)
d05b39c4f6 Specify loader when bootstrapping bpf programs (#11571) (#11822)
6749bfd1d2 Gate aligned program heap (bp #11808) (#11814)
4e604e1211 Add (hidden) --use-deprecated-loader flag to `solana deploy` (#11828)
62e3c084d3 Update system tuning and docs (bp #11680) (#11830)
d5d1a344c3 Switch programs activation to whole-set based gating (bp #11750) (#11837)
39eeb0142e Add SystemInstruction::CreateAccount support to CPI (bp #11649) (#11831)
99001f7f2e Bump MacOS nofile recommendation message (#11835)
 70 files changed, 4531 insertions(+), 1206 deletions(-)
mvines commented 4 years ago

maybe this is the biggest patch release ever for solana. ;)

😱

ryoqun commented 4 years ago

maybe this is the biggest patch release ever for solana. ;)

scream

Well, my oneliner was a bit wrong. The number is reduced but it's still some patch release. :)

jackcmay commented 4 years ago

😱

jackcmay commented 4 years ago

All mentioned backporting and gating complete on v1.3