Commit Graph

12921 Commits

Author SHA1 Message Date
be05c8b121 Bump version to 1.5.16 2021-03-16 13:29:52 -07:00
9bd3773934 nit: fix spelling (#15908) (#15910)
(cherry picked from commit 5760cf0f41)

Co-authored-by: Jack May <jack@solana.com>
v1.5.15
2021-03-16 11:51:15 -07:00
999f81c56d Charge compute budget for bytes passed via cpi (bp #15874) (#15904)
* Charge compute budget for bytes passed via cpi (#15874)

(cherry picked from commit ad9901d7c6)

# Conflicts:
#	programs/bpf_loader/src/syscalls.rs
#	sdk/src/feature_set.rs
#	sdk/src/process_instruction.rs

* fix conflicts

* nudge

Co-authored-by: Jack May <jack@solana.com>
2021-03-16 18:47:40 +00:00
1967b90489 fix: compute pre/post token balances on all accounts if token program present (#15900) (#15922)
* fix: compute pre/post token balances on all accounts if token program present

* fix: skip token program in balance query

* fix: prevent program ids from being collected

(cherry picked from commit 61112d4826)

Co-authored-by: Josh <josh.hundley@gmail.com>
2021-03-16 18:46:53 +00:00
22ca850ce7 Add AccountSharedData stub for forwards compatibility with the v1.6 release line 2021-03-16 11:36:10 -07:00
824daab8f6 Cli: better estimate of epoch time elapsed/remaining (bp #15893) (#15917)
* Cli: better estimate of epoch time elapsed/remaining (#15893)

* Add rpc_client api for getRecentPerformanceSamples

* Prep fn for variable avg slot time

* Use recent-perf-samples to more-accurately estimate epoch completed times

* Spell out average

(cherry picked from commit 3726358f51)

# Conflicts:
#	cli-output/src/cli_output.rs

* Fix conflict

Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
Co-authored-by: Tyera Eulberg <tyera@solana.com>
2021-03-16 17:59:31 +00:00
191e51b01d Wallclock BankingStage Throttle (#15731) (#15889)
(cherry picked from commit c1ba265dd9)

Co-authored-by: carllin <carl@solana.com>
2021-03-16 08:40:03 +00:00
0de081c776 Pin solana crate versions to prevent downstream users from accidentally mixing crate versions 2021-03-16 00:32:15 -07:00
9a151259b2 =1.5.15 2021-03-16 00:32:15 -07:00
3da1f67d40 Build full SPL in CI 2021-03-15 23:30:35 -07:00
39a2fbe2bf Add Instruction::new_with_bincode
Programs can now prepare for the deprecation of `Instruction::new` in v1.6
2021-03-16 05:21:33 +00:00
7a08d47588 Export tokio for program-test clients (#15894)
(cherry picked from commit 430ed6d774)

Co-authored-by: Michael Vines <mvines@gmail.com>
2021-03-16 05:03:03 +00:00
3f3f3bb443 increment_cargo_version.sh tune ups (bp #15880) (#15891)
* Disallow version bump with dirty working tree

(cherry picked from commit 853e735edf)

* Ignore `not_paths` for `*.md` files when bumping version

(cherry picked from commit 510760d81b)

* Also ignore `*/node_modules/*` paths when bumping version

(cherry picked from commit 2bf46b789f)

Co-authored-by: Trent Nelson <trent@solana.com>
2021-03-16 01:58:15 +00:00
e2f893d743 Fix real_number_string_trimmed zero-decimal behavior (#15873) (#15876)
* Add failing test

* Don't strip zeroes from zero-decimal amounts

* Add zero-case test

(cherry picked from commit c40bd5f394)

Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
2021-03-15 23:45:36 +00:00
1a66968126 Update cargo lock files on version bump 2021-03-15 20:54:55 +00:00
437f0bb8c6 Rpc: support extended config for getConfirmedBlock (bp #15827) (#15832)
* Rpc: support extended config for getConfirmedBlock (#15827)

* Add rpc confirmed-block config wrapper to support struct of extended config

* Update docs

* Make config wrapper generic and use in getConfirmedTransaction as well

* Update/clean confirmed-tx docs

(cherry picked from commit 5b2da19c93)

# Conflicts:
#	core/src/rpc.rs

* Fix conflicts

Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
Co-authored-by: Tyera Eulberg <tyera@solana.com>
2021-03-13 00:02:26 +00:00
16f8fcd711 solana-install update now updates a named release to the latest patch version (bp #15828) (#15830)
* `solana-install update` now updates a named release to the latest patch version

(cherry picked from commit 79280b304b)

# Conflicts:
#	install/Cargo.toml

* resolve conflicts

Co-authored-by: Michael Vines <mvines@gmail.com>
2021-03-12 22:27:05 +00:00
f511625887 Add more slot update notifications (bp #15734) (#15821)
* Add more slot update notifications (#15734)

* Add more slot update notifications

* fix merge

* Address feedback and add integration test

* switch to datapoint

* remove unused shred method

* fix clippy

* new thread for rpc completed slots

* remove extra constant

* fixes

* rely on channel closing

* fix check

(cherry picked from commit 918d04e3f0)

* fix tests

* fix fmt

Co-authored-by: Justin Starry <justin@solana.com>
2021-03-12 15:25:45 +00:00
4c3bfcaedf Remove old feature: simple_capitalization (bp #15763) (#15814)
* Remove old feature: simple_capitalization (#15763)

* Remove old feature: simple_capitalization

* Fix another failing test in core

* Finish up test cleanup

* Further clean up a bit

(cherry picked from commit 4bbeb9c033)

# Conflicts:
#	runtime/src/accounts_db.rs
#	runtime/src/bank.rs

* Fix conflicts

Co-authored-by: Ryo Onodera <ryoqun@gmail.com>
2021-03-12 05:21:55 +00:00
f44eeb4165 cli: improve deploy error reporting (#15806) (#15810)
(cherry picked from commit e1ceb430e3)

Co-authored-by: Jack May <jack@solana.com>
2021-03-11 23:00:37 +00:00
29730b5a19 Default --ledger arg to "ledger" for solana-validator and solana-ledger-tool (#15809)
(cherry picked from commit aa2b2d6b75)

Co-authored-by: Michael Vines <mvines@gmail.com>
2021-03-11 22:28:34 +00:00
6e214bbc04 Docs fixups (bp #15801) (#15802)
* docs: add docs links for crates published to crates.io

(cherry picked from commit 24d18b3cf2)

# Conflicts:
#	core/Cargo.toml
#	measure/Cargo.toml
#	programs/bpf/rust/finalize/Cargo.toml

* docs: add rust client api entry

(cherry picked from commit 3e6c7c4a3e)

* docs: rename 'deployed programs' section to 'on-chain programs'

(cherry picked from commit 0e452c8d91)

* docs: 'builtins' -> 'runtime facilities'

(cherry picked from commit 9c8be34906)

* docs: stabilize spl token jsonrpc methods

(cherry picked from commit 45190f6281)

* docs: deprecate lastvalidslot field of jsonrpc getfees

(cherry picked from commit c4ee1ab710)

Co-authored-by: Trent Nelson <trent@solana.com>
2021-03-11 21:49:14 +00:00
a79ba512a8 add catchup average speed and remaining time (#15608) (#15805)
* add catchup average speed and remaining time

* code style and improve average time remaining calculation

* code style

* remove instant time remaining

* negative speed perceives better

* Some little improves and comments of catchup avg and eta

* format code of catchup avg and eta

* fix copy-paste error

(cherry picked from commit c078e01fa9)

Co-authored-by: DimAn <diman@diman.io>
2021-03-11 16:15:24 +00:00
e777436cfd sdk: add macro for unchecked div with const denominator (#15803)
(cherry picked from commit 79ac1997de)

Co-authored-by: Trent Nelson <trent@solana.com>
2021-03-11 10:03:30 +00:00
b4f5627a5b Improve load_largest_accounts more (bp #15785) (#15792)
* Improve load_largest_accounts more (#15785)

* Add load_largest_accounts bench

* Check lamports before address filter

* Use BinaryHeap, add Accounts test

* Use pubkey reference in the min-heap

Also, flatten code with early returns

Co-authored-by: Greg Fitzgerald <greg@solana.com>
(cherry picked from commit 9c1198c0c7)

# Conflicts:
#	runtime/src/accounts.rs

* Fix conflicts

Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
Co-authored-by: Tyera Eulberg <tyera@solana.com>
2021-03-10 20:14:40 +00:00
d4790be689 Improve load_largest_accounts and add Bank test (#15775) (#15783)
(cherry picked from commit 5991cef5f5)

Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
2021-03-10 01:36:08 +00:00
58a9639810 Add tracer key for tracing transaction path through the network (#15732) (#15771)
(cherry picked from commit 2bee9435f3)

Co-authored-by: carllin <carl@solana.com>
2021-03-09 04:44:16 +00:00
74b13605c0 Report datapoint on number of retransmit shreds (#15694) (#15769)
(cherry picked from commit 331c45decf)

Co-authored-by: carllin <carl@solana.com>
2021-03-09 03:08:36 +00:00
9fbc03d517 Bump version to 1.5.15 (#15768) 2021-03-09 01:48:54 +00:00
7f1368e792 Remove old feature: cumulative_rent_related_fixes (bp #15754) (#15757)
* Remove old feature: cumulative_rent_related_fixes (#15754)

(cherry picked from commit 8b0c6db871)

# Conflicts:
#	runtime/src/accounts.rs
#	runtime/src/bank.rs
#	sdk/src/feature_set.rs

* Fix conflicts

* Remove stale comment

Co-authored-by: Ryo Onodera <ryoqun@gmail.com>
v1.5.14
2021-03-08 12:34:08 +09:00
c60e21b900 PoH batch size calibration (#15717) (#15747)
(cherry picked from commit d09112fa6d)

# Conflicts:
#	local-cluster/src/validator_configs.rs

Co-authored-by: sakridge <sakridge@gmail.com>
2021-03-06 04:29:54 +00:00
30781bb7b1 consolidate DEFAULT_HASHES_PER_TICK (#14463) (#15748)
(cherry picked from commit 773b21b34e)

Co-authored-by: Jeff Washington (jwash) <75863576+jeffwashington@users.noreply.github.com>
2021-03-06 02:59:43 +00:00
2114864626 Convert blockstore TransactionStatus column family to protobufs (bp #15733) (#15737)
* Convert blockstore TransactionStatus column family to protobufs (#15733)

* Prevent panic if TransactionStatus can't be deserialized

* Convert Blockstore TransactionStatus column to protobuf

* Add compatability test

(cherry picked from commit 7e65289729)

# Conflicts:
#	ledger/Cargo.toml

* Fix conflict

Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
Co-authored-by: Tyera Eulberg <tyera@solana.com>
2021-03-05 17:37:54 +00:00
fc29ee7001 Add timeout to prevent infinite loop (#15715) (#15735)
(cherry picked from commit 1fc8836631)

Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
2021-03-05 13:52:20 +00:00
166fa33433 Update deploy-a-program.md (#15727) (#15728)
(cherry picked from commit 9c8e7564ed)

Co-authored-by: Kasim Te <kasimte@gmail.com>
2021-03-05 09:02:50 +00:00
2ba5828a75 Use OrderedIterator to produce TransactionLogInfo (#15712) (#15719)
* Add failing test

* Fix iteration_order issue with stored logs

(cherry picked from commit 872f7117c3)

Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
2021-03-05 01:36:08 +00:00
98f5f58975 Permit the snapshots/status_cache file to be sparse (#15713)
(cherry picked from commit 1e2f5a5f55)

Co-authored-by: Michael Vines <mvines@gmail.com>
2021-03-04 22:05:37 +00:00
5f7258640b cli: add program show for non-upgradeable programs (bp #15707) (#15709)
* cli: add program show for non-upgradeable programs (#15707)

(cherry picked from commit 2177e0aff8)

# Conflicts:
#	cli/src/program.rs

* fix conflicts

Co-authored-by: Jack May <jack@solana.com>
2021-03-04 21:27:48 +00:00
e9d04b5517 docs: address post-merge review of #15649
(cherry picked from commit d6ea2f392b)
2021-03-04 11:49:14 -07:00
b856b99487 Docs: Update validator hardware recommendations
(cherry picked from commit 5cd6a0c2f1)
2021-03-03 22:34:38 -07:00
d3672ca23b Bump version to 1.5.14 2021-03-03 19:01:25 -08:00
6242809a07 Bump version to 1.5.13 v1.5.13 2021-03-03 21:51:34 +00:00
1958bb1169 sends only the latest vote of each validator to the banking stage (#15629) (#15685)
(cherry picked from commit 658951e680)

Co-authored-by: behzad nouri <behzadnouri@gmail.com>
2021-03-03 20:41:27 +00:00
5e2de5648d Only report metrics every second (#15652) (#15684)
(cherry picked from commit aacb28c453)

Co-authored-by: carllin <carl@solana.com>
2021-03-03 20:19:30 +00:00
16ded2115c Deprecate UiTokenAmount::ui_amount (bp #15616) (#15651)
* Deprecate UiTokenAmount::ui_amount (#15616)

* Add TokenAmount::ui_amount_string

* Fixup solana-tokens

* Update docs

(cherry picked from commit 19ac79b5cc)

# Conflicts:
#	storage-proto/proto/solana.storage.confirmed_block.rs

* Fix conflicts

Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
Co-authored-by: Tyera Eulberg <tyera@solana.com>
2021-03-03 20:12:06 +00:00
b775e8748c Forward and hold packets (#15634) (#15682)
(cherry picked from commit 830be855dc)

Co-authored-by: sakridge <sakridge@gmail.com>
2021-03-03 19:39:46 +00:00
9d00220d88 Remove unnecessary packet meta abi lock (#15653) (#15665)
(cherry picked from commit b8e28b8c55)

Co-authored-by: Justin Starry <justin@solana.com>
2021-03-03 10:52:51 +00:00
a00cbb55b9 Add error reporting to system program (#15644) (#15650)
(cherry picked from commit a9c8dbfd0c)

Co-authored-by: Jack May <jack@solana.com>
v1.5.12
2021-03-02 22:41:07 -08:00
7ae3b55dde improve cli insufficient funds error messages (#15648)
(cherry picked from commit b20bf8ebb0)

Co-authored-by: Jack May <jack@solana.com>
2021-03-03 05:38:19 +00:00
280437bad2 Cleanup buffered packets (#15210) (#15643)
(cherry picked from commit 629dcd0f39)

Co-authored-by: carllin <carl@solana.com>
2021-03-03 04:36:07 +00:00