Commit Graph

12093 Commits

Author SHA1 Message Date
Gary Wang 661e77231d Reduce secondary index memory usage 2020-12-21 21:32:50 +08:00
Gary Wang f323f9e6c2 Use get_filtered_spl_token_accounts_by_owner for get_program_accounts if applicable 2020-12-20 21:35:42 +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
mergify[bot] 71eef63fce
Stream RPC snapshot downloads (bp #14213) (#14214)
* Stream RPC snapshot downloads

(cherry picked from commit b3dc9885646cd984f461b0d8b1a8ba47ae2e7a83)

# Conflicts:
#	core/Cargo.toml

* Update Cargo.toml

Co-authored-by: Michael Vines <mvines@gmail.com>
2020-12-20 01:25:16 +00:00
mergify[bot] 420e4c772f
getBlockTime RPC method now falls back to BigTable in all cases (#14206)
(cherry picked from commit 0090106f60ab949c965c0b6ed43c3e3a271b5991)

Co-authored-by: Michael Vines <mvines@gmail.com>
2020-12-18 22:11:26 +00:00
mergify[bot] 9f69f79577
Reject invalid --expected-shred-version (#14183) (#14201)
* Reject invalid --expected-shred-version

* less code

(cherry picked from commit 3c9b853268727d768b7b7bdc385d2aaf066372e7)

Co-authored-by: Ryo Onodera <ryoqun@gmail.com>
2020-12-18 19:19:32 +09:00
mergify[bot] d4b2b787eb
Improved Transaction Forwarding (bp #13944) (#14194)
* Improved Transaction Forwarding (#13944)

* Forwarding

* Dedupe leaders

* Use consistent commitment for last_valid_slot in rpc send_transaction

* Plumb rpc send_transaction options into solana-validator

* Extend num slots banking-stage holds forwarded txs

Co-authored-by: Tyera Eulberg <tyera@solana.com>
(cherry picked from commit da7d1e2302f9d1c96d520a67e96b780be293565d)

# Conflicts:
#	cli/src/cli.rs
#	core/src/validator.rs
#	validator/src/main.rs

* Fix conflicts

Co-authored-by: sakridge <sakridge@gmail.com>
Co-authored-by: Tyera Eulberg <tyera@solana.com>
2020-12-17 18:13:41 -07:00
sakridge 91a2d03f28
Update version to 1.4.19 (#14196) 2020-12-18 00:36:20 +00:00
Michael Vines 5490c47c68 Add --bpf-jit stub argument for v1.5 forward compatibility 2020-12-17 11:00:40 -08:00
Trent Nelson 7424f7ba7f Revert "Ignore RUSTSEC-2020-0077 until next 1.4 release"
This reverts commit bd6cad3891.
2020-12-17 03:00:18 +00:00
Trent Nelson 206accb59a Override socket2 crate to v0.3.17 2020-12-17 03:00:18 +00:00
Trent Nelson 120074f1c1 Bump SPL crates 2020-12-17 03:00:18 +00:00
sakridge dcc2b10efa
Add timings for store accounts (#12882) (#14169) 2020-12-16 17:17:03 -08:00
mergify[bot] 7adcbae866
Add blockstore skipped api (#14145) (#14166)
* Add blockstore api to determine if a slot was skipped

* Return custom rpc error if slot is skipped

(cherry picked from commit ac0d32bc7e81848ccb85032c09c6d6d5f63a4813)

Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
2020-12-16 22:22:41 +00:00
mergify[bot] 238b596773
cargo-build-bpf: Create a random `-keypair.json` file alongside the program deploy artifact for easy upgrades (bp #14162) (#14164)
* Use AsRef

(cherry picked from commit 9993d2c6236987ec02f70e40b047b52ce1867e83)

* Create a random `-keypair.json` file alongside the program deploy artifact for easy upgrades

(cherry picked from commit 636a455790f43c66a6d1719132336127d6cbf5bf)

* Update Cargo.toml

Co-authored-by: Michael Vines <mvines@gmail.com>
2020-12-16 21:21:22 +00:00
mergify[bot] cb145b9dd5
Correctly show reward percent changes (#14160)
(cherry picked from commit bebfa6e93cbe14c464d43d6946b7b0e5307cef42)

Co-authored-by: Ryo Onodera <ryoqun@gmail.com>
2020-12-16 18:23:23 +00:00
mergify[bot] e91b124cd9
check for resize access violations (bp #14142) (#14151)
* check for resize access violations (#14142)

(cherry picked from commit 025f886e101d49d42e7769df8a6eada902af6927)

# Conflicts:
#	programs/bpf_loader/src/syscalls.rs

* resolve conflicts

Co-authored-by: Jack May <jack@solana.com>
2020-12-16 12:20:52 +00:00
mergify[bot] 5c379db925
Remove lock files from programs/bpf/rust (#14148) (#14157)
(cherry picked from commit 49c3f14016e5e1bb79dc867895ac4d554d8ebc9f)

Co-authored-by: Jack May <jack@solana.com>
2020-12-16 11:43:46 +00:00
sakridge 82add14782
Bump version to v1.4.18 (#14144) 2020-12-16 04:15:05 +00:00
mergify[bot] 599b22baf3
Partial shred deserialize cleanup and shred type differentiation (#14094) (#14138)
* Partial shred deserialize cleanup and shred type differentiation in retransmit

* consolidate packet hashing logic

(cherry picked from commit d4a174fb7cc2daa80fce11b060d0232e714316a1)

Co-authored-by: sakridge <sakridge@gmail.com>
2020-12-16 02:25:40 +00:00
mergify[bot] fdb1c5ab06
Add wait for max stake command (#13532) (#14137)
(cherry picked from commit 598e5f58d5)

Co-authored-by: sakridge <sakridge@gmail.com>
2020-12-16 01:32:00 +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] 78c4f946f4
Terminology fixes (#14112) (#14114)
(cherry picked from commit 42be09afb66c405b42ab66c3f1724b94614d79a1)

Co-authored-by: Jeff Washington (jwash) <75863576+jeffwashington@users.noreply.github.com>
2020-12-14 21:15:12 +00: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 a844310911 spelling 2020-12-12 22:36:27 -08:00
Michael Vines 4ad66fa7a4 Demote bank-process_transactions-error counters to info! 2020-12-12 22:04:20 -08:00
mergify[bot] 5d07195b7e
stake-account command no longer errors when time goes backwards over an epoch (#14090)
(cherry picked from commit 52c2cbd630ba2a22bdec9f52e93e761d9dce3997)

Co-authored-by: Michael Vines <mvines@gmail.com>
2020-12-13 05:03:36 +00:00
mergify[bot] a209984ec9
Add subscription cap (#14011) (#14089)
* Add subscription cap

* Elide unwraps

(cherry picked from commit 8541ffa3288b84a1b6a0281a1bc6df3574d6fd8e)

Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
2020-12-12 03:29:36 +00: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 bd6cad3891 Ignore RUSTSEC-2020-0077 until next 1.4 release 2020-12-12 00:16:37 +00:00
Trent Nelson 6d7e7f47b8 Override yanked arc-swap crate to 0.4.8 2020-12-12 00:16:37 +00:00
Trent Nelson 82f00bf9f7 Override yanked miow crate to 0.2.2 2020-12-12 00:16:37 +00:00
Trent Nelson 8fdfb291a9 Override yanked net2 0.2.37 2020-12-12 00:16:37 +00:00
Trent Nelson 1e5a662706 Override yanked mio crate to 0.7.6 2020-12-12 00:16:37 +00:00
Trent Nelson 277d4c9ae4 Switch to memmap2 fork 2020-12-12 00:16:37 +00:00
Trent Nelson e6abf50bf7 Bump socket2 crate to 0.3.17 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] 0b5beac561
Check shred type in is_duplicate (#14050) (#14058)
(cherry picked from commit aa2751e61413a0e6decd201a5d1d5086d024599f)

Co-authored-by: sakridge <sakridge@gmail.com>
2020-12-11 04:22:25 +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