mergify[bot]
2720b939fd
Calculate accounts hash async in accounts background service ( #12852 ) ( #13244 )
...
(cherry picked from commit 456eae6ccb
)
Co-authored-by: sakridge <sakridge@gmail.com >
2020-10-28 21:20:07 +00:00
mergify[bot]
c1a55bf249
Improve final report of ledger-tool capitalization ( #13232 ) ( #13236 )
...
(cherry picked from commit 4698ee5e4a
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2020-10-28 18:45:19 +00:00
mergify[bot]
eecdacac42
Don't hold dashmap write lock in store create ( #13007 ) ( #13230 )
...
Co-authored-by: Carl Lin <carl@solana.com >
(cherry picked from commit c8fc0a6ba1
)
Co-authored-by: carllin <wumu727@gmail.com >
2020-10-28 11:36:28 +00:00
mergify[bot]
429f130532
Switch accounts storage lock to DashMap ( #12126 ) ( #13223 )
...
Co-authored-by: Carl Lin <carl@solana.com >
(cherry picked from commit f8d338c9cb
)
Co-authored-by: carllin <wumu727@gmail.com >
2020-10-28 08:07:28 +00:00
mergify[bot]
19b9839dfc
Use pico inflation for ledger-tool capitalization --enable-inflation ( #13215 ) ( #13222 )
...
* Use pico inflation for ledger-tool capitalization --enable-inflation
* rust fmt
(cherry picked from commit 7d2962135d
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2020-10-28 07:40:21 +00:00
mergify[bot]
86eb0157c0
Account for forward delay in transaction simulation ( #13199 ) ( #13201 )
...
(cherry picked from commit 631f029fe9
)
Co-authored-by: Justin Starry <justin@solana.com >
2020-10-27 18:35:43 +00:00
mergify[bot]
4ecb78d303
Move KeyedAccount out of solana-program. Native programs are not supported by solana-program (bp #13159 ) ( #13181 )
...
* Move KeyedAccount out of solana-program. Native programs are not supported by solana-program
(cherry picked from commit 1b343665a1
)
# Conflicts:
# programs/bpf/benches/bpf_loader.rs
* rebase
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-10-27 05:43:14 +00:00
mergify[bot]
f334c3b895
Add Bank::get_signature_status_with_blockhash() ( #13167 ) ( #13178 )
...
Get the signature status in O(1) time, instead of O(n) where
n is the number of blockhashes in the StatusCache.
(cherry picked from commit f58bc8589d
)
Co-authored-by: Greg Fitzgerald <greg@solana.com >
2020-10-27 01:29:16 +00:00
Michael Vines
597618846b
Bump version to v1.4.4
2020-10-24 22:10:32 +00:00
mergify[bot]
eb9cef0cd4
Separate the "program" feature of solana-sdk
into a new crate called solana-program
(bp #12989 ) ( #13131 )
...
* Add solana-program-sdk boilerplate
(cherry picked from commit 3718771ffb
)
# Conflicts:
# sdk/Cargo.toml
* Initial population of solana-program-sdk
(cherry picked from commit 63db324204
)
# Conflicts:
# Cargo.lock
* Port programs to solana-program-sdk
(cherry picked from commit fe68f7f786
)
# Conflicts:
# programs/bpf/Cargo.lock
# programs/bpf/rust/128bit/Cargo.toml
# programs/bpf/rust/128bit_dep/Cargo.toml
# programs/bpf/rust/alloc/Cargo.toml
# programs/bpf/rust/call_depth/Cargo.toml
# programs/bpf/rust/custom_heap/Cargo.toml
# programs/bpf/rust/dep_crate/Cargo.toml
# programs/bpf/rust/deprecated_loader/Cargo.toml
# programs/bpf/rust/dup_accounts/Cargo.toml
# programs/bpf/rust/error_handling/Cargo.toml
# programs/bpf/rust/external_spend/Cargo.toml
# programs/bpf/rust/instruction_introspection/Cargo.toml
# programs/bpf/rust/invoke/Cargo.toml
# programs/bpf/rust/invoked/Cargo.toml
# programs/bpf/rust/iter/Cargo.toml
# programs/bpf/rust/many_args/Cargo.toml
# programs/bpf/rust/many_args_dep/Cargo.toml
# programs/bpf/rust/noop/Cargo.toml
# programs/bpf/rust/panic/Cargo.toml
# programs/bpf/rust/param_passing/Cargo.toml
# programs/bpf/rust/param_passing_dep/Cargo.toml
# programs/bpf/rust/rand/Cargo.toml
# programs/bpf/rust/ristretto/Cargo.toml
# programs/bpf/rust/sanity/Cargo.toml
# programs/bpf/rust/sha256/Cargo.toml
# programs/bpf/rust/sysval/Cargo.toml
* Only activate legacy program feature for the solana-sdk crate
(cherry picked from commit 85c51f5787
)
* Run serum-dex unit tests
(cherry picked from commit 92ce381d60
)
* Rename solana-program-sdk to solana-program
(cherry picked from commit dd711ab5fb
)
# Conflicts:
# programs/bpf/rust/128bit/Cargo.toml
# programs/bpf/rust/128bit_dep/Cargo.toml
# programs/bpf/rust/alloc/Cargo.toml
# programs/bpf/rust/call_depth/Cargo.toml
# programs/bpf/rust/custom_heap/Cargo.toml
# programs/bpf/rust/dep_crate/Cargo.toml
# programs/bpf/rust/deprecated_loader/Cargo.toml
# programs/bpf/rust/dup_accounts/Cargo.toml
# programs/bpf/rust/error_handling/Cargo.toml
# programs/bpf/rust/external_spend/Cargo.toml
# programs/bpf/rust/instruction_introspection/Cargo.toml
# programs/bpf/rust/invoke/Cargo.toml
# programs/bpf/rust/invoked/Cargo.toml
# programs/bpf/rust/iter/Cargo.toml
# programs/bpf/rust/many_args/Cargo.toml
# programs/bpf/rust/many_args_dep/Cargo.toml
# programs/bpf/rust/noop/Cargo.toml
# programs/bpf/rust/panic/Cargo.toml
# programs/bpf/rust/param_passing/Cargo.toml
# programs/bpf/rust/param_passing_dep/Cargo.toml
# programs/bpf/rust/rand/Cargo.toml
# programs/bpf/rust/ristretto/Cargo.toml
# programs/bpf/rust/sanity/Cargo.toml
# programs/bpf/rust/sha256/Cargo.toml
# programs/bpf/rust/sysval/Cargo.toml
* Update frozen_abi hashes
The movement of files in sdk/ caused ABI hashes to change
(cherry picked from commit a4956844bd
)
* Resolve merge conflicts
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-10-24 17:25:22 +00:00
mergify[bot]
38f7e9a979
shrink debug ( #13089 ) ( #13109 )
...
(cherry picked from commit 7d2729f6bd
)
Co-authored-by: sakridge <sakridge@gmail.com >
2020-10-23 17:02:00 +00:00
Trent Nelson
53b074aa35
Bump version to 1.4.3
2020-10-23 04:20:28 +00:00
mergify[bot]
edfbd8d65a
Add replacements for Pubkey::new_rand()/Hash::new_rand() (bp #12987 ) ( #13076 )
...
* Add pubkey_new_rand(), mark Pubkey::new_rand() deprecated
(cherry picked from commit 0e68ed6a8d
)
* Add hash_new_rand(), mark Hash::new_rand() as deprecated
(cherry picked from commit 76f11c7dae
)
* Run `codemod --extensions rs Pubkey::new_rand solana_sdk::pubkey::new_rand`
(cherry picked from commit 7bc073defe
)
# Conflicts:
# programs/bpf/benches/bpf_loader.rs
# runtime/benches/accounts.rs
# runtime/src/accounts.rs
* Run `codemod --extensions rs Hash::new_rand solana_sdk:#️⃣ :new_rand`
(cherry picked from commit 17c391121a
)
* Remove unused pubkey::Pubkey imports
(cherry picked from commit 959880db60
)
# Conflicts:
# runtime/src/accounts_index.rs
* Resolve conflicts
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-10-22 05:08:01 +00:00
mergify[bot]
5dd61b5db2
Port various rent fixes to runtime feature ( #12842 ) ( #13068 )
...
* Port various rent fixes to runtime feature
* Fix CI
* Use more consistent naming...
(cherry picked from commit 608b81b412
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2020-10-21 14:47:48 +00:00
mergify[bot]
b143b9c3c2
Remove frozen ABI modules from solana-sdk (bp #13008 ) ( #13036 )
...
* Remove frozen ABI modules from solana-sdk
(cherry picked from commit 6858950f76
)
# Conflicts:
# Cargo.lock
# core/Cargo.toml
# frozen-abi/macro/Cargo.toml
# programs/bpf/Cargo.lock
# programs/stake/Cargo.toml
# programs/vote/Cargo.toml
# runtime/Cargo.toml
# sdk/Cargo.toml
# version/Cargo.toml
* rebase
* fix broken ci (#13039 )
Co-authored-by: Michael Vines <mvines@gmail.com >
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2020-10-21 02:00:45 +00:00
mergify[bot]
9da2ac7a44
passes through feature-set to gossip requests handling ( #12878 ) ( #12991 )
...
* passes through feature-set to down to gossip requests handling
* takes the feature-set from root_bank instead of working_bank
(cherry picked from commit 48283161c3
)
Co-authored-by: behzad nouri <behzadnouri@gmail.com >
2020-10-20 18:25:44 +00:00
mergify[bot]
94cad9873c
Support Debug Bank ( #13017 ) ( #13019 )
...
(cherry picked from commit c0675968b1
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2020-10-20 17:20:40 +00:00
mergify[bot]
0008dc62e4
Fix zero-lamport accounts preventing slot cleanup ( #12606 ) ( #12969 )
...
Co-authored-by: Carl Lin <carl@solana.com >
(cherry picked from commit 16d45b8480
)
Co-authored-by: carllin <wumu727@gmail.com >
2020-10-19 07:07:08 +00:00
Trent Nelson
f3c986385f
Bump version to 1.4.2
2020-10-15 20:26:29 +00:00
mergify[bot]
3df811348f
program log pubkey as base58 (bp #12901 ) ( #12911 )
...
* program log pubkey as base58 (#12901 )
(cherry picked from commit 3f9e6a600b
)
# Conflicts:
# programs/bpf/benches/bpf_loader.rs
# programs/bpf/c/src/tuner/tuner.c
* resolve conflicts
* fix bench conflict
Co-authored-by: Jack May <jack@solana.com >
2020-10-15 19:40:20 +00:00
mergify[bot]
fef979f0e5
Don't report RewardType::Fee when none was awarded ( #12877 )
...
(cherry picked from commit 4b04ed86b6
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-10-14 17:15:41 +00:00
Trent Nelson
6e91996606
Bump version to 1.4.1
2020-10-14 03:05:04 +00:00
mergify[bot]
6d70a06b23
Add nop feature set for upcoming ported rent fixes ( #12841 ) ( #12847 )
...
(cherry picked from commit 7de7efe96c
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2020-10-13 17:47:59 +00:00
mergify[bot]
9797c93db3
fix native_loader behavior for invalid accounts ( #12814 ) ( #12819 )
...
(cherry picked from commit c24da1ee16
)
Co-authored-by: Jack May <jack@solana.com >
2020-10-12 22:14:56 +00:00
mergify[bot]
1f102d2617
Move no-0-rent rent dist. behavior under feature ( #12804 ) ( #12811 )
...
(cherry picked from commit 2f5bb7e507
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2020-10-12 09:57:32 +00:00
mergify[bot]
ed06e8b85d
Pacify cargo audit
(bp #12797 ) ( #12799 )
...
* Bump reqwest/rayon to get past `cargo audit`
(cherry picked from commit 8a119c1483
)
# Conflicts:
# dos/Cargo.toml
# download-utils/Cargo.toml
# metrics/Cargo.toml
* Switch to tempfile
(cherry picked from commit d3b0f87a49
)
* Rework cargo audit ignores
(cherry picked from commit 2301dcf973
)
* Cargo.lock
(cherry picked from commit 859eb606da
)
* rebase
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-10-12 04:29:55 +00:00
mergify[bot]
10b9225edb
Don't bother paying 0 rent ( #12793 )
...
(cherry picked from commit 1fc7c1ecee
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-10-10 18:12:14 +00:00
mergify[bot]
3fef98fd1e
Expose all rewards (fees, rent, voting and staking) in RPC getConfirmedBlock and the cli (bp #12768 ) ( #12790 )
...
* Expose all rewards (fees, rent, voting and staking) in RPC getConfirmedBlock and the cli
(cherry picked from commit c5c8da1ac0
)
# Conflicts:
# Cargo.lock
# transaction-status/Cargo.toml
* fix: surface full block rewards type
(cherry picked from commit 1b16790325
)
* resolve conflicts
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-10-10 06:11:42 +00:00
mergify[bot]
567a1cb944
Correct Bank timestamp drift every slot ( #12737 ) ( #12777 )
...
* Move timestamp helper to sdk
* Add Bank method for getting timestamp estimate
* Return sysvar info from Bank::clock
* Add feature-gated timestamp correction
* Rename unix_timestamp method to be more descriptive
* Review comments
* Add timestamp metric
(cherry picked from commit b028c47d2b
)
# Conflicts:
# runtime/src/feature_set.rs
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2020-10-10 00:42:44 +00:00
mergify[bot]
7a1889aaf9
Add adjustable stack size and call depth (bp #12728 ) ( #12770 )
...
* Add adjustable stack size and call depth (#12728 )
(cherry picked from commit c3907be623
)
# Conflicts:
# programs/bpf/Cargo.toml
# programs/bpf_loader/Cargo.toml
* resolve conflicts
Co-authored-by: Jack May <jack@solana.com >
2020-10-09 22:08:01 +00:00
mergify[bot]
9188153b7d
Fix fee mismatch on snapshot deserialize ( #12697 ) ( #12754 )
...
Co-authored-by: Carl Lin <carl@solana.com >
(cherry picked from commit c879e7c1ad
)
Co-authored-by: carllin <wumu727@gmail.com >
2020-10-09 20:21:50 +00:00
mergify[bot]
4b9f2e987a
Bump max invoke depth to 4 ( #12742 ) ( #12764 )
...
(cherry picked from commit 2cd7cd3149
)
Co-authored-by: Jack May <jack@solana.com >
2020-10-09 18:49:44 +00:00
mergify[bot]
dd32540ceb
Add inflation_kill_switch feature ( #12749 )
...
(cherry picked from commit c8807d227a
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-10-09 05:55:51 +00:00
mergify[bot]
7a53ca18a6
Store program logs in blockstore / bigtable (TransactionWithStatusMeta) ( #12678 ) ( #12735 )
...
* introduce store program logs in blockstore / bigtable
* fix test, transaction logs created for successful transactions
* fix test for legacy bincode implementation around log_messages
* only api nodes should record logs
* truncate transaction logs to 100KB
* refactor log truncate for improved coverage
(cherry picked from commit 8f5431551e
)
Co-authored-by: Josh <josh.hundley@gmail.com >
2020-10-08 20:19:26 +00:00
Jack May
973f0965e1
Add ristretto multiply syscall ( #12699 )
2020-10-06 23:52:13 -07:00
carllin
64c4861e04
Fix error in max root calculation ( #12661 )
...
Co-authored-by: Carl Lin <carl@solana.com >
2020-10-03 15:18:58 -07:00
carllin
adf6f748c0
Disable rent in flaky test ( #12658 )
...
* Disable rent in test
Co-authored-by: Carl Lin <carl@solana.com >
2020-10-03 12:44:03 -07:00
Jack May
adeb06e550
Check CPI program is executable ( #12644 )
2020-10-02 13:55:22 -07:00
Ryo Onodera
e3773d919c
Avoid overflow when computing rent distribution ( #12112 )
...
* Avoid overflow when computing rent distribution
* Use assert_eq!....
* Fix tests
* Add test
* Use FeatureSet
* Add comments
* Address review comments
* Tweak a bit.
* Fix fmt
2020-10-01 11:59:28 +09:00
Tyera Eulberg
c31a34fbcb
Include post balance information for rewards ( #12598 )
...
* Include post balance information for rewards
* Add post-balance to stored Reward struct
* Handle extended Reward in bigtable
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-09-30 17:57:06 -06:00
Jack May
058bca6632
add sha256 syscall ( #12569 )
2020-09-29 23:29:20 -07:00
Trent Nelson
3c7b9c2938
Move remaining nonce utils from runtime to SDK
2020-09-30 05:45:42 +00:00
Trent Nelson
65b868f4eb
Move nonced tx helpers to SDK
2020-09-30 05:45:42 +00:00
Trent Nelson
caec631344
runtime: Move prepare_if_nonce_account into accounts
2020-09-30 05:45:42 +00:00
Michael Vines
f57af4fec2
epoch_rewards datapoint now includes the correct rewards epoch (previous epoch)
2020-09-29 22:44:02 -07:00
Jack May
575400c83f
Run tests with features on rather then off ( #12567 )
2020-09-29 20:18:28 -07:00
Michael Vines
82848d6c73
Include active stake in 'epoch_rewards' datapoint
2020-09-29 16:50:10 -07:00
Jack May
74fcb184b2
Pipe FeatureSet though InvokeContext ( #12536 )
...
* Pipe FeatureSet though InvokeContext
* gate program size cap
* nit
2020-09-29 21:36:30 +00:00
Jack May
2ff983647f
Move process_instruction defs to runtime ( #12507 )
2020-09-29 01:36:46 -07:00
Tyera Eulberg
89621adca7
Rpc -> proper optimistic confirmation ( #12514 )
...
* Add service to track the most recent optimistically confirmed bank
* Plumb service into ClusterInfoVoteListener and ReplayStage
* Clean up test
* Use OptimisticallyConfirmedBank in RPC
* Remove superfluous notifications from RpcSubscriptions
* Use crossbeam to avoid mpsc recv_timeout panic
* Review comments
* Remove superfluous last_checked_slots, but pass in OptimisticallyConfirmedBank for complete correctness
2020-09-28 20:43:05 -06:00