Commit Graph

1575 Commits

Author SHA1 Message Date
mergify[bot]
4ce59bbbb5 Reject close of active vote accounts (backport #22651) (#22895)
* 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
#	programs/vote/src/vote_state/mod.rs
#	runtime/src/bank.rs
#	sdk/program/src/instruction.rs
#	sdk/program/src/program_error.rs
#	storage-proto/proto/transaction_by_addr.proto
#	storage-proto/src/convert.rs

* Resolve merge conflicts

* lint

* Clippy cleanup

* Add import to test module

* remove vote processor

* Update test_abi_digest hash

* cleanup

Co-authored-by: Will Hickey <csu_hickey@yahoo.com>
Co-authored-by: Will Hickey <will.hickey@solana.com>
2022-02-07 16:15:32 +00:00
mergify[bot]
ad9fceec8e Update syscall base costs (#22930)
(cherry picked from commit 2aa113fd8c)

Co-authored-by: Dmitri Makarov <dmakarov@alumni.stanford.edu>
2022-02-07 05:11:14 +00:00
mergify[bot]
5136ed00a8 Bump bpf-tools to v1.23 (#22928)
(cherry picked from commit a9d9a5095b)

Co-authored-by: Dmitri Makarov <dmakarov@alumni.stanford.edu>
2022-02-04 04:54:50 +00:00
mergify[bot]
0afd9d81df Clean up before credits_auto_rewind (#22839) (#22865)
* Clean up before credits_auto_rewind

* Use `=` intead of `|=` for mutable bool

(cherry picked from commit 545c97f903)

Co-authored-by: Ryo Onodera <ryoqun@gmail.com>
2022-02-01 15:29:03 +00:00
mergify[bot]
92cc75b3ae test_ed25519 fails if we randomly select index 1 (#22779)
(cherry picked from commit c1b543c74d)

# Conflicts:
#       sdk/src/ed25519_instruction.rs

Co-authored-by: Sean Young <sean@mess.org>
2022-01-27 13:02:42 +00:00
Justin Starry
4b7450e89e Perf: Store deserialized sysvars in the sysvars cache (backport #22455) (#22627)
* Perf: Store deserialized sysvars in the sysvars cache (#22455)

* resolve conflicts

* remove bench
2022-01-22 14:09:05 +08:00
Trent Nelson
9b90162564 Bump version to 1.8.15 (#22670) 2022-01-22 11:15:07 +08:00
anatoly yakovenko
edf1954817 Faster dedup v1.8 (#22619)
* Faster dedup
2022-01-21 08:19:55 -08:00
Justin Starry
c2dd9a006d Fetch sysvars from invoke context for vote program (backport #22444) (#22621)
* Fetch sysvars from invoke context for vote program (#22444)

* resolve conflicts
2022-01-21 02:59:33 +00:00
anatoly yakovenko
cb5106a15b Dedup v1.8 (#22584)
backport
2022-01-19 21:31:55 -08:00
Justin Starry
2d5957a4b4 Refactor: move sysvar cache to new module (#22586) 2022-01-20 03:27:03 +00:00
Justin Starry
db942269f0 Stop caching sysvars, instead load them ahead of time (backport #21108) (#22572)
* Bump version to v1.8.14

* Stop caching sysvars, instead load them ahead of time (backport #21108)

Co-authored-by: Trent Nelson <trent@solana.com>
2022-01-19 17:42:43 +08:00
Trent Nelson
eede487797 Bump version to v1.8.14 (#22573) 2022-01-19 17:40:37 +08:00
mergify[bot]
4706aa4900 wrap create executor timings datapoint in a module (#22397)
Co-authored-by: Trent Nelson <trent@solana.com>
2022-01-19 00:33:36 +00:00
mergify[bot]
aabcdcf8fb Add execute metrics (backport #22296) (#22334)
* consolidate execute timings to a common module

* Add execute metrics

* Add metrics for executor creation

* Use saturating_add_assign macro

Co-authored-by: Trent Nelson <trent@solana.com>
Co-authored-by: Carl Lin <carl@solana.com>
2022-01-18 19:18:24 +00:00
mergify[bot]
40ef11ec86 implements copy-on-write for staked-nodes (backport #19090) (#22507)
* implements copy-on-write for staked-nodes (#19090)

Bank::staked_nodes and Bank::epoch_staked_nodes redundantly clone
staked-nodes HashMap even though an immutable reference will suffice:
https://github.com/solana-labs/solana/blob/a9014cece/runtime/src/vote_account.rs#L77

This commit implements copy-on-write semantics for staked-nodes by
wrapping the underlying HashMap in Arc<...>.

(cherry picked from commit f302774cf7)

# Conflicts:
#	runtime/src/bank.rs
#	runtime/src/stakes.rs
#	runtime/src/vote_account.rs

* removes backport merge conflicts

Co-authored-by: behzad nouri <behzadnouri@gmail.com>
2022-01-14 15:26:11 +00:00
Justin Starry
304afd42c6 Revert "Stop caching sysvars, instead load them ahead of time (backport #21108) (#22466)"
This reverts commit 5d3f3bc9b1.
2022-01-14 11:13:04 +08:00
mergify[bot]
5d3f3bc9b1 Stop caching sysvars, instead load them ahead of time (backport #21108) (#22466)
* Stop caching sysvars, instead load them ahead of time. (#21108)

(cherry picked from commit 29ad081555)

# Conflicts:
#	programs/bpf/tests/programs.rs
#	programs/bpf_loader/src/syscalls.rs
#	programs/stake/src/stake_instruction.rs
#	runtime/src/bank.rs
#	runtime/src/message_processor.rs
#	sdk/program/src/sysvar/mod.rs
#	sdk/src/process_instruction.rs

* resolve conflicts

Co-authored-by: Alexander Meißner <AlexanderMeissner@gmx.net>
Co-authored-by: Justin Starry <justin@solana.com>
2022-01-13 17:51:13 +00:00
Trent Nelson
9aa7821277 Bump version to v1.8.13 2022-01-08 12:27:11 -07:00
Trent Nelson
8a470d3ae8 add excutor creation trace timings 2022-01-08 04:46:31 -07:00
mergify[bot]
cad0e7f04f cache executors on failed transactions (backport #22308) (#22327)
* cache executors on failed transactions (#22308)

(cherry picked from commit 12e160269e)

# Conflicts:
#	program-runtime/src/invoke_context.rs
#	programs/bpf_loader/src/lib.rs
#	runtime/src/bank.rs

* resolve conflicts

Co-authored-by: Jack May <jack@solana.com>
2022-01-06 15:38:39 -08:00
Alexander Meißner
de1a9f84ac Bump rbpf to v0.2.21 (#22216) (#22218)
(cherry picked from commit 9139be89b7)
2022-01-01 21:43:28 +00:00
mergify[bot]
1babd07faf Increment execution timings on errors as well (backport #22053) (#22071)
* Increment execution timings on errors as well (#22053)

(cherry picked from commit 37f6777ceb)

# Conflicts:
#	programs/bpf_loader/src/lib.rs

* Fix conflicts

Co-authored-by: carllin <carl@solana.com>
2022-01-01 13:04:34 +00:00
Alexander Meißner
7793a11b65 Bump solana_rbpf to version v0.2.20 (#22166) 2021-12-30 17:34:11 +01:00
Tyera Eulberg
90730899f1 Revert "Revert "Reject vote withdraws that create non-rent-exempt accounts (backport #21639) (#21644)""
This reverts commit ae11cc3297.
2021-12-16 19:28:48 -07:00
Tyera Eulberg
9985f5fa5c Revert "Revert "Remove deprecated slow epoch boundary methods (backport #21568) (#21595)""
This reverts commit 77a3adb5a6.
2021-12-16 19:28:48 -07:00
Tyera Eulberg
9f53f3455a Revert "Revert "Reformat imports to a consistent style for imports""
This reverts commit d7377d4794.
2021-12-16 19:28:48 -07:00
Tyera Eulberg
dd8e7f650a Revert "Revert "Build OpenSSL statically (backport #21533) (#21541)""
This reverts commit 8af4716710.
2021-12-16 19:28:48 -07:00
Tyera Eulberg
7621fa3c25 Revert "Revert "Fix more BPF alignment issues on arm64""
This reverts commit bdaac86f84.
2021-12-16 19:28:48 -07:00
Tyera Eulberg
feef0ea478 Revert "Revert "Spit log data charge into two (#21349) (#21352)""
This reverts commit 03db11eb3a.
2021-12-16 19:28:48 -07:00
Tyera Eulberg
548c0afac2 Revert "Revert "Charge for sol_log_data translates (#21328) (#21335)""
This reverts commit fbf93f89a9.
2021-12-16 19:28:48 -07:00
Michael Vines
6bc52d4d47 Bump version to v1.8.12 2021-12-15 09:25:32 -08:00
Alexander Meißner
423a4d6546 Bumps solana_rbpf to v0.2.19 (#21880) 2021-12-14 14:06:08 -08:00
Alexander Meißner
16f6bdf0b8 Bumps solana_rbpf to v0.2.18 (#21778) 2021-12-14 14:06:08 -08:00
Alexander Meißner
63629351f8 Bumps solana_rbpf to v0.2.17 (#21672)
(cherry picked from commit 31b8fd3109)

Co-authored-by: Alexander Meißner <AlexanderMeissner@gmx.net>
2021-12-14 14:06:08 -08:00
Alexander Meißner
2d93db9dec Feature gates for rbpf v0.2.16 (#21590)
- Adds feature reject_section_virtual_address_file_offset_mismatch.
- Adds feature start_verify_shift32_imm.
- Enables enable_symbol_and_section_labels only in the rbpf-cli.
2021-12-14 14:06:08 -08:00
Alexander Meißner
558a52d5cb Bumps solana_rbpf to v0.2.16 (#21492) 2021-12-14 14:06:08 -08:00
Alexander Meißner
b00087e1ca Bump solana_rbpf to version v0.2.15 (#21289)
Bumps [solana_rbpf](https://github.com/solana-labs/rbpf) from 0.2.14 to 0.2.15.
- [Release notes](https://github.com/solana-labs/rbpf/releases)
- [Commits](https://github.com/solana-labs/rbpf/compare/v0.2.14...v0.2.15)

---
updated-dependencies:
- dependency-name: solana_rbpf
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-12-14 14:06:08 -08:00
Alexander Meißner
e2850c84d2 Adds a feature gate to reject the deployment of programs with unresolved syscall symbols. (#21298) 2021-12-14 14:06:08 -08:00
Alexander Meißner
f9b7e24846 Bump solana_rbpf to version v0.2.14 (#18869)
* Feature gate for verify_mul64_imm_nonzero as discussed in #17520.
2021-12-14 14:06:08 -08:00
Alexander Meißner
843f26c2de Bump solana_rbpf to version 0.2.13 (#18068)
* Moves syscall_registry into the rbpf Executable constructor.

* Adds the reject_unresolved_syscalls flag which is only set when deploying programs via the CLI.
2021-12-14 14:06:08 -08:00
Alexander Meißner
a09e8397fb Bump solana_rbpf to version 0.2.12 (#17585)
Unify BPF verifiers.
2021-12-14 14:06:08 -08:00
Tao Zhu
4cae58bfe9 Bump version to 1.8.11 2021-12-13 12:58:29 -08:00
Trent Nelson
16abcac802 Bump version to 1.8.10 2021-12-13 12:46:23 -06:00
Trent Nelson
a5e6a188c1 Bump version to 1.8.9 2021-12-13 12:46:23 -06:00
Trent Nelson
9f44d60a39 Bump version to 1.8.8 2021-12-13 12:46:23 -06:00
Trent Nelson
9284c6fffb Bump version to 1.8.7 2021-12-13 12:46:23 -06:00
Trent Nelson
2c49ab1ab4 Bump version to 1.8.6 2021-12-13 12:46:23 -06:00
Trent Nelson
9832ac54a4 Revert "Bump version to v1.8.6 (#21329)"
This reverts commit 336ee01aae.
2021-12-13 12:46:23 -06:00
Trent Nelson
fbf93f89a9 Revert "Charge for sol_log_data translates (#21328) (#21335)"
This reverts commit 0565fe3320.
2021-12-13 12:46:23 -06:00