mergify[bot]
4ed0fcdde6
avoid unnecessary empty arrays when binning ( #17944 ) ( #18011 )
...
(cherry picked from commit eee5414c64
)
Co-authored-by: Jeff Washington (jwash) <75863576+jeffwashington@users.noreply.github.com >
2021-06-16 20:48:18 +00:00
mergify[bot]
296a8ade63
set hash bins to 65k ( #17912 ) ( #18009 )
...
(cherry picked from commit 55ee3b5f2f
)
Co-authored-by: Jeff Washington (jwash) <75863576+jeffwashington@users.noreply.github.com >
2021-06-16 20:31:26 +00:00
mergify[bot]
8492031fd0
refactor generate_index process_storage_slot ( #17982 ) ( #18007 )
...
(cherry picked from commit 7ca04d6a86
)
Co-authored-by: Jeff Washington (jwash) <75863576+jeffwashington@users.noreply.github.com >
2021-06-16 20:14:49 +00:00
mergify[bot]
bff7259111
parallel storage -> accounts folder ( #17955 ) ( #18004 )
...
(cherry picked from commit 7de79425ce
)
Co-authored-by: Jeff Washington (jwash) <75863576+jeffwashington@users.noreply.github.com >
2021-06-16 15:51:00 +00:00
mergify[bot]
67e1814581
nit: rename measure ( #17946 ) ( #17995 )
...
(cherry picked from commit 5ecb30ff58
)
Co-authored-by: Jeff Washington (jwash) <75863576+jeffwashington@users.noreply.github.com >
2021-06-16 14:51:38 +00:00
mergify[bot]
12e92dd59d
verify bank hash on startup with ledger tool option (backport #17939 ) ( #17996 )
...
* verify bank hash on startup with ledger tool option (#17939 )
(cherry picked from commit f558b9b6bf
)
# Conflicts:
# core/tests/snapshots.rs
# ledger/src/bank_forks_utils.rs
# runtime/src/snapshot_utils.rs
* fix merge errors
Co-authored-by: Jeff Washington (jwash) <75863576+jeffwashington@users.noreply.github.com >
Co-authored-by: Jeff Washington (jwash) <wash678@gmail.com >
2021-06-16 14:46:34 +00:00
mergify[bot]
61573756f8
add metrics for startup ( #17913 ) ( #17975 )
...
* add metrics for startup
* roll timings up higher
* fix test
* fix duplicate
(cherry picked from commit 471b34132e
)
# Conflicts:
# ledger/src/bank_forks_utils.rs
# runtime/src/snapshot_utils.rs
conflicts because #17778 is not present.
Co-authored-by: Jeff Washington (jwash) <75863576+jeffwashington@users.noreply.github.com >
2021-06-16 01:40:56 +00:00
mergify[bot]
fe5fed1182
Refactor bank_forks_utils::load() and some snapshot logic ( #17492 ) ( #17979 )
...
Refactor a few functions that are on the load-from-snapshot path, to facilitate
adding in incremental snapshots more easily.
Additionally, add some tests and doc comments.
(cherry picked from commit 1953543274
)
Co-authored-by: Brooks Prumo <brooks@solana.com >
2021-06-15 22:03:49 +00:00
Jon Cinque
0c90307677
v1.7: Stake refactor (Manual backport of #17906 ) ( #17978 )
...
* Refactor stake program into solana_program (#17906 )
* Move stake state / instructions into solana_program
* Update account-decoder
* Update cli and runtime
* Update all other parts
* Commit Cargo.lock changes in programs/bpf
* Update cli stake instruction import
* Allow integer arithmetic
* Update ABI digest
* Bump rust mem instruction count
* Remove useless structs
* Move stake::id() -> stake::program::id()
* Re-export from solana_sdk and mark deprecated
* Address feedback
* Run cargo fmt
* Run cargo fmt post cherry-pick
2021-06-15 23:43:22 +02:00
mergify[bot]
cdd2a51f1f
remove unused parameters from CalculateHashIntermediate ( #17949 ) ( #17976 )
...
(cherry picked from commit 4d8ffdcc11
)
Co-authored-by: Jeff Washington (jwash) <75863576+jeffwashington@users.noreply.github.com >
2021-06-15 19:15:07 +00:00
mergify[bot]
0dbe3434f0
refactor so hash verify can be done by more callers ( #17941 ) ( #17947 )
...
Co-authored-by: Jeff Washington (jwash) <75863576+jeffwashington@users.noreply.github.com >
2021-06-15 16:49:32 +00:00
mergify[bot]
8b5ba771ad
name arguments to help with confusion ( #17942 ) ( #17948 )
...
(cherry picked from commit 7fde9b6ff0
)
# Conflicts:
# runtime/src/accounts_db.rs
Co-authored-by: Jeff Washington (jwash) <wash678@gmail.com >
2021-06-15 14:46:07 +00:00
mergify[bot]
d6f17517cb
calculate_capitalization uses hash calculation ( #17443 ) ( #17932 )
...
* calculate_capitalization uses hash calculation
* feedback
* remove debugging code, clean up slot math
Co-authored-by: Jeff Washington (jwash) <75863576+jeffwashington@users.noreply.github.com >
2021-06-15 05:03:06 +00:00
mergify[bot]
15b2f280e3
use trait to simplify and consolidate cumulative code ( #17852 ) ( #17931 )
...
(cherry picked from commit 2dc6969858
)
# Conflicts:
# runtime/src/accounts_hash.rs
Co-authored-by: Jeff Washington (jwash) <wash678@gmail.com >
2021-06-15 04:29:13 +00:00
mergify[bot]
60b43a1ddf
Pass iterator for SortedStorages::new_with_slots ( #17811 ) ( #17847 )
...
Co-authored-by: Carl Lin <carl@solana.com >
(cherry picked from commit 2a9b127029
)
Co-authored-by: Jeff Washington (jwash) <75863576+jeffwashington@users.noreply.github.com >
2021-06-15 00:01:53 +00:00
mergify[bot]
d6b83e3b0a
add metrics to handle_snapshot_requests ( #17937 ) ( #17945 )
...
(cherry picked from commit e6bbd4b3f0
)
Co-authored-by: Jeff Washington (jwash) <75863576+jeffwashington@users.noreply.github.com >
2021-06-14 22:56:14 +00:00
mergify[bot]
0446f89d22
binary search in slices for hashing ( #17755 ) ( #17804 )
...
(cherry picked from commit 817d48be21
)
Co-authored-by: Jeff Washington (jwash) <75863576+jeffwashington@users.noreply.github.com >
2021-06-14 17:32:05 -05:00
mergify[bot]
fed90cfbe8
Fix accounts index panic in purge_exact ( #17757 ) ( #17935 )
...
(cherry picked from commit c2191d885d
)
Co-authored-by: sakridge <sakridge@gmail.com >
2021-06-14 17:41:59 +00:00
mergify[bot]
738df79394
Add local cluster tests that broadcast duplicate slots ( #13995 ) ( #17863 )
...
* Add duplicate node local cluster test
* fix clippy
* remove dupe test
(cherry picked from commit 050bb5446d
)
Co-authored-by: Justin Starry <justin@solana.com >
2021-06-10 03:17:44 +00:00
mergify[bot]
98e9b6e70b
refactor: create type ( #17818 ) ( #17848 )
...
(cherry picked from commit 576e3d95f7
)
Co-authored-by: Jeff Washington (jwash) <75863576+jeffwashington@users.noreply.github.com >
2021-06-09 08:38:04 +00:00
mergify[bot]
78f3606e30
test: simple CalculateHashIntermediate refactoring ( #17813 ) ( #17846 )
...
(cherry picked from commit 01ef2a5c4a
)
Co-authored-by: Jeff Washington (jwash) <75863576+jeffwashington@users.noreply.github.com >
2021-06-08 21:47:40 +00:00
mergify[bot]
af0869c66c
add min to roots_tracker ( #17806 ) ( #17835 )
...
(cherry picked from commit 58fe1d0764
)
Co-authored-by: Jeff Washington (jwash) <75863576+jeffwashington@users.noreply.github.com >
2021-06-08 16:14:59 +00:00
Ryo Onodera
48e565038a
Bump version to v1.7.2 ( #17831 )
2021-06-08 10:29:39 +00:00
mergify[bot]
ab19543dff
break out hash time in metric ( #17721 ) ( #17753 )
...
(cherry picked from commit 00ee84af37
)
Co-authored-by: Jeff Washington (jwash) <75863576+jeffwashington@users.noreply.github.com >
2021-06-07 22:19:52 +00:00
mergify[bot]
334e11e4b9
rework hash calculation to not keep slot and write version ( #17685 ) ( #17794 )
...
* rework hash calculation to not keep slot and write version
* refactor functions and add tests
* always use multiple slot code path
(cherry picked from commit b5bb91b50f
)
Co-authored-by: Jeff Washington (jwash) <75863576+jeffwashington@users.noreply.github.com >
2021-06-07 15:31:18 +00:00
mergify[bot]
fd68b4e7a8
Support out of band dumping of unrooted slots in AccountsDb ( #17269 ) ( #17777 )
...
* Accounts dumping logic
* Add test for interaction between cache flush and remove_unrooted_slot()
* Update comments
* Rename
* renaming
* Add more comments
* Renaming
* Fixup test and bad check
(cherry picked from commit bbcdf073ba
)
Co-authored-by: carllin <carl@solana.com >
2021-06-07 09:37:55 +00:00
mergify[bot]
e5ea16fad8
system-program: Remove zero lamport check on transfers ( #17726 ) ( #17764 )
...
* system-program: Move lamports == 0 check on transfers
* Address feedback
* Update stake split to explicitly allocate + assign
* Update stake tests referring to split instruction
* Revert whitespace
* Update split instruction index in test
* Remove unnecessary `assign_with_seed` from `split_with_seed`
* Fix stake instruction parser
* Update test to allow splitting into account with lamports
(cherry picked from commit 8f5e773caf
)
Co-authored-by: Jon Cinque <jon.cinque@gmail.com >
2021-06-06 18:27:29 +00:00
mergify[bot]
ffb6b5a23b
add data point for cap mismatch ( #17746 ) ( #17751 )
...
(cherry picked from commit f6fb8906c7
)
Co-authored-by: Jeff Washington (jwash) <75863576+jeffwashington@users.noreply.github.com >
2021-06-04 20:39:46 +00:00
mergify[bot]
67c07aa5d3
increase bin count for hash scan ( #17562 ) ( #17747 )
...
(cherry picked from commit 5197454fea
)
Co-authored-by: Jeff Washington (jwash) <75863576+jeffwashington@users.noreply.github.com >
2021-06-04 18:12:48 +00:00
mergify[bot]
59f4fba05c
simplify test construction ( #17686 ) ( #17693 )
...
(cherry picked from commit 83ceedc091
)
# Conflicts:
# runtime/src/accounts_db.rs
Co-authored-by: Jeff Washington (jwash) <75863576+jeffwashington@users.noreply.github.com >
2021-06-04 15:57:11 +00:00
mergify[bot]
78147d48e4
use slots returned from get_snapshot_storages to sort ( #17638 ) ( #17695 )
...
* use slots returned from get_snapshot_storages to sort
* add tests
(cherry picked from commit 9388aaca15
)
# Conflicts:
# runtime/src/accounts_db.rs
# runtime/src/sorted_storages.rs
Co-authored-by: Jeff Washington (jwash) <wash678@gmail.com >
2021-06-04 10:14:37 -05:00
mergify[bot]
ae42413d57
support bin divisions up to 65536 ( #17563 ) ( #17692 )
...
* support bin divisions up to 65536
* add tests
(cherry picked from commit db8811eacd
)
# Conflicts:
# runtime/src/accounts_db.rs
Co-authored-by: Jeff Washington (jwash) <75863576+jeffwashington@users.noreply.github.com >
2021-06-04 06:33:00 +00:00
mergify[bot]
d433bd3d84
remove slot lookup ( #17691 ) ( #17694 )
...
(cherry picked from commit 4bd32d891f
)
# Conflicts:
# runtime/src/accounts_db.rs
Co-authored-by: Jeff Washington (jwash) <wash678@gmail.com >
2021-06-04 06:09:46 +00:00
mergify[bot]
58dd6dc227
add info for vm.max_map_count incorrectly set. ( #17727 ) ( #17730 )
...
(cherry picked from commit 81bafd9daf
)
Co-authored-by: Jeff Washington (jwash) <75863576+jeffwashington@users.noreply.github.com >
2021-06-04 05:02:13 +00:00
mergify[bot]
17dc13760b
sort storages by slot before scan ( #17411 ) ( #17724 )
...
* sort storages by slot before scan
* fix return value
(cherry picked from commit ef5169ff24
)
# Conflicts:
# runtime/src/accounts_db.rs
Co-authored-by: Jeff Washington (jwash) <75863576+jeffwashington@users.noreply.github.com >
2021-06-04 03:21:20 +00:00
mergify[bot]
96de58b3a4
reduce copy ( #17672 ) ( #17688 )
...
(cherry picked from commit d802eb303c
)
Co-authored-by: Jeff Washington (jwash) <75863576+jeffwashington@users.noreply.github.com >
2021-06-03 22:26:31 +00:00
mergify[bot]
9b61fa24c7
rework test for flexibility ( #17592 ) ( #17681 )
...
* rework test for flexibility
* respond to pr feedback
(cherry picked from commit 886898eabf
)
# Conflicts:
# runtime/src/accounts_db.rs
Co-authored-by: Jeff Washington (jwash) <75863576+jeffwashington@users.noreply.github.com >
2021-06-03 21:25:58 +00:00
mergify[bot]
e9be3cf6bc
implement ancestors as rolling bit field ( #17482 ) ( #17673 )
...
(cherry picked from commit eec996ba41
)
Co-authored-by: Jeff Washington (jwash) <75863576+jeffwashington@users.noreply.github.com >
2021-06-03 18:47:37 +00:00
mergify[bot]
ea44a71914
parallel get_snapshot_storages ( #17589 ) ( #17679 )
...
(cherry picked from commit 738cc9549f
)
# Conflicts:
# runtime/src/accounts_db.rs
# runtime/src/bank.rs
# runtime/src/serde_snapshot/tests.rs
Co-authored-by: Jeff Washington (jwash) <75863576+jeffwashington@users.noreply.github.com >
2021-06-03 18:32:04 +00:00
mergify[bot]
a00fbbf5ca
add metric for collecting storages ( #17527 ) ( #17675 )
...
(cherry picked from commit 72bb271a94
)
# Conflicts:
# runtime/src/accounts_db.rs
# runtime/src/snapshot_utils.rs
Co-authored-by: Jeff Washington (jwash) <75863576+jeffwashington@users.noreply.github.com >
2021-06-03 05:34:32 +00:00
mergify[bot]
eb1a04af65
refactor SnapshotStorage helpers to prepare for later changes ( #17560 ) ( #17678 )
...
(cherry picked from commit 654918ab27
)
# Conflicts:
# runtime/src/accounts_db.rs
Co-authored-by: Jeff Washington (jwash) <75863576+jeffwashington@users.noreply.github.com >
2021-06-03 05:24:11 +00:00
mergify[bot]
d1fbf77f3f
RollingBitField: bug fixes and add tests ( #17525 ) ( #17674 )
...
* RollingBitField: bug fixes and add tests
* respond to feedback
(cherry picked from commit 8924fbf6a0
)
Co-authored-by: Jeff Washington (jwash) <75863576+jeffwashington@users.noreply.github.com >
2021-06-03 05:07:02 +00:00
mergify[bot]
04fbf73a29
remove antiquated assert ( #17643 ) ( #17689 )
...
(cherry picked from commit 07bac27ac7
)
Co-authored-by: Jeff Washington (jwash) <75863576+jeffwashington@users.noreply.github.com >
2021-06-02 21:53:33 +00:00
mergify[bot]
db70eb3160
minor test code cleanup ( #17645 ) ( #17680 )
...
(cherry picked from commit 107af52deb
)
Co-authored-by: Jeff Washington (jwash) <75863576+jeffwashington@users.noreply.github.com >
2021-06-02 20:14:23 +00:00
mergify[bot]
cd974c26b6
add check_hash to non-index hash calculation ( #17558 ) ( #17676 )
...
(cherry picked from commit 55c22d3b76
)
Co-authored-by: Jeff Washington (jwash) <75863576+jeffwashington@users.noreply.github.com >
2021-06-02 20:00:50 +00:00
mergify[bot]
53e0f5d61c
remove unnecessary clone ( #17559 ) ( #17677 )
...
(cherry picked from commit 1d02dba06f
)
Co-authored-by: Jeff Washington (jwash) <75863576+jeffwashington@users.noreply.github.com >
2021-06-02 19:59:55 +00:00
mergify[bot]
e864bf4898
Fix CPI recursion depth ( #17659 ) ( #17670 )
...
* Fix CPI recursion depth
(cherry picked from commit 80e5b24b38
)
Co-authored-by: Jack May <jack@solana.com >
2021-06-02 11:06:50 +00:00
Michael Vines
975c942ea7
Bump version to v1.7.1
2021-06-02 05:21:14 +00:00
mergify[bot]
2f7f243022
Always bail if program modifies a ro account (backport #17569 ) ( #17584 )
...
* Always bail if program modifies a ro account (#17569 )
(cherry picked from commit a3240aebde
)
* resolve conflicts
* nudge
Co-authored-by: Jack May <jack@solana.com >
2021-05-28 20:34:10 +00:00
sakridge
49402b7d82
Only add keys with multiple index entries to the clean set ( #17473 )
2021-05-27 16:31:24 +02:00