mergify[bot]
8f75cfe247
Record instructions after account translation ( #13845 )
...
(cherry picked from commit cc78667118
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-11-28 20:13:31 +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
Michael Vines
f5eb5a3ba6
Bump version to v1.4.13
2020-11-26 06:59:28 +00:00
mergify[bot]
05f464798f
Add stake calculation tests with inflation/slashing ( #13605 ) ( #13798 )
...
* Add stake calculation tests with inflation/slashing
* Clean up the test
(cherry picked from commit 42421e77a9
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2020-11-25 05:16:09 +00:00
Tyera Eulberg
fd9e003ae1
Bump version to 1.4.12 ( #13792 )
2020-11-24 22:53:36 +00:00
Tyera Eulberg
7099d07fd3
Bump version to 1.4.11 ( #13780 )
2020-11-24 06:30:35 +00:00
mergify[bot]
f789da1e20
Prevent splitting when either source or split stake will equal zero ( #13775 ) ( #13777 )
...
(cherry picked from commit e3a92d6905
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2020-11-24 04:08:17 +00:00
mergify[bot]
ddf019c1a4
Stake: Support merging fully-activated stake accounts (bp #13712 ) ( #13770 )
...
* stake: De-replicode mergable info extraction
(cherry picked from commit dc7f89715a
)
* stake: Cosmetic - rename variable
(cherry picked from commit bb2772d068
)
* stake: Allow compatible, fully-active stake accounts to be merged
(cherry picked from commit 8e73187990
)
* stake: Remove disused test helper function
(cherry picked from commit 6b9a019c0a
)
* stake: Disallow stakes merging with themselves
(cherry picked from commit 488ce982f0
)
Co-authored-by: Trent Nelson <trent@solana.com >
2020-11-23 22:48:30 +00:00
mergify[bot]
74d57b1c2f
Fail stake init if account data is the wrong size ( #13767 ) ( #13769 )
...
(cherry picked from commit 38a3ed96bb
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2020-11-23 21:30:33 +00:00
mergify[bot]
086e653a0b
Cap split stake at source stake when splitting entire balance ( #13754 ) ( #13766 )
...
(cherry picked from commit f0f99ffc7e
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2020-11-23 18:42:22 +00:00
mergify[bot]
6d8d5d1379
fix arithmetic overflow in slice translation (bp #13624 ) ( #13625 )
...
* fix arithmetic overflow in slice translation (#13624 )
* fix arithmetic overflow in slice translation
* nudge
(cherry picked from commit 8c922a0198
)
# Conflicts:
# programs/bpf_loader/src/syscalls.rs
* fix conflicts
Co-authored-by: Jack May <jack@solana.com >
2020-11-22 03:30:27 +00:00
mergify[bot]
5cf52c3c20
ledger-tool cap: output credits_observed ( #13746 ) ( #13748 )
...
(cherry picked from commit 3bc7d85986
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2020-11-21 17:30:10 +00:00
mergify[bot]
bc334427e3
stake: Don't pay out rewards for epochs where inflation was not enabled ( #13745 )
...
(cherry picked from commit 13aa38d307
)
Co-authored-by: Trent Nelson <trent@solana.com >
2020-11-21 05:41:53 +00:00
mergify[bot]
08b53c0963
Use info for failed to match slot vote error ( #13715 ) ( #13720 )
...
(cherry picked from commit 2cb006fa44
)
Co-authored-by: sakridge <sakridge@gmail.com >
2020-11-20 01:34:42 +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
Tyera Eulberg
855cf9a362
Bump version to 1.4.10 ( #13657 )
2020-11-18 01:29:58 +00:00
Jack May
96ba314281
Bump rbpf to v0.1.33 ( #13643 )
2020-11-17 16:00:20 -08:00
mergify[bot]
181ff3d13e
Update Initialized split rent-exempt value ( #13646 ) ( #13653 )
...
(cherry picked from commit 39932d7664
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2020-11-17 20:43:30 +00:00
mergify[bot]
195ce0ed79
Remove overflow opportunities ( #13649 ) ( #13651 )
...
(cherry picked from commit a7bed62af0
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2020-11-17 20:26:06 +00:00
mergify[bot]
c40216350c
Add back BPF error logging ( #13633 ) ( #13639 )
...
* Add back BPF error logging
* Update programs/bpf_loader/src/lib.rs
Co-authored-by: Michael Vines <mvines@gmail.com >
(cherry picked from commit 3a9dca0c67
)
Co-authored-by: Jack May <jack@solana.com >
2020-11-17 09:33:58 +00:00
mergify[bot]
719f162229
Reject faked stake/vote accounts in stake mgmt. ( #13615 ) ( #13621 )
...
* Reject faked stake/vote accounts in stake mgmt.
* Use clearer name
(cherry picked from commit 2b3faa1947
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2020-11-16 23:19:54 +00: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]
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
mergify[bot]
a7280f117a
fix bpf lddw check ( #13554 ) ( #13558 )
...
(cherry picked from commit 30ef53cb13
)
Co-authored-by: Jack May <jack@solana.com >
2020-11-12 22:35:13 +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
Tyera Eulberg
c9e646b86b
Bump version to v1.4.7 ( #13488 )
2020-11-10 05:55:26 +00:00
mergify[bot]
4e797cc867
Clean up Delegation::stake_activating_and_deactivating ( #13471 ) ( #13473 )
...
(cherry picked from commit 5306eb93cc
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2020-11-09 09:57:32 +00:00
mergify[bot]
f823b10597
Clean up Delegation::stake_and_activating ( #13460 ) ( #13469 )
...
(cherry picked from commit 737d3e376d
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2020-11-08 09:47:47 +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]
4e4fd03b65
Add builtin mem tests (bp #13429 ) ( #13437 )
...
* Add builtin mem tests (#13429 )
(cherry picked from commit 84b139cc94
)
* resolve crate version
* nudge
Co-authored-by: Jack May <jack@solana.com >
2020-11-07 01:15:35 +00:00
mergify[bot]
049ca18dc5
Fix stake split rent-exempt adjustment ( #13357 ) ( #13453 )
...
* Add failing tests
* Fix stake split
* Calculate split rent-exempt-reserve and use
* Add comment in rent.rs
* Add tests for edge cases when splitting to larger accounts, and reject overflow splits
* Reframe InsufficientFunds checks in terms of lamports var
* Test hardening review comments
(cherry picked from commit 4c5f345798
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2020-11-06 22:05:57 +00:00
mergify[bot]
747e91d434
Fix stake redelegate (bp #13358 ) ( #13450 )
...
* stake: Add redelegation failing test
(cherry picked from commit 491ad59d2e
)
* stake: Consider withdraws we redelegating
(cherry picked from commit fe1e08b9ad
)
Co-authored-by: Trent Nelson <trent@solana.com >
2020-11-06 20:07:46 +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
Michael Vines
47d8608aee
Remove unneeded .gitignore
2020-11-05 22:42:35 +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]
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
Michael Vines
c49b89091a
cargo update -p futures-task
/ cargo update -p futures-util
2020-10-31 18:50:51 +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]
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
mergify[bot]
429f130532
Switch accounts storage lock to DashMap ( #12126 ) ( #13223 )
...
Co-authored-by: Carl Lin <carl@solana.com >
(cherry picked from commit f8d338c9cb
)
Co-authored-by: carllin <wumu727@gmail.com >
2020-10-28 08:07:28 +00:00
mergify[bot]
e20e79f412
ignore .so files ( #13188 ) ( #13192 )
...
(cherry picked from commit bb6ab3a62d
)
Co-authored-by: Jack May <jack@solana.com >
2020-10-27 07:23:50 +00:00