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
Jeff Washington (jwash)
3973bf08f1
move local out of call ( #17519 )
2021-05-27 08:53:11 -05:00
Michael Vines
9541411c15
Plumb transaction-level rewards (aka "rent debits") into the getTransaction
RPC method
2021-05-27 03:05:05 +00:00
Michael Vines
cbce440af4
simulateTransaction can now return accounts modified by the simulation
2021-05-26 14:20:23 -07:00
sakridge
3f9e3c7375
Remove copied shrink code ( #17385 )
2021-05-26 19:27:18 +02:00
Jeff Washington (jwash)
6b9d8d41a3
add --limit_load_slot_count_from_snapshot to ledger-tool ( #17417 )
2021-05-26 10:36:12 -05:00
Trent Nelson
2a6c5ed0ac
add tests from RentDebits
2021-05-26 08:19:10 +00:00
Trent Nelson
97eab7edf9
runtime: add rent debit charges to block metadata
2021-05-26 08:19:10 +00:00
Tyera Eulberg
e9bc1c6b07
Add last valid block height to rpc Fees ( #17506 )
...
* Add last_valid_block_height to fees rpc
* Add getBlockHeight rpc
* Update docs
2021-05-26 07:26:19 +00:00
steviez
a5c2067273
fixup! Ancestors to HashSet: From(Vec) ( #17447 ) ( #17481 )
2021-05-25 12:24:34 -05:00
Jeff Washington (jwash)
98f1b11edd
Ancestors to HashSet: From(Vec) ( #17447 )
...
* ancestors.large_range_slots becomes HashSet
* Ancestors to HashSet: From(Vec)
2021-05-25 11:01:11 -05:00
Jeff Washington (jwash)
d39a327138
ancestors.large_range_slots becomes HashSet ( #17446 )
2021-05-25 11:00:50 -05:00
Jeff Washington (jwash)
40bb6577fc
initialize purge stats ( #17345 )
2021-05-25 09:24:38 -05:00
Jeff Washington (jwash)
d4fc9e7ed4
ad metric for collect ( #17418 )
2021-05-24 18:14:52 -05:00
Jeff Washington (jwash)
dd22ae047b
ancestors is set instead of map ( #17363 )
2021-05-24 17:01:02 -05:00
carllin
d8bc56fa51
Refactor purge_slots_from_cache_and_store() and handle_reclaims() ( #17319 )
2021-05-24 13:51:17 -07:00
jon-chuang
ad1f24d487
runtime: Executor usage counts retain only single-epoch memory ( #17162 )
2021-05-24 12:01:56 -07:00
sakridge
a8dca3976b
Refactor genesis download/load/check functions ( #17276 )
...
* Refactor genesis ingest functions
* Consolidate genesis.bin/genesis.tar.bz2 references
2021-05-24 16:45:36 +02:00
Alexander Meißner
855ae79598
Fix InvokeContext::push() account_deps ( #17350 )
...
* Reverts aliasing of account_deps with the previous invocation stack frame in InvokeContext::push().
* Adds explicit assert of programdata account content in test_program_bpf_upgrade_via_cpi.
2021-05-21 22:34:07 +02:00
Jeff Washington (jwash)
3f3324231d
Hold read lock during startup shrink ( #17309 )
...
* hold read lock during account scan of shrink
* rename and improve rusty
2021-05-21 13:59:32 -05:00
Jeff Washington (jwash)
44831c18d2
reuse work in is_non_loader_key ( #16521 )
2021-05-21 10:07:04 -05:00
Jeff Washington (jwash)
8143ee5502
add AccountsIndex AccountMapsReadLock type ( #17365 )
2021-05-21 10:02:14 -05:00
Jeff Washington (jwash)
2f55547d37
remove flatten in storage scan ( #17354 )
...
* remove flatten in storage scan
* fix tests
2021-05-21 09:26:46 -05:00
Michael Vines
2c99b23ad7
Add get_sysvar() helper to sdk
2021-05-21 01:30:12 +00:00