mergify[bot]
a005a6b816
Restore ability for programs to upgrade themselves (backport #20265 ) ( #20295 )
...
* Restore ability for programs to upgrade themselves (#20265 )
* Make helper associated fn
* Add feature definition
* Add handling to preserve program-id write lock when upgradeable loader is present; restore bpf upgrade-self test
* Use single feature
(cherry picked from commit 2cd9dc99b6
)
# Conflicts:
# runtime/src/accounts.rs
# sdk/program/src/message.rs
# sdk/program/src/message/mapped.rs
# sdk/program/src/message/sanitized.rs
# sdk/src/feature_set.rs
* Fix conflicts
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2021-09-29 01:34:33 +00:00
mergify[bot]
9e392687eb
chore: bump tiny-bip39 from 0.8.0 to 0.8.1 (backport #20136 ) ( #20207 )
...
* chore: bump tiny-bip39 from 0.8.0 to 0.8.1 (#20136 )
* chore: bump tiny-bip39 from 0.8.0 to 0.8.1
Bumps [tiny-bip39](https://github.com/maciejhirsz/tiny-bip39 ) from 0.8.0 to 0.8.1.
- [Release notes](https://github.com/maciejhirsz/tiny-bip39/releases )
- [Changelog](https://github.com/maciejhirsz/tiny-bip39/blob/master/CHANGELOG.md )
- [Commits](https://github.com/maciejhirsz/tiny-bip39/compare/v0.8.0...v0.8.1 )
---
updated-dependencies:
- dependency-name: tiny-bip39
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
* [auto-commit] Update all Cargo lock files
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot-buildkite <anatoly+githubjenkins@solana.io >
(cherry picked from commit 038d77347a
)
# Conflicts:
# Cargo.lock
# clap-utils/Cargo.toml
# cli/Cargo.toml
# keygen/Cargo.toml
# sdk/Cargo.toml
* resolve conflicts
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Justin Starry <justin@solana.com >
2021-09-25 16:48:42 +00:00
mergify[bot]
3e776267b5
Resolve zeroize_derive audit warning by bumping version ( #20182 ) ( #20190 )
...
* Revert "temporarily disable new audit"
This reverts commit 3dfbd95ddc
.
* Bump version of zeroize_derive from v1.0.0 to v1.2.0
(cherry picked from commit 0c62a6fe3f
)
Co-authored-by: Justin Starry <justin@solana.com >
2021-09-25 09:48:07 -04:00
mergify[bot]
07b71329a7
Update feature switch for reduced required deploy balance (backport #19999 ) ( #20012 )
...
* Update feature switch for reduced required deploy balance (#19999 )
(cherry picked from commit ea34eb8a4b
)
# Conflicts:
# programs/bpf_loader/src/lib.rs
* fix conflict
Co-authored-by: Justin Starry <justin@solana.com >
2021-09-19 23:17:59 +00:00
mergify[bot]
d0143dad8f
Reduce payer balance needed to deploy programs (backport #19645 ) ( #19998 )
...
* Reduce payer balance needed to deploy programs (#19645 )
* Reduce payer balance needed to deploy programs
* Fix test and unbalanced ix error
* fix test
* fix up tests
(cherry picked from commit efd024510a
)
# Conflicts:
# programs/bpf_loader/src/lib.rs
* fix conflicts
Co-authored-by: Justin Starry <justin@solana.com >
2021-09-18 04:46:42 +00:00
sakridge
70d556782b
Bump 1.7 version ( #19943 )
2021-09-16 13:16:09 -06:00
mergify[bot]
b9a0156a93
Return error if Transaction contains writable executable or ProgramData accounts (backport #19629 ) ( #19730 )
...
* 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 14:02:07 +00:00
mergify[bot]
ed4e7c0c87
Check seed length before trying to cal program address (backport #19699 ) ( #19708 )
...
* Check seed length before trying to cal program address (#19699 )
(cherry picked from commit 778b2adbea
)
* resolve conflicts
Co-authored-by: Jack May <jack@solana.com >
2021-09-08 08:26:07 +00:00
mergify[bot]
e9c3f11d24
Remove native id check in pda creation (backport #19595 ) ( #19689 )
...
* Remove native id check in pda creation (#19595 )
(cherry picked from commit 529fefc7cc
)
# Conflicts:
# programs/bpf/rust/invoke/src/lib.rs
# programs/bpf_loader/src/syscalls.rs
# sdk/src/feature_set.rs
* resolve conflicts
Co-authored-by: Jack May <jack@solana.com >
2021-09-07 23:26:08 -07:00
mergify[bot]
fcda5d4a7d
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 >
2021-09-04 06:46:09 +00:00
mergify[bot]
c180f4c84e
stake: Advance credits_observed
on activation epoch (backport #19309 ) ( #19626 )
...
* stake: Advance `credits_observed` on activation epoch (#19309 )
* stake: Advance `credits_observed` on activation epoch
* Add test for merging stakes just after activation
(cherry picked from commit 2c3bdedea3
)
# Conflicts:
# runtime/src/bank.rs
* Fix merge issues
Co-authored-by: Jon Cinque <jon.cinque@gmail.com >
2021-09-04 01:29:00 +00:00
mergify[bot]
37ee47c3e6
Add executor using the program's id during deploy ( #19555 ) ( #19572 )
...
(cherry picked from commit 622a6fba7f
)
Co-authored-by: Jack May <jack@solana.com >
2021-09-02 03:04:13 +00:00
Tyera Eulberg
f73a61d2ec
Bump version to 1.7.12
2021-08-27 16:24:24 +00:00
mergify[bot]
bdb77b0c98
Add missing owner check to bpf loader close ix ( #19460 ) ( #19470 )
...
(cherry picked from commit 4305d4b7b1
)
Co-authored-by: Justin Starry <justin@solana.com >
2021-08-27 10:19:14 -06:00
mergify[bot]
58bef3a94b
Allow closing upgradeable program accounts (backport #19319 ) ( #19411 )
...
* Allow closing upgradeable program accounts (#19319 )
(cherry picked from commit a89f180145
)
# Conflicts:
# programs/bpf_loader/src/lib.rs
# programs/bpf_loader/src/syscalls.rs
# sdk/src/feature_set.rs
* resolve conflicts
Co-authored-by: Jack May <jack@solana.com >
Co-authored-by: Justin Starry <justin@solana.com >
2021-08-27 08:56:51 +00:00
mergify[bot]
52dfb4a09c
Bump jsonrpc crates and remove old tokio (backport #18779 ) ( #19453 )
...
* Bump jsonrpc crates and remove old tokio (#18779 )
* Bump jsonrpc crates and replace old tokio
* Bump tokio
* getBlockTime
* getBlocks
* getBlocksWithLimit, getInflationReward
* getBlock
* getFirstAvailableBlock
* getTransaction
* getSignaturesForAddress
* getSignatureStatuses
* Remove superfluous runtime
(cherry picked from commit 8596db8f53
)
# Conflicts:
# Cargo.lock
# client/Cargo.toml
# core/Cargo.toml
# programs/bpf/Cargo.lock
# rpc/Cargo.toml
# rpc/src/rpc.rs
# validator/Cargo.toml
* Fix conflicts
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2021-08-27 00:55:02 +00:00
mergify[bot]
7e5767f926
Bump crossbeam-epoch (backport #19378 ) ( #19389 )
...
* Bump to get off yanked crate (#19378 )
(cherry picked from commit 82ea4891fd
)
# Conflicts:
# Cargo.lock
# programs/bpf/Cargo.lock
* Fix conflicts
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2021-08-24 03:10:55 +00:00
Brooks Prumo
e5e6829d20
Update crossbeam-deque to 0.8.1 ( #19361 ) ( #19382 )
...
(cherry picked from commit 2ccbe471ae
)
2021-08-24 00:21:25 +00:00
mergify[bot]
ef336a44a1
change untar to use unpack instead of unpack_in (backport #19216 ) ( #19340 )
...
* change untar to use unpack instead of unpack_in (#19216 )
* change untar to use unpack instead of unpack_in
* hacky, but maybe passes tests
* chore: bump tar from 0.4.35 to 0.4.37
Bumps [tar](https://github.com/alexcrichton/tar-rs ) from 0.4.35 to 0.4.37.
- [Release notes](https://github.com/alexcrichton/tar-rs/releases )
- [Commits](https://github.com/alexcrichton/tar-rs/compare/0.4.35...0.4.37 )
---
updated-dependencies:
- dependency-name: tar
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
* [auto-commit] Update all Cargo lock files
* cleanup
* cleanup, add validate_inside_dst
* collapse use
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
* delete comment line
* add comments
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 <teulberg@gmail.com >
(cherry picked from commit 89a31ff473
)
# Conflicts:
# Cargo.lock
# download-utils/Cargo.toml
# install/Cargo.toml
# programs/bpf/Cargo.lock
# runtime/Cargo.toml
# sdk/cargo-build-bpf/Cargo.toml
* Fix conflicts
Co-authored-by: Jeff Washington (jwash) <75863576+jeffwashington@users.noreply.github.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2021-08-20 17:13:35 +00:00
mergify[bot]
b5b1ed2a55
stake: Remove v2 program references (backport #19308 ) ( #19336 )
...
* stake: Remove v2 program references (#19308 )
* stake: Remove v2 program references
* Remove stake v2 feature, along with stake rewrite
(cherry picked from commit 73aa004c59
)
# Conflicts:
# runtime/src/bank.rs
* Fix merge conflict
* Fix uses of old `stake` function
Co-authored-by: Jon Cinque <jon.cinque@gmail.com >
2021-08-20 07:32:24 +00:00
mergify[bot]
6f31882260
Fix memoverlap check (backport #19232 ) ( #19259 )
...
* Fix memoverlap check (#19232 )
(cherry picked from commit 9be988db41
)
# Conflicts:
# programs/bpf_loader/src/syscalls.rs
# sdk/src/feature_set.rs
* Resolve conflicts
Co-authored-by: Jack May <jack@solana.com >
2021-08-18 18:07:36 +00:00
Trent Nelson
ab5d032634
Bump version to v1.7.11
2021-08-12 06:55:18 +00:00
Tyera Eulberg
4b133509d9
v1.7: Handle new security advisories ( #19131 )
...
* Update hyper 0.14
* Add audit ignores
* Bump assert_cmd and remove audit ignore
* Remove pin-project-lite warning
2021-08-09 18:22:28 -06:00
mergify[bot]
1a0146f21d
stake: Allow stakes with unmatched credits observed to merge (backport #18985 ) ( #19055 )
...
* stake: Allow stakes with unmatched credits observed to merge (#18985 )
* stake: Allow stakes with unmatched credits observed to merge
* Address feedback
* Remove branch by doing a ceiling in one calc
(cherry picked from commit 2b33c0c165
)
# Conflicts:
# Cargo.lock
# programs/stake/Cargo.toml
# sdk/src/feature_set.rs
* Fix merge conflicts
* Fix clippy lint
* Add back whitespace
Co-authored-by: Jon Cinque <jon.cinque@gmail.com >
2021-08-04 17:43:20 +00:00
Trent Nelson
b7f1f19d8e
Bump version to v1.7.10
2021-07-31 01:19:33 -06:00
mergify[bot]
02c509390a
Add cli-output helpers (backport #18933 ) ( #18935 )
...
* Add cli-output helpers (#18933 )
* Add OutputFormat helper to reduce copy-pasta
* Add CliSignOnlyData constructor
(cherry picked from commit 467c18e0d1
)
# Conflicts:
# Cargo.lock
# programs/bpf/Cargo.lock
* Fix conflicts
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2021-07-28 15:25:56 +00:00
Michael Vines
548ddff7ed
Bump version to v1.7.9
2021-07-24 11:23:44 -06:00
Ryo Onodera
1cc8de0fed
Bump version to v1.7.8 ( #18866 )
2021-07-24 01:14:03 +09:00
mergify[bot]
7427dafc36
feature: add new token program feature (backport #18780 ) ( #18803 )
...
* feature: add new token program feature (#18780 )
* feature: add new token program feature
* Fixup test
* Update to spl-token v3.2.0
* Update Cargo.lock + fmt
* Update token program version in fetch-spl.sh
* Bump associated token program to 1.0.3
* Add aToken so
(cherry picked from commit 51f3b9aa7c
)
# Conflicts:
# Cargo.lock
# account-decoder/Cargo.toml
# accounts-cluster-bench/Cargo.toml
# programs/bpf/Cargo.lock
# rpc/Cargo.toml
# sdk/src/feature_set.rs
# tokens/Cargo.toml
# transaction-status/Cargo.toml
* Fix merge issues
* Re-generate lock files
Co-authored-by: Jon Cinque <jon.cinque@gmail.com >
2021-07-21 15:05:45 +00:00
mergify[bot]
1cdcabf7cf
Bump BPF tools to v1.9 ( #18766 )
...
(cherry picked from commit 47861fc373
)
Co-authored-by: Dmitri Makarov <dmakarov@alumni.stanford.edu >
2021-07-19 20:46:59 +00:00
Trent Nelson
19049ca91b
Bump version to v1.7.7
2021-07-17 08:42:22 +00:00
sakridge
551dc0a74c
Bump 1.7 version ( #18723 )
2021-07-16 09:43:18 -06:00
mergify[bot]
c7c650fccc
Gate libsecp256k1 update (backport #18656 ) ( #18701 )
...
* hijack secp256k1 enablement feature plumbing for libsecp256k1 upgrade
* bump libsecp256k1 to v0.5.0
* gate libsecp256k1 upgrade to v0.5.0
* ci: allow clippy::inconsistent_struct_constructor
Co-authored-by: Trent Nelson <trent@solana.com >
2021-07-16 07:38:45 +00:00
mergify[bot]
8a111229f7
Cleanup secp256k1 deps (backport #18618 ) ( #18625 )
...
* Cleanup secp256k1 deps (#18618 )
(cherry picked from commit 0d3e8ada94
)
# Conflicts:
# Cargo.lock
# programs/bpf/Cargo.lock
# programs/secp256k1/Cargo.toml
# runtime/Cargo.toml
* resolve conflicts
Co-authored-by: Jack May <jack@solana.com >
2021-07-13 08:35:50 +00:00
Michael Vines
e5d60bc56d
Record vote account commission with voting/staking rewards and surface in RPC
...
(cherry picked from commit 4098af3b5b
)
2021-07-12 17:07:07 -07:00
mergify[bot]
a6a302f41f
chore: bump ouroboros from 0.5.1 to 0.9.3 ( #18189 ) ( #18573 )
...
* 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 >
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 >
2021-07-10 20:44:54 +00:00
Ryo Onodera
c2320fceab
Remove sysvar special cases for rent and assign
2021-07-10 01:24:44 +09:00
mergify[bot]
8b87d86358
Bump compute budget for neon evm ( #17700 ) ( #18522 )
...
(cherry picked from commit 2867584985
)
Co-authored-by: Jack May <jack@solana.com >
2021-07-09 09:12:31 -07:00
mergify[bot]
8c328316ae
Add ecrecover syscall (backport #17720 ) ( #18500 )
...
* Add ecrecover syscall (#17720 )
Co-authored-by: Anton Lisanin <lisanin.anton@gmail.com >
(cherry picked from commit 1f288ce527
)
# Conflicts:
# Cargo.lock
# programs/bpf/Cargo.lock
# programs/bpf/tests/programs.rs
# programs/bpf_loader/Cargo.toml
# programs/bpf_loader/src/syscalls.rs
# sdk/program/Cargo.toml
* resolve conflicts
Co-authored-by: s-medvedev <40623263+s-medvedev@users.noreply.github.com >
Co-authored-by: Jack May <jack@solana.com >
2021-07-08 21:56:19 +00:00
mergify[bot]
030a97d098
Temporarily ignore prost-types advisory (backport #18525 ) ( #18527 )
...
* Temporarily ignore prost-types audit (#18525 )
(cherry picked from commit 6188283ba6
)
* Bump tokio
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2021-07-08 13:49:33 -06:00
mergify[bot]
5321463892
Refactoring: Unify account_deps and accounts (backport #17898 ) ( #18486 )
...
* Refactoring: Unify account_deps and accounts (#17898 )
* Changes ThisInvokeContext::get_account() to use accounts instead of pre_accounts.
* Adds explicit keys to accounts to make them symmetric to account_deps.
* Appends account_deps to accounts in transaction loading and removes account_deps everywhere else.
(cherry picked from commit 7462c27d07
)
# Conflicts:
# program-test/src/lib.rs
# runtime/src/bank.rs
# runtime/src/message_processor.rs
* fix conflicts
Co-authored-by: Alexander Meißner <AlexanderMeissner@gmx.net >
Co-authored-by: Justin Starry <justin@solana.com >
2021-07-07 17:14:39 +00:00
mergify[bot]
0d0478c4a4
Add vote/stake checked instructions (backport #18345 ) ( #18457 )
...
* Add vote/stake checked instructions
(cherry picked from commit ee219ffa47
)
* Fix set-lockup custodian index
(cherry picked from commit 544f62c92f
)
* Add parsing for new stake instructions; clean up confusing test args
(cherry picked from commit 9b302ac0b5
)
* Add parsing for new vote instructions
(cherry picked from commit 39bac256ab
)
* Add VoteInstruction::AuthorizeChecked test
(cherry picked from commit b8ca2250fd
)
* Add Stake checked tests
(cherry picked from commit 74e89a3e3e
)
Co-authored-by: Michael Vines <mvines@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2021-07-07 03:17:21 +00:00
mergify[bot]
72ed4f28b1
Remove feature switch for demoting sysvar write locks ( #18373 ) ( #18454 )
...
Co-authored-by: Justin Starry <justin@solana.com >
2021-07-06 23:25:28 +00:00
mergify[bot]
6afeaac7a5
Fix transaction logs and inner ixs for leader nodes (backport #18395 ) ( #18448 )
...
* Fix transaction logs and inner ixs for leader nodes (#18395 )
* Fix transaction logs and inner ixs for leader nodes
* Fix cpi log storage flag
(cherry picked from commit 5dd399dafa
)
# Conflicts:
# runtime/src/bank.rs
* resolve conflict
Co-authored-by: Justin Starry <justin@solana.com >
2021-07-06 23:04:19 +00:00
Trent Nelson
4466aa39c4
Bump version to v1.7.5
2021-06-30 22:55:01 -06:00
Jack May
6a0a03415c
Don't update if already an executable
...
(cherry picked from commit 2fbedd834f
)
2021-06-27 12:24:00 -06:00
Tyera Eulberg
7ed2cf30a5
Bump borsh from 0.8.1 to 0.9.0 ( #18230 )
2021-06-25 14:43:04 -06:00
Trent Nelson
597429ab3e
Bump version to v1.7.4
2021-06-22 19:57:34 +00:00
Trent Nelson
fcabaa7eff
sdk: refactor pda generation
2021-06-22 11:36:05 -06:00
mergify[bot]
363b75619f
adds shred-version to ip-echo-server response (backport #18066 ) ( #18113 )
...
* adds shred-version to ip-echo-server response
When starting a validator, the node initially joins gossip with
shred_verison = 0, until it adopts the entrypoint's shred-version:
https://github.com/solana-labs/solana/blob/9b182f408/validator/src/main.rs#L417
Depending on the load on the entrypoint, this adopting entrypoint
shred-version through gossip sometimes becomes very slow, and causes
several problems in gossip because we have to partially support
shred_version == 0 which is a source of leaking crds values from one
cluster to another. e.g. see
https://github.com/solana-labs/solana/pull/17899
and the other linked issues there.
In order to remove shred_version == 0 from gossip, this commit adds
shred-version to ip-echo-server response. Once the entrypoints are
updated, on validator start-up, if --expected_shred_version is not
specified we will obtain shred-version from the entrypoint using
ip-echo-server.
(cherry picked from commit 598093b5db
)
# Conflicts:
# Cargo.lock
# net-utils/Cargo.toml
# programs/bpf/Cargo.lock
* removes backport merge conflicts
* obtains shred-version from entrypoint's ip-echo-server in validator-main
(cherry picked from commit 58e115275a
)
Co-authored-by: behzad nouri <behzadnouri@gmail.com >
2021-06-21 23:04:08 +00:00