mergify[bot]
ef9ffffcaa
followup safety checks for #23295 ( #23340 )
...
(cherry picked from commit 5e0086c1ee
)
# Conflicts:
# runtime/src/builtins.rs
Co-authored-by: Trent Nelson <trent@solana.com >
2022-02-25 08:58:25 +00:00
Will Hickey
84c57dd0a8
Bump version to v1.9.10 ( #23304 )
2022-02-23 11:30:21 -06:00
mergify[bot]
215c708599
Fix builtin handling on epoch boundaries (backport #23256 ) ( #23273 )
...
* Fix builtin handling on epoch boundaries (#23256 )
(cherry picked from commit bcda74f42f
)
# Conflicts:
# runtime/src/bank.rs
# runtime/src/genesis_utils.rs
* fix conflicts
Co-authored-by: Justin Starry <justin@solana.com >
2022-02-22 16:15:10 +00:00
Will Hickey
08d6b9850d
Bump version to 1.9.9 ( #23247 )
2022-02-19 21:17:11 -06:00
Trent Nelson
c3098e99d1
Bump version to v1.9.8
2022-02-16 21:42:57 -07:00
mergify[bot]
2120ef5808
Fix ed25519 builtin program handling (backport #23182 ) ( #23195 )
...
* Fix ed25519 builtin program handling (#23182 )
* Fix ed25519 builtin program handling
* Fix tests
* Add integration tests for processing transactions with ed25519 ixs
* Fix another test
* fix formatting
(cherry picked from commit 813725dfec
)
* fix tests
Co-authored-by: Justin Starry <justin@solana.com >
Co-authored-by: Jack May <jack@solana.com >
2022-02-17 00:44:44 +00:00
mergify[bot]
2c8cfdb3f3
Add fees to tx-wide caps (backport #22081 ) ( #23095 )
...
* Add fees to tx-wide caps (#22081 )
(cherry picked from commit 3d9874b95a
)
# Conflicts:
# runtime/src/bank.rs
* resolve
Co-authored-by: Jack May <jack@solana.com >
2022-02-15 01:36:02 +00:00
mergify[bot]
a5cb10666c
Bump QUIC_PORT_OFFSET to 6 to avoid jostling around other ports ( #23096 )
...
(cherry picked from commit 817f47d970
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2022-02-12 02:36:04 +00:00
mergify[bot]
4eca26ae50
Document message APIs (backport #22873 ) ( #23091 )
...
* Document message APIs (#22873 )
* Document message APIs
* Ignore clippy
* Update sdk/program/src/message/mod.rs
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
* Fix new_with_blockhash example
* Rename nonce_account_address in example
Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com >
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com >
(cherry picked from commit f7753ce85f
)
# Conflicts:
# sdk/program/src/message/mod.rs
* Fix conflict
Co-authored-by: Brian Anderson <andersrb@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2022-02-11 21:09:14 +00:00
Will Hickey
2d144afec5
Bump version to 1.9.6 ( #23092 )
2022-02-11 15:00:06 -06:00
mergify[bot]
70f76b450e
Add sbf-tools version to cargo target cache name on CI agents ( #23027 )
...
(cherry picked from commit c7aa7fb66b
)
Co-authored-by: Dmitri Makarov <dmakarov@alumni.stanford.edu >
2022-02-09 22:24:04 +00:00
Jack May
d05b5b0902
Add get_processed_sibling_instruction syscall ( #22859 ) ( #22956 )
2022-02-08 09:21:11 -08:00
mergify[bot]
ceb253ce90
Bumps solana_rbpf to version v0.2.22 ( #22923 ) ( #22955 )
...
* Bumps solana_rbpf to v0.2.22
* Adjusts vm::Config and feature gates.
(cherry picked from commit 96c88d1a5e
)
Co-authored-by: Alexander Meißner <AlexanderMeissner@gmx.net >
2022-02-05 11:16:22 +00:00
mergify[bot]
dd6c365bd9
Resolve conflicts ( #22905 )
...
Co-authored-by: carllin <carl@solana.com >
2022-02-05 06:47:18 +00:00
mergify[bot]
c43cef79b5
Add quic port for accepting transactions ( #22753 ) ( #22937 )
...
using quinn library
streamer: Sign TLS cert with validator identity key
Handle multiple incoming chunks
(cherry picked from commit 5a230f418d
)
Co-authored-by: sakridge <sakridge@gmail.com >
2022-02-04 20:53:27 +00:00
mergify[bot]
2605724aa3
Bump bpf-tools to v1.23 ( #22929 )
...
(cherry picked from commit a9d9a5095b
)
Co-authored-by: Dmitri Makarov <dmakarov@alumni.stanford.edu >
2022-02-04 04:14:25 +00:00
mergify[bot]
85fef67213
Refactor Rent::due() with RentDue enum ( #22346 ) ( #22921 )
...
(cherry picked from commit d90d5ee9b6
)
Co-authored-by: Brooks Prumo <brooks@solana.com >
2022-02-03 22:15:54 +00:00
mergify[bot]
643442e830
Reject close of active vote accounts (backport #22651 ) ( #22896 )
...
* Reject close of active vote accounts (#22651 )
* 10461 Reject close of vote accounts unless it earned no credits in the previous epoch. This is checked by comparing current epoch (from clock sysvar) with the most recent epoch with credits in vote state.
(cherry picked from commit 75563f6c7b
)
# Conflicts:
# programs/vote/src/vote_processor.rs
# sdk/src/feature_set.rs
* Resolve merge conflicts
Co-authored-by: Will Hickey <csu_hickey@yahoo.com >
Co-authored-by: Will Hickey <will.hickey@solana.com >
2022-02-03 19:59:07 +00:00
Dmitri Makarov
4d891043d1
Update syscall base costs
2022-01-27 13:36:16 -08:00
mergify[bot]
15e9cedc0d
test_ed25519 fails if we randomly select index 1 ( #22780 )
...
(cherry picked from commit c1b543c74d
)
Co-authored-by: Sean Young <sean@mess.org >
2022-01-27 12:50:01 +00:00
Jon Cinque
bc412d51d6
Fix stable-bpf job by referencing Signature
directly ( #22721 )
2022-01-25 02:41:36 +00:00
mergify[bot]
87c3e71bb8
spl-associated-token-account: Add feature for new program ( #22648 ) ( #22719 )
...
* spl-associated-token-account: Add feature for new program
* Address feedback
(cherry picked from commit fc21af4e6e
)
Co-authored-by: Jon Cinque <jon.cinque@gmail.com >
2022-01-24 19:20:30 -07:00
mergify[bot]
af7ed83285
Document transaction module (backport #22440 ) ( #22664 )
...
* Document transaction module (#22440 )
* Document transaction module
* example_mocks is only for feature = full
(cherry picked from commit 8dd62854fa
)
# Conflicts:
# sdk/src/transaction/mod.rs
* Fix conflicts
Co-authored-by: Brian Anderson <andersrb@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2022-01-21 22:58:44 -07:00
Trent Nelson
8bc4cc90d2
Bump version to 1.9.6
2022-01-21 20:15:43 -07:00
Tyera Eulberg
39a4cc95dc
v1.9: Impl get_/set_return_data syscalls for ProgramTest ( #22652 )
...
* Remove &mut self from set_return_data
* Impl get_/set_return_data for program-test SyscallStubs
* Add return_data program-test
2022-01-21 18:03:27 -07:00
mergify[bot]
2ddb5b27c1
Refactor: move instructions sysvar serialization out of Message ( #22544 ) ( #22595 )
...
(cherry picked from commit 7ba57e7a7c
)
Co-authored-by: Justin Starry <justin@solana.com >
2022-01-21 13:45:47 +08:00
mergify[bot]
7f10fd6a21
Refactor: move compute budget runtime logic into solana-program-runtime (backport #22543 ) ( #22545 )
...
* Refactor: move compute budget runtime logic into solana-program-runtime (#22543 )
(cherry picked from commit cc76a73c49
)
# Conflicts:
# programs/bpf/tests/programs.rs
# sdk/src/compute_budget.rs
* resolve conflicts
Co-authored-by: Justin Starry <justin@solana.com >
2022-01-21 13:45:01 +08:00
mergify[bot]
59f406d78a
Refactor: move simple vote parsing to runtime (backport #22537 ) ( #22587 )
...
* Refactor: move simple vote parsing to runtime (#22537 )
(cherry picked from commit 7f20c6149e
)
# Conflicts:
# core/src/cluster_info_vote_listener.rs
# core/src/verified_vote_packets.rs
# programs/vote/src/vote_transaction.rs
# rpc/src/rpc_subscriptions.rs
# runtime/src/bank.rs
# runtime/src/bank_utils.rs
# runtime/src/vote_sender_types.rs
* resolve conflicts
Co-authored-by: Justin Starry <justin@solana.com >
2022-01-20 04:51:50 +00:00
Michael Vines
9bddb4e437
vote account withdraw authority may change the authorized voter
2022-01-15 23:46:10 -08:00
mergify[bot]
a7623ad18c
Fetch sysvars from invoke context for vote program (backport #22444 ) ( #22469 )
...
* Fetch sysvars from invoke context for vote program (#22444 )
* resolve conflicts
Co-authored-by: Justin Starry <justin@solana.com >
2022-01-15 03:56:00 +00:00
Tao Zhu
7a421fe602
Port counting vote CUs to block cost to v1.9
2022-01-14 10:49:43 -06:00
mergify[bot]
9d69f2b324
Bank::get_fee_for_message
is now nonce aware (backport #22494 ) ( #22499 )
...
* `Bank::get_fee_for_message` is now nonce aware
(cherry picked from commit 4c577d7f8c
)
# Conflicts:
# runtime/src/bank.rs
# sdk/program/src/message/sanitized.rs
* Resolve conflicts
Co-authored-by: Michael Vines <mvines@gmail.com >
2022-01-14 03:25:10 +00:00
mergify[bot]
58dcc451a9
Prevent rent-paying account creation (backport #22292 ) ( #22428 )
...
* Prevent rent-paying account creation (#22292 )
* Fixup typo
* Add new feature
* Add new TransactionError
* Add framework for checking account state before and after transaction processing
* Fail transactions that leave new rent-paying accounts
* Only check rent-state of writable tx accounts
* Review comments: combine process_result success behavior; log and metrics before feature activation
* Fix tests that assume rent-exempt accounts are okay
* Remove test no longer relevant
* Remove native/sysvar special case
* Move metrics submission to report legacy->legacy rent paying transitions as well
(cherry picked from commit 637e366b18
)
# Conflicts:
# runtime/src/bank.rs
# runtime/src/lib.rs
* Fix conflicts and rework for TransactionRefCells
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2022-01-11 23:17:03 +00:00
Trent Nelson
cb49ae21b4
Bump version to v1.9.5
2022-01-08 21:17:51 +00:00
mergify[bot]
a9ebba5643
Clarify docs of minimum_balance
( #22385 ) ( #22387 )
...
(cherry picked from commit 0f94e1d3a2
)
Co-authored-by: Evan Conrad <evan@roomservice.dev >
2022-01-08 20:07:57 +00:00
Justin Starry
1f00926874
Add runtime support for address table lookups (backport #22223 ) ( #22354 )
2022-01-08 07:57:04 +08:00
mergify[bot]
7b1da62763
Add execute metrics (backport #22296 ) ( #22335 )
...
* move `ExecuteTimings` from `runtime::bank` to `program_runtime::timings`
(cherry picked from commit 7d32909e17
)
# Conflicts:
# core/Cargo.toml
# ledger/Cargo.toml
# programs/bpf/Cargo.lock
* Add execute metrics
(cherry picked from commit b25e4a200b
)
* Add metrics for executor creation
(cherry picked from commit 848b6dfbdd
)
* Add helper macro for `AddAssign`ing with saturating arithmetic
(cherry picked from commit deb9344e49
)
* Use saturating_add_assign macro
(cherry picked from commit 72fc6096a0
)
* Consolidate process instruction execution timings to own struct
(cherry picked from commit 390ef0fbcd
)
Co-authored-by: Trent Nelson <trent@solana.com >
Co-authored-by: Carl Lin <carl@solana.com >
2022-01-07 09:11:18 +00:00
mergify[bot]
687cd4779e
Add AccountsDataMeter to InvokeContext ( #21813 ) ( #22299 )
...
(cherry picked from commit 800472ddf5
)
Co-authored-by: Brooks Prumo <brooks@solana.com >
2022-01-06 01:31:11 +00:00
Will Hickey
ba0188a36d
Bump version to 1.9.4 ( #22304 )
2022-01-05 12:02:36 -06:00
mergify[bot]
09dbf069e8
Add test to enforce that program id account info for CPI is optional ( #22069 ) ( #22103 )
...
* Update tests to demonstrate that program id account info for CPI is optional
* Clean up comments that say that program id account info is required
(cherry picked from commit ec7536faf6
)
Co-authored-by: Justin Starry <justin@solana.com >
2022-01-04 21:47:48 +00:00
mergify[bot]
d84b994451
shrinks size of Packet.Meta (backport #22224 ) ( #22273 )
...
* removes seed and slot fields from Packet.Meta
507367e6ac
updated window-service to send shreds (as opposed to packets) to
retransmit-stage and so seed and slot fields in Packet.Meta are unused:
https://github.com/solana-labs/solana/blob/d6ec103be/sdk/src/packet.rs#L27-L28
(cherry picked from commit aa9f7ed7e8
)
* uses std::net::IpAddr type for Packet.Meta.addr
(cherry picked from commit 73a7741c49
)
# Conflicts:
# streamer/src/streamer.rs
* adds bitflags to Packet.Meta
Instead of a separate bool type for each flag, all the flags can be
encoded in a type-safe bitflags encoded in a single u8:
https://github.com/solana-labs/solana/blob/d6ec103be/sdk/src/packet.rs#L19-L31
(cherry picked from commit 01a096adc8
)
# Conflicts:
# sdk/Cargo.toml
* removes backport merge conflicts
Co-authored-by: behzad nouri <behzadnouri@gmail.com >
2022-01-04 17:38:29 +00:00
mergify[bot]
3b59f67562
Limit number of accounts that a transaction can lock (backport #22201 ) ( #22263 )
...
* Limit number of accounts that a transaction can lock (#22201 )
(cherry picked from commit 2b5e00d36d
)
# Conflicts:
# accountsdb-plugin-postgres/src/postgres_client/postgres_client_transaction.rs
# runtime/src/accounts.rs
# runtime/src/bank.rs
# sdk/src/feature_set.rs
# sdk/src/transaction/error.rs
# storage-proto/proto/transaction_by_addr.proto
# storage-proto/src/convert.rs
* resolve conflicts
Co-authored-by: Justin Starry <justin@solana.com >
2022-01-04 11:34:34 +00:00
mergify[bot]
531f36c571
Don't forward packets received from TPU forwards port ( #22078 ) ( #22171 )
...
* Don't forward packets received from TPU forwards port
* Add banking stage test
(cherry picked from commit b1d9a2e60e
)
Co-authored-by: Justin Starry <justin@solana.com >
2021-12-30 10:42:28 +08:00
mergify[bot]
14ed446923
cargo-build-bpf: Add Windows support ( #20276 ) ( #22155 )
...
* cargo-build-bpf: Add Windows support
* Update error message
(cherry picked from commit 57986f982a
)
Co-authored-by: Jon Cinque <jon.cinque@gmail.com >
2021-12-29 03:07:39 +00:00
mergify[bot]
adc584ee22
Add (preflight) simulation to BanksClient ( #22084 ) ( #22149 )
...
* Add more-legitimate conversion from legacy Transaction to SanitizedTransaction
* Add Banks method with preflight checks
* Expose BanksClient method with preflight checks
* Unwrap simulation err
* Add Bank simulation method that works on unfrozen Banks
* Add simpler api
* Better name: BanksTransactionResultWithSimulation
(cherry picked from commit 422a095647
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2021-12-28 22:04:27 +00:00
mergify[bot]
7d61935bf1
Bump bpf-tools to v1.21 ( #22083 )
...
(cherry picked from commit 7cc6262b5a
)
Co-authored-by: Dmitri Makarov <dmakarov@alumni.stanford.edu >
2021-12-23 03:38:04 +00:00
Will Hickey
78e7913352
Bump version to 1.9.3 ( #22065 )
2021-12-22 11:41:03 -06:00
mergify[bot]
f4521002b9
Clean up demote program write lock feature (backport #21949 ) ( #21969 )
...
* Clean up demote program write lock feature (#21949 )
* Clean up demote program write lock feature
* fix test
(cherry picked from commit 6ff0be6a82
)
# Conflicts:
# programs/bpf_loader/src/syscalls.rs
# runtime/src/accounts.rs
* resolve conflicts
Co-authored-by: Justin Starry <justin@solana.com >
2021-12-17 04:45:22 +00:00
Michael Vines
bfa6302985
Bump version to 1.9.2
2021-12-15 16:18:14 -08:00
mergify[bot]
2246135654
Document solana_program::instruction ( #21817 ) ( #21906 )
...
* Document solana_program::instruction
* Apply suggestions from code review
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
(cherry picked from commit dcb5849484
)
Co-authored-by: Brian Anderson <andersrb@gmail.com >
2021-12-15 00:55:56 +00:00