Commit Graph

1165 Commits

Author SHA1 Message Date
Gary Wang 661e77231d Reduce secondary index memory usage 2020-12-21 21:32:50 +08:00
Gary Wang a970602a92 Add indexes on program id and spl-token owner 2020-12-20 21:35:42 +08:00
Carl Lin e82df36878 Use proper index 2020-12-19 21:26:40 -08:00
Carl Lin 622c656bc0 Don't grab write lock 2020-12-19 20:02:10 -08:00
Tyera Eulberg 9e05d18177
Use mint-scan in spl-token rpcs via bank/accounts 2020-12-19 20:03:06 -07:00
Tyera Eulberg aebbdc0956 Do get_program_accounts filtering in scan 2020-12-19 18:22:50 -08:00
Carl Lin 3848f73bdc Add mint index 2020-12-19 18:21:49 -08:00
sakridge 91a2d03f28
Update version to 1.4.19 (#14196) 2020-12-18 00:36:20 +00:00
sakridge dcc2b10efa
Add timings for store accounts (#12882) (#14169) 2020-12-16 17:17:03 -08:00
sakridge 82add14782
Bump version to v1.4.18 (#14144) 2020-12-16 04:15:05 +00:00
mergify[bot] db339cb925
Fix race between setting tick height and calculating accounts hash (#14101) (#14131)
Co-authored-by: Carl Lin <carl@solana.com>
(cherry picked from commit 75e9e321de9c8b6fcd958a7936de74fc63ebfe3f)

Co-authored-by: carllin <wumu727@gmail.com>
2020-12-15 22:55:13 +00:00
mergify[bot] ff76fccf2e
Remove regular expressions, speeds up untar (#14119) (#14125)
(cherry picked from commit 53fe0bb5eb0ae956742d4e9f5bee00306d53c032)

Co-authored-by: sakridge <sakridge@gmail.com>
2020-12-15 20:51:18 +00:00
Michael Vines 539f108ea6 Bump version to 1.4.17 2020-12-14 15:57:53 -08:00
mergify[bot] 87a578a1f9
Simple cap by including sysvars and native programs (#13884) (#14110)
* Simpler cap by including sysvars and native programs

* Fix tests

* Add comment

* revert some unrelated code

* Update test_bank_update_sysvar_account for cap.

* Test cap. for add_native_program using new helper

* Improve the cap adjustment with new tests

* Fix typo...

* Adjust test for improved code coverage

* Rename simpler_capitalization => simple_capitalization

* More rename and bonus commenting

(cherry picked from commit de9ac43ebffec502472c690ba519bba852176c86)

Co-authored-by: Ryo Onodera <ryoqun@gmail.com>
2020-12-14 13:29:09 +00:00
mergify[bot] 7e3bf25991
Shrink slots by sparseness of written data size (#14072) (#14097)
(cherry picked from commit 5788e75188502fc6cfcc001fcf36f9e7945725e1)

Co-authored-by: Ryo Onodera <ryoqun@gmail.com>
2020-12-13 19:15:44 +00:00
Michael Vines 4ad66fa7a4 Demote bank-process_transactions-error counters to info! 2020-12-12 22:04:20 -08:00
mergify[bot] a7e6cd56e9
Filter out stake and vote accounts with incorrect owners (#14062) (#14080)
* Add failing test

* Check stake/vote accounts for validity

* Feature gate change

* Add datapoint

* Add test realism

(cherry picked from commit d6eff3d62ca88c83356f6de4cefffe52daa1002c)

Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
2020-12-12 02:13:50 +00:00
Trent Nelson 277d4c9ae4 Switch to memmap2 fork 2020-12-12 00:16:37 +00:00
mergify[bot] f7621c091a
Add more comments in Stakes::store for its subtlety (#14065) (#14070)
* Add more comments in Stakes::store for its subtlety

* more comment tweak

(cherry picked from commit 7078a6ac615b703ee7fd0c7ff97d238967dcef0c)

Co-authored-by: Ryo Onodera <ryoqun@gmail.com>
2020-12-11 20:54:42 +00:00
mergify[bot] 069f83be97
Increase another snapshot limit: UNPACKED_COUNT (#14071) (#14073)
(cherry picked from commit 2d3a33720082ba2da95139ec36a1b80f552f82aa)

Co-authored-by: Ryo Onodera <ryoqun@gmail.com>
2020-12-11 12:25:10 +00:00
mergify[bot] 5b31f3d790
Wrong rpc inflation rate (#14063) (#14064)
* Fix wrong inflation calculation in rpc

* Reorder

* Fix test

(cherry picked from commit 09bd412b1323a9be8bea120146fe91da3388f5d3)

Co-authored-by: Ryo Onodera <ryoqun@gmail.com>
2020-12-11 09:07:17 +00:00
mergify[bot] 980c7cdf64
Retry inflation parameter update (bp #12778) (#14060)
* Retry inflation parameter update along with documentation updates (#12778)

* update initial inflation parameter

* update economics section of docs

(cherry picked from commit 1ab36203de)

# Conflicts:
#	docs/docusaurus.config.js
#	docs/package-lock.json

* Revert doc changes

* Revert doc changes

Co-authored-by: Eric Williams <ericlwilliams@gmail.com>
Co-authored-by: Ryo Onodera <ryoqun@gmail.com>
2020-12-11 05:19:51 +00:00
mergify[bot] 83801f2b05
Clean invoke in prep for native invoke (#14055) (#14059)
(cherry picked from commit 83fda2d9728a3ed030597821cd0c2a0eabc1743b)

Co-authored-by: Jack May <jack@solana.com>
2020-12-10 18:47:18 -08:00
mergify[bot] 13527fc937
Tiny add_native_program bug fixes with cleanups (#14042) (#14057)
* Tiny add_native_program bug fixes with cleanups

* Fix typo

(cherry picked from commit 164b7895b3b0b400be1f16a4794e15407d541b5d)

Co-authored-by: Ryo Onodera <ryoqun@gmail.com>
2020-12-10 18:46:57 -08:00
mergify[bot] bfc9932b17
Add get_minimum_balance_for_rent_excemption to Client (#14048) (#14052)
(cherry picked from commit 7abd8084b668764aa4079ef6748c229e9b9e054d)

Co-authored-by: Jack May <jack@solana.com>
2020-12-11 02:03:18 +00:00
Michael Vines fb3e88bb7e
Bump version to v1.4.16 (#14054) 2020-12-10 17:04:34 -08:00
mergify[bot] c01bff61f8
Fix priv escalation test (#14046) (#14049)
(cherry picked from commit 5ea80e673fb92ca30acd7ba612c01e179bbc3ee1)

Co-authored-by: Jack May <jack@solana.com>
2020-12-11 00:08:21 +00:00
mergify[bot] 6a0ba2587d
Lower priority for hashing threads. (#14043) (#14044)
(cherry picked from commit 68109a46e03e2475d3c29beb1ced05c196294384)

Co-authored-by: sakridge <sakridge@gmail.com>
2020-12-10 21:49:52 +00:00
mergify[bot] c20e74a248
Increase snapshot file size limits (#14024) (#14026)
* Increase snapshot file size limits

* Fix test

* Reorder code a bit

(cherry picked from commit 14e241be356b85aba47ac95a3dbbdf630f2f9581)

Co-authored-by: Ryo Onodera <ryoqun@gmail.com>
2020-12-09 19:08:51 +00:00
mergify[bot] a46d14a2d7
Don't use stale executor cache (bp #13966) (#13969)
* Don't use stale executor cache (#13966)


(cherry picked from commit 882d0332333384fca1c4ae9adb57f3610de659f7)

* fix conflicts

Co-authored-by: Jack May <jack@solana.com>
2020-12-09 09:11:31 +00:00
mergify[bot] 820aa7e0ea
Add tests for store_account_and_update_capitalization (#14008) (#14016)
(cherry picked from commit 28b014ccf489b5460d8a158412f648f4d36c6ad8)

Co-authored-by: Ryo Onodera <ryoqun@gmail.com>
2020-12-08 17:45:23 +00:00
mergify[bot] 38485489c9
Cannot change owner if account is executable (#13977) (#13999)
(cherry picked from commit dca579851c9eec286f40cdfd9b98b4d01347863e)

Co-authored-by: Jack May <jack@solana.com>
2020-12-07 20:53:57 +00:00
mergify[bot] 363b9d7209
Remove associated functions on AccountsDb, replace with methods (#13953) (#13954)
Co-authored-by: Carl Lin <carl@solana.com>
(cherry picked from commit 5dceddd21d3c1cf874b003a0c25b1f21f4926614)

Co-authored-by: carllin <wumu727@gmail.com>
2020-12-04 04:20:07 +00:00
Michael Vines 38d7d7df50 Bump version to v1.4.15 2020-12-03 01:55:39 +00:00
mergify[bot] da1796f97a
Nonce cleanup followup (bp #13868) (#13922)
* runtime: Factor out `DurableNoncePartial` finishing logic and add tests

(cherry picked from commit 8df2a4bac0954b004556c2fc2e5c6bb7b86d1028)

* accounts: Don't assume fee-payer is the first account

(cherry picked from commit 47af5933caea0e03930e2ed03d18160903a832a7)

* accounts: Replace nonce_rollback unreachable block with descriptive panic

(cherry picked from commit be7760caa1725020290a25023046772c7b5dc733)

* sdk: Check owner when verifying nonce accounts

(cherry picked from commit 274312ebb59ffeac4a8a40f42375c2c6eedb03e7)

* runtime: Replace `HashAgeKind` with `NonceRollbackInfo`

(cherry picked from commit 404fc1570d722709344876dc91799edd576056bf)

* Make `Accounts::is_non_loader_key()` a method on `Message`

(cherry picked from commit 17defbff13fab30210c0b454adb5296f44bd4243)

Co-authored-by: Trent Nelson <trent@solana.com>
2020-12-02 21:34:21 +00:00
Michael Vines a1828a0e45 Reduce the number of snapshots
(cherry picked from commit 73111b005f)
2020-12-01 13:05:24 -08:00
mergify[bot] 4f4a0b9dc8
Fully clean up temporary snapshot staging directories (#13883)
(cherry picked from commit 254790f8c8)

Co-authored-by: Michael Vines <mvines@gmail.com>
2020-12-01 05:10:53 +00:00
mergify[bot] 3559062c00
caches vote-state de-serialized from vote accounts (#13795) (#13862)
Gossip and other places repeatedly de-serialize vote-state stored in
vote accounts. Ideally the first de-serialization should cache the
result.

This commit adds new VoteAccount type which lazily de-serializes
VoteState from Account data and caches the result internally.

Serialize and Deserialize traits are manually implemented to match
existing code. So, despite changes to frozen_abi, this commit should be
backward compatible.

(cherry picked from commit e1793e5a13)

Co-authored-by: behzad nouri <behzadnouri@gmail.com>
2020-11-30 18:36:23 +00:00
sakridge cea722ac09
Bump version to v1.4.14 (#13852) 2020-11-29 18:20:19 +00:00
mergify[bot] 82b087e51e
Add extra checks to verify_and_update (#13848) (#13850)
* Add extra checks to verify_and_update

* nudge

(cherry picked from commit ce4304cc9a)

Co-authored-by: Jack May <jack@solana.com>
2020-11-29 11:22:46 +00:00
mergify[bot] a3be6bacc6
Enhance ledger-tool for multi-epoch rewards (#13837) (#13839)
* Support ledger-tool for multi-epoch rewards

* nits

* Ensure not to skip some records in csv

(cherry picked from commit 6048342c57)

Co-authored-by: Ryo Onodera <ryoqun@gmail.com>
2020-11-27 05:36:08 +00:00
mergify[bot] 0fc3bcabfd
Fix roots_and_ref_count (#13827) (#13833)
Co-authored-by: Carl Lin <carl@solana.com>
(cherry picked from commit 955b99cf69)

Co-authored-by: carllin <wumu727@gmail.com>
2020-11-26 22:33:43 +00:00
Michael Vines f5eb5a3ba6 Bump version to v1.4.13 2020-11-26 06:59:28 +00:00
mergify[bot] fe4c59e38d
Add `solana logs` command (#13812)
(cherry picked from commit 4ef2da0ff0)

Co-authored-by: Michael Vines <mvines@gmail.com>
2020-11-25 22:22:23 +00:00
mergify[bot] 305d5d97d8
Nonce updates (#13799) (#13810)
* runtime: Add `FeeCalculator` resolution method to `HashAgeKind`

* runtime: Plumb fee-collected accounts for failed nonce tx rollback

* runtime: Use fee-collected nonce/fee account for nonced TX error rollback

* runtime: Add test for failed nonced TX accounts rollback

* Fee payer test

* fixup: replace nonce account when it pays the fee

* fixup: nonce fee-payer collect test

* fixup: fixup: clippy/fmt for replace...

* runtime: Test for `HashAgeKind::fee_calculator()`

* Clippy

Co-authored-by: Trent Nelson <trent@solana.com>
(cherry picked from commit b70abdc645)

Co-authored-by: sakridge <sakridge@gmail.com>
2020-11-25 18:18:04 +00:00
Tyera Eulberg fd9e003ae1
Bump version to 1.4.12 (#13792) 2020-11-24 22:53:36 +00:00
mergify[bot] fdcf589f7c
Restore bank feature used to deprecate Rewards sysvar (#13786) (#13788)
(cherry picked from commit c930f92411)

Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
2020-11-24 18:57:26 +00:00
Tyera Eulberg 7099d07fd3
Bump version to 1.4.11 (#13780) 2020-11-24 06:30:35 +00:00
mergify[bot] b74bb12ebe
Truncate logs immediately upon collection. Also reduce limit from 100k to 10k (#13774)
(cherry picked from commit 60ce6f1a9b)

Co-authored-by: Michael Vines <mvines@gmail.com>
2020-11-24 02:36:23 +00:00
mergify[bot] d0cac2a2ea
Prevent scans on unrooted slots from seeing partial clean (#13628) (#13741)
Co-authored-by: Carl Lin <carl@solana.com>
(cherry picked from commit 791fb17437)

Co-authored-by: carllin <wumu727@gmail.com>
2020-11-20 22:14:51 +00:00