Commit Graph

12955 Commits

Author SHA1 Message Date
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
722879b96c Remove Hackathon banner (#15646)
(cherry picked from commit 00f2b039b4)

Co-authored-by: rmshea <8948187+rmshea@users.noreply.github.com>
2021-03-03 03:41:56 +00:00
c22b83aa6c resolve conflicts 2021-03-02 18:05:11 -08:00
9387ee6f3b configure rust-bpf toolchain for each tree (#15620)
(cherry picked from commit 4789a13a6e)

# Conflicts:
#	sdk/bpf/scripts/install.sh
2021-03-02 18:05:11 -08:00
211a42fb98 adds more metrics for tx counts and batch sizes (#15642) (#15645)
(cherry picked from commit 0bd0084b0d)

Co-authored-by: behzad nouri <behzadnouri@gmail.com>
2021-03-03 01:36:09 +00:00
247fa529b0 Cargo.log update from 297c083 2021-03-02 17:59:16 -07:00
b3bfe7b6ad ci: drop redundant programs/bpf audit
(cherry picked from commit 4f63afce32)
2021-03-02 17:59:16 -07:00
109c15c97c ci: disallow uncommitted Cargo.lock changes
(cherry picked from commit 15e1314209)
2021-03-02 17:59:16 -07:00
32b05e7ba0 ci: checks - factor out audit so it can run independently
(cherry picked from commit 3c1dd891af)
2021-03-02 17:59:16 -07:00
1da88658c3 ci: run clippy before fmt
(cherry picked from commit 21f66179ba)
2021-03-02 17:59:16 -07:00
77d8468df2 adds metrics for the size and number of batches in bank_send_loop (#15627) (#15628)
(cherry picked from commit 416ea38028)

Co-authored-by: behzad nouri <behzadnouri@gmail.com>
2021-03-02 19:37:19 +00:00
163efc3bdf coalesces vote packets into one Packets (#15566) (#15630)
(cherry picked from commit f7a049f87f)

Co-authored-by: behzad nouri <behzadnouri@gmail.com>
2021-03-02 19:20:55 +00:00
e7aa6cd5ea custom vm type (#15202)
(cherry picked from commit 8c49985b5c)
2021-03-02 11:00:14 -08:00
eb12d29683 cli: don't overallocate upgradeable buffer accounts (#15603) (#15625)
(cherry picked from commit d73af9c1dd)

Co-authored-by: Jack May <jack@solana.com>
2021-03-02 08:21:09 -08:00
979e07501a Lower blockstore processor error severity (#15578) (#15609)
(cherry picked from commit f1223fb783)

Co-authored-by: sakridge <sakridge@gmail.com>
2021-03-02 07:47:15 -08:00
297c08310f Enable BPF program instruction traces (#15613) (#15621)
(cherry picked from commit 3cd00965a7)

Co-authored-by: Jack May <jack@solana.com>
2021-03-02 00:35:55 -08:00
f0afbf4948 cli: dump non-upgradeable programs (#15598) (#15612)
(cherry picked from commit fbb1012584)

Co-authored-by: Jack May <jack@solana.com>
2021-03-01 22:23:46 -08:00