mergify[bot]
82b087e51e
Add extra checks to verify_and_update ( #13848 ) ( #13850 )
...
* Add extra checks to verify_and_update
* nudge
(cherry picked from commit ce4304cc9a
)
Co-authored-by: Jack May <jack@solana.com >
2020-11-29 11:22:46 +00:00
mergify[bot]
a3be6bacc6
Enhance ledger-tool for multi-epoch rewards ( #13837 ) ( #13839 )
...
* Support ledger-tool for multi-epoch rewards
* nits
* Ensure not to skip some records in csv
(cherry picked from commit 6048342c57
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2020-11-27 05:36:08 +00:00
mergify[bot]
0fc3bcabfd
Fix roots_and_ref_count ( #13827 ) ( #13833 )
...
Co-authored-by: Carl Lin <carl@solana.com >
(cherry picked from commit 955b99cf69
)
Co-authored-by: carllin <wumu727@gmail.com >
2020-11-26 22:33:43 +00:00
Michael Vines
f5eb5a3ba6
Bump version to v1.4.13
2020-11-26 06:59:28 +00:00
mergify[bot]
fe4c59e38d
Add solana logs
command ( #13812 )
...
(cherry picked from commit 4ef2da0ff0
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-11-25 22:22:23 +00:00
mergify[bot]
305d5d97d8
Nonce updates ( #13799 ) ( #13810 )
...
* runtime: Add `FeeCalculator` resolution method to `HashAgeKind`
* runtime: Plumb fee-collected accounts for failed nonce tx rollback
* runtime: Use fee-collected nonce/fee account for nonced TX error rollback
* runtime: Add test for failed nonced TX accounts rollback
* Fee payer test
* fixup: replace nonce account when it pays the fee
* fixup: nonce fee-payer collect test
* fixup: fixup: clippy/fmt for replace...
* runtime: Test for `HashAgeKind::fee_calculator()`
* Clippy
Co-authored-by: Trent Nelson <trent@solana.com >
(cherry picked from commit b70abdc645
)
Co-authored-by: sakridge <sakridge@gmail.com >
2020-11-25 18:18:04 +00:00
Tyera Eulberg
fd9e003ae1
Bump version to 1.4.12 ( #13792 )
2020-11-24 22:53:36 +00:00
mergify[bot]
fdcf589f7c
Restore bank feature used to deprecate Rewards sysvar ( #13786 ) ( #13788 )
...
(cherry picked from commit c930f92411
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2020-11-24 18:57:26 +00:00
Tyera Eulberg
7099d07fd3
Bump version to 1.4.11 ( #13780 )
2020-11-24 06:30:35 +00:00
mergify[bot]
b74bb12ebe
Truncate logs immediately upon collection. Also reduce limit from 100k to 10k ( #13774 )
...
(cherry picked from commit 60ce6f1a9b
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-11-24 02:36:23 +00:00
mergify[bot]
d0cac2a2ea
Prevent scans on unrooted slots from seeing partial clean ( #13628 ) ( #13741 )
...
Co-authored-by: Carl Lin <carl@solana.com >
(cherry picked from commit 791fb17437
)
Co-authored-by: carllin <wumu727@gmail.com >
2020-11-20 22:14:51 +00:00
mergify[bot]
3743e44fb3
Add new inflation feature-ids ( #13671 ) ( #13736 )
...
* Add new inflation feature-ids, and full_inflation default values
* Compute inflation start from full_inflation activation
* Include pico_inflation in inflation start computation
* Add full-inflation constructor
* Align inflation taper with rewards accrual start and catch overflow edge case
(cherry picked from commit c75d97e3f2
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2020-11-20 18:08:57 +00:00
mergify[bot]
f5ef999b31
Snapshot archives are now cleaned up when --snapshot-compression none
is used ( #13733 )
...
(cherry picked from commit 11e92f0c9f
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-11-20 17:54:27 +00:00
mergify[bot]
6dc62bfb77
Fix fragile tests in prep of stake rewrite pr ( #13654 ) ( #13721 )
...
* Fix fragile tests in prep of stake rewrite pr
* Restore BOOTSTRAP_VALIDATOR_LAMPORTS where appropriate
* Further clean up
* Further clean up
* Aligh with other call site change
* Remove false warn!
* fix ci!
(cherry picked from commit b74d7b5758
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2020-11-20 09:34:46 +00:00
mergify[bot]
ff38a46af6
sanitizes bloom filters to avoid division by zero ( #13714 ) ( #13718 )
...
Pull requests received over the wire can cause a validator to panic
because of division by zero in bloom filters:
https://github.com/solana-labs/solana/blob/af08ba93e/runtime/src/bloom.rs#L86-L88
(cherry picked from commit a8c29505f0
)
Co-authored-by: behzad nouri <behzadnouri@gmail.com >
2020-11-20 01:07:30 +00:00
mergify[bot]
d967ff0138
Allow GNUSparse for genesis.bin ( #13704 ) ( #13707 )
...
(cherry picked from commit 397cf726fc
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2020-11-19 21:57:12 +00:00
mergify[bot]
640f4a1ec7
Rewrite stake accounts for clear migration ( #13461 ) ( #13705 )
...
* Reduce overage stake by rewritng stake accounts
* Write tests and finish implemention
* Create and use new feature gate
* Clean up logging
* Fix typo
* Simplify enable_rewrite_stake
* Fix typo...
* Even simplify gating
* Add metrics
(cherry picked from commit 43d5e47ea9
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2020-11-19 21:29:42 +00:00
mergify[bot]
7e5b75fa7e
Check for overflow in rent partition calculation ( #13569 ) ( #13696 )
...
Co-authored-by: Carl Lin <carl@solana.com >
(cherry picked from commit 110acd20dc
)
Co-authored-by: carllin <wumu727@gmail.com >
2020-11-19 13:41:48 +00:00
mergify[bot]
60beb509f7
Prevent scans from seeing root updates/clean ( #13464 ) ( #13686 )
...
Co-authored-by: Carl Lin <carl@solana.com >
(cherry picked from commit 6276360468
)
Co-authored-by: carllin <wumu727@gmail.com >
2020-11-19 07:11:59 +00:00
Tyera Eulberg
855cf9a362
Bump version to 1.4.10 ( #13657 )
2020-11-18 01:29:58 +00:00
Tyera Eulberg
e52e6dfbaa
v1.4: Improve monitoring of timestamp correction and bounding ( #13655 )
...
* Include rejuvenated field in Clock parsing
* Expand timestamp-correction logging info
2020-11-17 14:46:30 -07:00
mergify[bot]
88b19e10cb
ledger-tool cap: delegation owner and stake v2 flag ( #13602 ) ( #13607 )
...
* Output delegation owner as well
* Add --enable-stake-program-v2
* Small cleanup and add sanity assertion
* Fix typo...
(cherry picked from commit bcd303a447
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2020-11-15 20:55:14 +00:00
Michael Vines
b4deeb8e36
Add stable program logging for BPF and native programs
2020-11-14 08:26:54 -08:00
Trent Nelson
b838aba840
Bump version to 1.4.9
2020-11-13 17:50:10 -07:00
mergify[bot]
0311ad5ddf
Small cleaning update_epoch_stakes ( #13576 ) ( #13578 )
...
(cherry picked from commit c97a7d1105
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2020-11-13 12:40:51 +00:00
mergify[bot]
f5454e62a1
Fix potential undefined behavior ( #13555 ) ( #13575 )
...
* Switch to ouroboros 0.5.1
* Update other lock files
(cherry picked from commit a8a77614fe
)
Co-authored-by: joshua-maros <60271685+joshua-maros@users.noreply.github.com >
2020-11-13 10:40:10 +00:00
Ryo Onodera
e14c2f94f4
Bump version to v1.4.8 ( #13552 )
2020-11-12 17:43:31 +00:00
mergify[bot]
2cb9ca5966
Fix slow/stuck unstaking due to toggling in epoch ( #13501 ) ( #13535 )
...
* Fix slow/stuck unstaking due to toggling in epoch
* nits
* nits
* Add stake_program_v2 feature status check to cli
Co-authored-by: Tyera Eulberg <tyera@solana.com >
(cherry picked from commit 89b474e192
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2020-11-11 22:27:10 +00:00
mergify[bot]
053ce10ce5
Refactor function ( #13294 ) ( #13520 )
...
Co-authored-by: Carl Lin <carl@solana.com >
(cherry picked from commit 2c2432fddc
)
Co-authored-by: carllin <wumu727@gmail.com >
2020-11-11 04:07:51 +00:00
mergify[bot]
25cd1ceeeb
Fix parsing CreateAccountWithSeed instructions ( #13513 ) ( #13517 )
...
* Reduce required num_system_accounts and handle 2-account instructions properly
* Update CreateAccountWithSeed account docs to be correct
* Add CreateAccountWithSeed test
(cherry picked from commit 91f4e99b4c
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2020-11-11 01:13:12 +00:00
Tyera Eulberg
c9e646b86b
Bump version to v1.4.7 ( #13488 )
2020-11-10 05:55:26 +00:00
Tyera Eulberg
ccd48923a0
Fix Bank accounts hash mismatch related to Clock::unix_timestamp ( #13477 ) ( #13485 )
...
* Test for different ancestors with mismatch bank hash
* Test cleanup
* Remove nondeterministic ancestor check
* Update timestamp bounding feature key
* Update design doc
* Filter recent_timestamps to nodes voting within the last epoch
Co-authored-by: Stephen Akridge <sakridge@gmail.com >
Co-authored-by: Stephen Akridge <sakridge@gmail.com >
2020-11-10 03:35:22 +00:00
mergify[bot]
c9e56c9749
Output more inflation calc details in ledger-tool ( #13345 ) ( #13467 )
...
* Output more inflation calc details in ledger-tool
* Fix broken ci...
* Rename confusing variables
* Fix panic by wrapping PointValue with Opiton...
* Minor modifications
* Remove explict needless flush; Drop already does
* Yet another csv field adjustments
* Add data_size and rename epochs to earned_epochs
* Introduce null_tracer
* Unwrap Option in new_from_parent_with_tracer
* Don't shorten identifiers
* Allow irrefutable_let_patterns temporalily
* More null_tracer
* More field adjustments
(cherry picked from commit a81e7e7749
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2020-11-08 09:01:36 +00:00
Michael Vines
e738bf1c9a
Bump version to v1.4.6
2020-11-07 02:49:14 +00:00
mergify[bot]
98e9f34704
Feature-gate stake program ( #13394 ) ( #13439 )
...
* Add legacy stake-program handling
* Strip out duplicative legacy code
* Add feature for stake-program-fix
* Feature-deploy new stake program
* Expand comment
(cherry picked from commit 1b1d9f6b0c
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2020-11-06 09:25:34 +00:00
mergify[bot]
3b2bdd9f8a
Fix duplicate records of inner instructions ( #13380 ) ( #13413 )
...
* Fix duplicate records of inner instructions
* fix tests
* fix clippy
* Remove bad_inner_instructions
(cherry picked from commit c24fbb6f8b
)
Co-authored-by: Justin Starry <justin@solana.com >
2020-11-06 01:30:24 +00:00
mergify[bot]
a2c32d7d0e
shares the lock on gossip when processing prune messages ( #13339 ) ( #13422 )
...
Processing prune messages acquires an exclusive lock on gossip:
https://github.com/solana-labs/solana/blob/55b0428ff/core/src/cluster_info.rs#L1824-L1825
This can be reduced to a shared lock if active-sets are changed to use
atomic bloom filters:
https://github.com/solana-labs/solana/blob/55b0428ff/core/src/crds_gossip_push.rs#L50
(cherry picked from commit 8f0796436a
)
Co-authored-by: behzad nouri <behzadnouri@gmail.com >
2020-11-05 17:18:22 +00:00
mergify[bot]
b15d826476
Allow feature builtins to overwrite existing builtins ( #13403 ) ( #13420 )
...
* Allow feature builtins to overwrite existing builtins
* Add feature_builtin ActivationType
* Correctly retain idempotent for replacing case
* Fix test
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
(cherry picked from commit bc62313c66
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2020-11-05 16:51:25 +00:00
mergify[bot]
e476dc4eaa
Comment Stakes::clone_with_epoch ( #13388 ) ( #13390 )
...
(cherry picked from commit b0d1ae1d8b
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2020-11-04 12:29:13 +00:00
mergify[bot]
0bf45cbab6
Small code cleanup and typo fixes ( #13325 ) ( #13341 )
...
* Small code cleanup and typo fixes
* Clean up calculate_points_and_credits
(cherry picked from commit 0e4509c497
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2020-11-02 02:42:38 +00:00
Michael Vines
5877427389
Bump version to v1.4.5
2020-11-01 17:05:45 +00:00
mergify[bot]
b28d10d46f
Add bank timestamp bounding (bp #13120 ) ( #13331 )
...
* Add bounding feature
(cherry picked from commit 96b8aa8bd1
)
* Repurpose unused as Clock::epoch_start_timestamp; add gated update
(cherry picked from commit 0049ab69fb
)
* Add bounded timestamp-estimation method
(cherry picked from commit 80db6c0980
)
* Use bounded timestamp-correction when feature enabled
(cherry picked from commit 90778615f6
)
* Prevent block times from ever going backward
(cherry picked from commit eb2560e782
)
* Sample votes from ancestors back to root
(cherry picked from commit 4260b3b416
)
* Add Clock sysvar details, update struct docs
(cherry picked from commit 3a1e125ce3
)
* Add design proposal and update validator-timestamp-oracle
(cherry picked from commit a3912bc084
)
* Adapt to feature::create_account
Co-authored-by: Tyera Eulberg <tyera@solana.com >
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-11-01 06:02:34 +00:00
mergify[bot]
f2d929c12d
Move Feature struct to solana-program ( #13321 )
...
(cherry picked from commit 4b65e32f22
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-10-31 20:33:35 +00:00
mergify[bot]
93a119a51e
Print the entry type as well when checking archive ( #13312 ) ( #13314 )
...
(cherry picked from commit bc7133d752
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2020-10-30 17:48:23 +00:00
mergify[bot]
4312841433
de-mut some InvokeContext methods (bp #13301 ) ( #13309 )
...
* de-mut some InvokeContext methods
(cherry picked from commit da9548fd12
)
* Simplify CPI interface into MessageProcessor
(cherry picked from commit 9263ae1c60
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-10-30 10:35:59 +00:00
mergify[bot]
40a3885d3b
Native/builtin programs now receive an InvokeContext (bp #13286 ) ( #13298 )
...
* Native/builtin programs now receive an InvokeContext
(cherry picked from commit df8dab9d2b
)
* Remove MessageProcessor::loaders
(cherry picked from commit 2664a1f7ef
)
* Remove Entrypoint type
(cherry picked from commit 225bed11c7
)
* Remove programs clone()
(cherry picked from commit 33884d847a
)
* Add sol_log_compute_units syscall
(cherry picked from commit 66e51a7363
)
* Add Bank::set_bpf_compute_budget()
(cherry picked from commit 7d686b72a0
)
* Rebase
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-10-30 07:47:17 +00:00
Alexander Meißner
36b7c2ea97
Refactors the common code of test and bench targets into the solana_runtime::bpf_test_utils module. ( #13203 )
...
(cherry picked from commit 65ee3a6bdd
)
2020-10-29 22:03:09 -07:00
mergify[bot]
69b3f10207
move Account to solana-sdk (bp #13198 ) ( #13269 )
...
* move Account to solana-sdk (#13198 )
(cherry picked from commit c458d4b213
)
# Conflicts:
# programs/bpf/benches/bpf_loader.rs
* resolve conflicts
Co-authored-by: Jack May <jack@solana.com >
2020-10-29 19:16:52 +00:00
mergify[bot]
dfb2356a9a
Update FeatureSet::active to include slot-activated ( #13256 ) ( #13263 )
...
* Update FeatureSet::active to include slot-activated
* Clippy suggestion
(cherry picked from commit c2dbf53d76
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2020-10-29 03:42:42 +00:00
mergify[bot]
010794806a
Finer grained AccountsIndex locking ( #12787 ) ( #13240 )
...
Co-authored-by: Carl Lin <carl@solana.com >
Co-authored-by: carllin <wumu727@gmail.com >
Co-authored-by: Carl Lin <carl@solana.com >
2020-10-28 23:46:54 +00:00