Justin Starry
aa5e23799f
Optimize stakes cache and rewards at epoch boundaries (backport #20432 ) ( #20475 )
...
* Optimize stakes cache and rewards at epoch boundaries (backport #20432 )
* fix conflicts
2021-10-06 16:25:30 -04:00
mergify[bot]
b9b81def35
Make rewards tracer async friendly (backport #20452 ) ( #20455 )
...
* Make rewards tracer async friendly (#20452 )
(cherry picked from commit 250a8503fe
)
# Conflicts:
# Cargo.lock
# ledger-tool/Cargo.toml
# ledger-tool/src/main.rs
# programs/stake/src/stake_state.rs
# runtime/src/bank.rs
* fix conflicts
Co-authored-by: Justin Starry <justin@solana.com >
2021-10-06 07:09:40 +00:00
Tyera Eulberg
5df386ae0e
Bump version to v1.6.28 ( #20300 )
2021-09-28 20:23:27 +00:00
Tyera Eulberg
c5d174c170
Use single feature ( #20289 )
2021-09-28 04:30:11 -06:00
Tyera Eulberg
9b6ec0b6d5
v1.6: Restore ability for programs to upgrade themselves ( #20263 )
...
* Make helper associated fn
* Add feature definition
* Restore program-id write lock when upgradeable loader is present; restore bpf upgrade-self test
* Remove spurious comment
2021-09-27 22:29:59 +00:00
Trent Nelson
572c0af699
runtime: remove inactive delegation from stakes cache
2021-09-22 20:39:34 -06:00
sakridge
0a3bf17bb5
Only allow votes when root distance gets too high #2 ( #19991 )
...
Updates from master
2021-09-22 18:25:47 +02:00
sakridge
8bf5cdb349
bump 1.6 version ( #19988 )
2021-09-18 00:09:39 +00:00
sakridge
eaa6aa0998
Only allow votes when root distance gets too high ( #19916 )
2021-09-17 22:28:11 +02:00
Michael Vines
ca55bce522
Bump version to 1.6.26 ( #19894 )
2021-09-14 23:29:33 -06:00
Tyera Eulberg
7232b01a02
Bump version to v1.6.25 ( #19880 )
2021-09-14 20:33:13 +00:00
Tyera Eulberg
a4ebbc9f55
Remove demote_program_write_locks feature ( #19877 )
...
* Remove demote_program_write_locks feature
* Update test
2021-09-14 12:25:42 -06:00
Stephen Akridge
d401c3f5ab
Bump version
2021-09-14 08:12:02 -07:00
mergify[bot]
3eee222667
Return error if Transaction contains writable executable or ProgramData accounts (backport #19629 ) ( #19729 )
...
* Return error if Transaction contains writable executable or ProgramData accounts (#19629 )
* Return error if Transaction locks an executable as writable
* Return error if a ProgramData account is writable but the upgradable loader isn't present
* Remove unreachable clause
* Fixup bpf tests
* Review comments
* Add new TransactionError
* Disallow writes to any upgradeable-loader account when loader not present; remove is_upgradeable_loader_present exception for all other executables
(cherry picked from commit 38bbb77989
)
# Conflicts:
# programs/bpf/tests/programs.rs
# runtime/src/accounts.rs
# runtime/src/bank.rs
# sdk/src/transaction.rs
# storage-proto/proto/transaction_by_addr.proto
# storage-proto/src/convert.rs
* Fix conflicts
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2021-09-09 03:06:02 +00:00
mergify[bot]
53f8e58300
Demote write locks on transaction program ids (backport #19593 ) (backport #19633 ) ( #19637 )
...
* Demote write locks on transaction program ids (backport #19593 ) (#19633 )
* Demote write locks on transaction program ids (#19593 )
* Add feature
* Demote write lock on program ids
* Fixup bpf tests
* Update MappedMessage::is_writable
* Comma nit
* Review comments
(cherry picked from commit decec3cd8b
)
# Conflicts:
# core/src/banking_stage.rs
# core/src/cost_model.rs
# core/src/cost_tracker.rs
# ledger-tool/src/main.rs
# program-runtime/src/instruction_processor.rs
# programs/bpf/tests/programs.rs
# programs/bpf_loader/src/syscalls.rs
# rpc/src/transaction_status_service.rs
# runtime/src/accounts.rs
# runtime/src/bank.rs
# runtime/src/message_processor.rs
# sdk/benches/serialize_instructions.rs
# sdk/program/src/message/mapped.rs
# sdk/program/src/message/sanitized.rs
# sdk/src/transaction/sanitized.rs
* Fix conflicts
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
(cherry picked from commit fcda5d4a7d
)
# Conflicts:
# cli-output/src/display.rs
# core/src/transaction_status_service.rs
# program-test/src/lib.rs
# programs/bpf_loader/src/syscalls.rs
# runtime/src/accounts.rs
# runtime/src/bank.rs
# runtime/src/message_processor.rs
# sdk/benches/serialize_instructions.rs
# sdk/program/src/message.rs
# sdk/src/feature_set.rs
# transaction-status/src/parse_accounts.rs
* Replace feature and fix conflicts
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2021-09-04 09:10:57 +00:00
mergify[bot]
3606de56f7
Fix tests that make assumptions about tx fee rate ( #19538 ) ( #19543 )
...
(cherry picked from commit 4fb43bbd90
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2021-09-01 05:57:30 +00:00
sakridge
715c5e64c4
Bump version to 1.6.23 ( #19447 )
2021-08-26 18:09:15 +00:00
carllin
7956f04fa5
Backport Accounts Fixes #16838 and the test #17038 ( #19412 )
...
* reclaims unref accounts from index (#16838 )
* Test account index and store alignment (#17038 )
* Use ReclaimResult::Default() instead of building subtypes
* Add test to ensure account_db store and index are aligned
Co-authored-by: Jeff Washington (jwash) <75863576+jeffwashington@users.noreply.github.com >
Co-authored-by: steviez <steven@solana.com >
2021-08-25 14:40:53 -07:00
Trent Nelson
011fe72aa2
Bump version to v1.6.22
2021-08-18 22:08:12 -06:00
Tyera Eulberg
4d77ac1688
Bump version to v1.6.21 ( #18953 )
2021-07-28 23:47:03 +00:00
mergify[bot]
3346843a87
token: Swap new token program id for consistency on all networks ( #18823 ) ( #18836 )
...
(cherry picked from commit d6f5945653
)
Co-authored-by: Jon Cinque <jon.cinque@gmail.com >
2021-07-22 09:55:39 +00:00
Jon Cinque
007c49ff2b
feature: add new token program feature (v1.6 backport of #18780 ) ( #18804 )
...
* feature: add new token program feature
* Fixup test
* Cargo fmt
* Add back whitespace for cargo fmt
* Revert file totally
2021-07-21 21:58:28 +02:00
mergify[bot]
bbd386884d
Disambiguate archive_snapshot_package
IO error sources ( #18797 )
...
(cherry picked from commit a4c3db51fc
)
Co-authored-by: Trent Nelson <trent@solana.com >
2021-07-21 19:32:19 +00:00
Jon Cinque
ba8426e0fd
1.6: Bump crates to 1.6.20 ( #18805 )
2021-07-21 17:44:41 +02:00
Trent Nelson
d7b381c90c
Bump version to v1.6.19
2021-07-17 08:57:44 +00:00
Trent Nelson
3dbdaa5341
Bump version to v1.6.18
2021-07-16 09:57:58 +00:00
Trent Nelson
49ac17a595
nonce: Unify NonceError
with SystemError
2021-07-16 01:35:38 -06:00
mergify[bot]
63d7fdb4bd
Gate libsecp256k1 update (backport #18656 ) ( #18700 )
...
* hijack secp256k1 enablement feature plumbing for libsecp256k1 upgrade
* Bump libsecp256k1 to v0.5.0
* gate libsecp256k1 upgrade to v0.5.0
Co-authored-by: Trent Nelson <trent@solana.com >
2021-07-16 03:34:13 +00:00
Michael Vines
84f0234151
rebase
2021-07-12 18:16:25 -07:00
Michael Vines
b629291848
Record vote account commission with voting/staking rewards and surface in RPC
...
(cherry picked from commit 4098af3b5b
)
# Conflicts:
# docs/src/developing/clients/jsonrpc-api.md
# runtime/src/bank.rs
2021-07-12 18:16:25 -07:00
mergify[bot]
50d510e4c7
Update ouroboros [fix potential UB] (backport #18567 ) ( #18572 )
...
* chore: bump ouroboros from 0.5.1 to 0.9.3 (#18189 )
* chore: bump ouroboros from 0.5.1 to 0.9.3
Bumps [ouroboros](https://github.com/joshua-maros/ouroboros ) from 0.5.1 to 0.9.3.
- [Release notes](https://github.com/joshua-maros/ouroboros/releases )
- [Commits](https://github.com/joshua-maros/ouroboros/commits )
---
updated-dependencies:
- dependency-name: ouroboros
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
* [auto-commit] Update all Cargo lock files
* Api changes
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot-buildkite <dependabot-buildkite@noreply.solana.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
* CI: Ignore inconsistent_struct_constructor lint
This lint was introduced at `warning`, which is an excessively high
level for cosmetics, and later demoted to `pedantic`
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot-buildkite <dependabot-buildkite@noreply.solana.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
Co-authored-by: Trent Nelson <trent@solana.com >
2021-07-10 21:06:42 +00:00
mergify[bot]
88c5d6b10c
featurize_policy_update (backport #18492 ) ( #18501 )
...
* featurize_policy_update (#18492 )
(cherry picked from commit ccdf93e2b8
)
# Conflicts:
# runtime/benches/message_processor.rs
# runtime/src/message_processor.rs
* fix conflicts
* nudge
Co-authored-by: Jack May <jack@solana.com >
2021-07-08 22:21:37 +00:00
mergify[bot]
50393adadd
Record parent slot to reconstruct fork tree from influxdb ( #18482 ) ( #18487 )
...
(cherry picked from commit d69f469b83
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2021-07-08 02:53:08 +00:00
mergify[bot]
6bc914989b
Update verify policy (backport #18459 ) ( #18490 )
...
* Update verify policy (#18459 )
(cherry picked from commit 44289e6728
)
# Conflicts:
# runtime/src/message_processor.rs
* resolve conflicts
Co-authored-by: Jack May <jack@solana.com >
2021-07-07 18:45:58 +00:00
sakridge
06b1c980d4
Bump version to v1.6.17 ( #18393 )
2021-07-02 19:40:37 +00:00
Trent Nelson
31dc79a4f9
Bump version to v1.6.16
2021-06-30 22:53:51 -06:00
mergify[bot]
7d68c44307
Don't update if already an executable ( #18252 )
...
(cherry picked from commit 2fbedd834f
)
# Conflicts:
# runtime/src/message_processor.rs
Co-authored-by: Jack May <jack@solana.com >
2021-06-27 19:21:02 +00:00
mergify[bot]
e259388069
Move stake_weighted_timestamp module (backport #18114 ) ( #18119 )
...
* Move stake_weighted_timestamp module (#18114 )
* Move timestamp module into runtime
* Less public
* Remove unused enum
(cherry picked from commit 19fe1dd463
)
# Conflicts:
# runtime/src/bank.rs
# runtime/src/lib.rs
* Fix conflicts
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2021-06-22 00:28:02 +00:00
Trent Nelson
06d6e357ae
Bump version to v1.6.15 ( #18108 )
2021-06-21 14:23:43 -06:00
Trent Nelson
0ed9f7144c
sdk: refactor pda generation
2021-06-21 10:16:49 -06:00
Tyera Eulberg
1201ef172e
Bump version to v1.6.14 ( #18050 )
2021-06-17 20:42:10 +00:00
Ryo Onodera
337de51088
Bump version to v1.6.13 ( #17972 )
2021-06-15 23:47:22 +09:00
mergify[bot]
b524e0a1a7
add data point for cap mismatch ( #17746 ) ( #17752 )
...
(cherry picked from commit f6fb8906c7
)
Co-authored-by: Jeff Washington (jwash) <75863576+jeffwashington@users.noreply.github.com >
2021-06-15 05:28:40 +00:00
mergify[bot]
b777bbf7db
system-program: Remove zero lamport check on transfers (backport #17726 ) ( #17763 )
...
* system-program: Remove zero lamport check on transfers (#17726 )
* 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
)
# Conflicts:
# runtime/src/system_instruction_processor.rs
# sdk/src/feature_set.rs
* Resolve merge conflicts
Co-authored-by: Jon Cinque <jon.cinque@gmail.com >
2021-06-07 12:55:57 +00:00
Tyera Eulberg
3a3454d788
Bump version to v1.6.12 ( #17651 )
2021-06-01 21:40:36 -06:00
mergify[bot]
f364956d15
Plumb transaction-level rewards (aka "rent debits") into the getTransaction
RPC method (backport #17528 ) ( #17532 )
...
* Plumb transaction-level rewards (aka "rent debits") into the `getTransaction` RPC method
(cherry picked from commit 9541411c15
)
# Conflicts:
# docs/src/developing/clients/jsonrpc-api.md
* rebase
Co-authored-by: Michael Vines <mvines@gmail.com >
2021-05-26 21:33:30 -07:00
mergify[bot]
3b22f5b833
simulateTransaction RPC method can now return accounts modified by the simulation (backport #17499 ) ( #17526 )
...
* simulateTransaction can now return accounts modified by the simulation
(cherry picked from commit cbce440af4
)
# Conflicts:
# rpc/src/parsed_token_accounts.rs
* rebase
Co-authored-by: Michael Vines <mvines@gmail.com >
2021-05-27 00:06:05 +00:00
mergify[bot]
f4cf7d2c84
Add last valid block height to rpc Fees (backport #17506 ) ( #17507 )
...
* Add last valid block height to rpc Fees (#17506 )
* Add last_valid_block_height to fees rpc
* Add getBlockHeight rpc
* Update docs
(cherry picked from commit e9bc1c6b07
)
# Conflicts:
# client/src/rpc_request.rs
# docs/src/developing/clients/jsonrpc-api.md
* Fix conflicts and a-z docs
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2021-05-26 16:25:41 +00:00
mergify[bot]
2781d69319
runtime: add rent debit charges to block metadata (backport #17504 ) ( #17513 )
...
* runtime: add rent debit charges to block metadata
(cherry picked from commit 97eab7edf9
)
* add tests from `RentDebits`
(cherry picked from commit 2a6c5ed0ac
)
Co-authored-by: Trent Nelson <trent@solana.com >
2021-05-26 15:39:38 +00:00
Tyera Eulberg
ae1687bc0a
Bump version to v1.6.11 ( #17484 )
2021-05-25 15:35:50 -06:00