Luke Ingalls
032a2b8215
remove double word ( #25074 )
2022-05-08 17:11:10 +00:00
samkim-crypto
aba6a89517
Curve25519 syscall group ops ( #25071 )
...
* zk-token-sdk: implement group ops trait for curve25519
* zk-token-sdk: extend syscall trait implementation for group ops for ristretto
* zk-token-sdk: register curve25519 group ops to bpf loader
* zk-token-sdk: update curve25519_syscall_enabled address
2022-05-08 11:28:07 +09:00
Brooks Prumo
e6c02f30dd
Raise minimum stake delegation to 1 SOL ( #24603 )
2022-05-07 19:01:05 -04:00
HaoranYi
8e37e364b1
fix typo in measure name ( #25058 )
2022-05-07 10:04:42 -05:00
sakridge
5be138826b
Add sender stake to quic packets ( #25054 )
2022-05-07 16:45:03 +02:00
samkim-crypto
d9deab4d2c
Curve25519 point validation syscall ( #23771 )
...
* zk-token-sdk: add curve25519 basic ops
* zk-token-sdk: add bpf operations for curve25519 ops
* zk-token-sdk: rebase
* zk-token-sdk: add tests for curve25519 opertions
* zk-token-sdk: rustfmt
* zk-token-sdk: organize syscalls by trait
* zk-token-sdk: organize syscalls by trait
* zk-token-sdk: cleaning up
* zk-token-sdk: rename mods
* zk-token-sdk: cargo fmt
* zk-token-sdk: fix tests for edwards and ristretto
* zk-token-sdk: add Syscall object for curve point validation
* zk-token-sdk: docs for curve syscall traits
* zk-token-sdk: fix errors from rebase
* zk-token-sdk: update Vec to slice
Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com>
* zk-token-sdk: use enum with num-derive for curve ids
* zk-token-sdk: update vec to slice
* zk-token-sdk: make curve25519 tests be deterministic
* zk-token-sdk: rebase
* token-2022: re-organizing curve point validation
* token-2022: cargo fmt
* zk-token-sdk: minor
Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com>
2022-05-07 16:20:53 +09:00
Brian Anderson
c785f1ffc5
Fix indentation of Message API examples ( #25051 )
2022-05-06 14:50:43 -06:00
Jeff Washington (jwash)
2d7ce2a6c2
Revert "uses designated thread-pools for account db parallel ops ( #24954 )" ( #25053 )
...
This reverts commit e8bdc27080
.
2022-05-06 15:20:50 -05:00
Justin Starry
c920d411f7
Clean up logging and make variables consistent ( #25049 )
2022-05-07 03:52:45 +08:00
Justin Starry
082502d4f3
Fail tx sanitization when ix program id uses lookup table ( #25035 )
...
* Fail tx sanitization when ix program id uses lookup table
* feedback
2022-05-07 03:19:50 +08:00
Christian Kamm
cb6cd5d60f
FindPacketSenderStake: Improve metrics ( #24971 )
...
- separate names for vote and non-vote thread
- time unit postfixes (one is in ns!)
2022-05-06 21:16:13 +02:00
Jeff Washington (jwash)
df9a4a0c9d
Bank::new_for_benches uses bench config ( #25017 )
2022-05-06 13:35:18 -05:00
Jeff Washington (jwash)
7401bc0fa5
remove_old_historical_roots uses correct epoch schedule ( #25020 )
...
* remove_old_historical_roots uses correct epoch schedule
* Update runtime/src/accounts_db.rs
Co-authored-by: apfitzge <apfitzge@users.noreply.github.com>
Co-authored-by: apfitzge <apfitzge@users.noreply.github.com>
2022-05-06 12:38:09 -05:00
yihau
f3e4bd373d
chore: use darwin19 to build osx x86_64 artifacts
2022-05-07 01:28:11 +08:00
dependabot[bot]
8a4f975416
chore: bump prost from 0.10.1 to 0.10.3 ( #25038 )
...
* chore: bump prost from 0.10.1 to 0.10.3
Bumps [prost](https://github.com/tokio-rs/prost ) from 0.10.1 to 0.10.3.
- [Release notes](https://github.com/tokio-rs/prost/releases )
- [Commits](https://github.com/tokio-rs/prost/compare/v0.10.1...v0.10.3 )
---
updated-dependencies:
- dependency-name: prost
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 <dependabot-buildkite@noreply.solana.com>
2022-05-06 11:14:58 -06:00
Jason
47cd0d9061
Speed up get-data-cost function ( #25013 )
...
* Combine data_bytes_cost into the get_transaction_cost function, for speedup
* Remove a dead function, fix a value in a test
* Respond to comments by changing call signature to take a &mut struct rather than return a tuple
2022-05-06 11:39:00 -05:00
behzad nouri
492f89a170
checks account owner when initializing a vote-account ( #25018 )
...
A VoteAccount may only wrap an account if the account owner is
solana_vote_program:id or equivalently this check returns true:
solana_vote_program::check_id(account.owner())
2022-05-06 16:22:49 +00:00
Justin Starry
d34b440a3c
chore: update dev dep @solana/spl-token to 0.2.0 ( #25044 )
...
* chore: update dev dep @solana/spl-token to 0.2.0
* chore: fix token tests
2022-05-07 00:14:11 +08:00
behzad nouri
3fff34a65f
explicitly removes accounts with zero lamports from stakes cache ( #25015 )
...
Zero lamport accounts are not stored in accounts-db:
https://github.com/solana-labs/solana/blob/7b5835ddf/runtime/src/accounts_db.rs#L5007-L5014
https://github.com/solana-labs/solana/blob/7b5835ddf/runtime/src/accounts_db.rs#L4481-L4483
However, in order to purge the account from cache, stakes cache update
partially relies on accounts data to be also zeroed out :
https://github.com/solana-labs/solana/blob/7b5835ddf/runtime/src/bank.rs#L3471-L3478
This can be error-prone and introduce inconsistency between accounts-db
and vote/stake cache. This commit instead explicitly removes accounts
from cache if lamports == 0.
2022-05-06 14:04:49 +00:00
yihau
f3e916566f
chore: fix mergify docs status label
2022-05-06 14:42:05 +08:00
Tyera Eulberg
c4aa082efc
Rollback tokio to LTS release v1.14 ( #25028 )
2022-05-06 06:34:49 +00:00
steviez
c895ad6b41
Make workflow not fail if no doc files changed ( #25033 )
2022-05-06 01:32:38 -05:00
yihau
c491def895
chore: add push paths restriction in docs pipeline
2022-05-06 12:18:51 +08:00
Yihau Chen
0e3fc9d31c
chore: add docs actions ( #25029 )
...
* chore: mv .travis/* ci/
* chore: add docs action
* chore: update mergify
2022-05-06 12:14:50 +08:00
Brooks Prumo
195bb8bd36
Update local-cluster tests to work with higher minimum stake delegation ( #25023 )
2022-05-05 22:00:33 -05:00
Dmitri Makarov
66366615bb
Generate syscall headers
2022-05-05 19:50:54 -07:00
Jeff Washington (jwash)
0cc97689f9
add stats for stakes_cache_check_and_store_us ( #24349 )
...
* add stats for stakes_cache_check_and_store_us
* remove redundant metrics
2022-05-05 17:22:48 -05:00
carllin
6a9a7df272
Proposal for transaction scheduler based on fee priority ( #23438 )
...
* Add proposal
* Multiple transactions per banking thread
* Update fee defintiion
* Remove whitespace
* Fixup spelling
2022-05-05 16:41:22 -05:00
Jason
ee1b92c480
Reorder a boolean computation to speed up processing ( #24913 )
...
* Move a computation to where it's actually needed in is_writable(), which speeds up the code.
* Simplified a bool expr, even though it's a little less clear now
* Reorganize to make demote_program_id explicit again
* Remove the unnecessary let; replace it with a comment
* try different comment style
* Used cargo fmt that time
* Made demote_program_id its own function, for clarity
2022-05-05 15:19:06 -05:00
Jeff Washington (jwash)
96259b4f23
when testing hash calc, also verify cap ( #25012 )
2022-05-05 15:16:15 -05:00
behzad nouri
a01291069a
initializes thread-pools with lazy_static instead of thread_local ( #24853 )
...
In addition to thread_local -> lazy_static change, a number of thread-pools are
initialized with get_max_thread_count to achieve parity with the older code in
terms of number of validator threads.
2022-05-05 20:00:50 +00:00
Justin Starry
7100f1c94b
Collect stats in streamer receiver and report fetch stage metrics ( #25010 )
2022-05-06 02:56:18 +08:00
Jeff Washington (jwash)
e0092902ea
maybe_update_rent_epoch_on_load uses correct EpochSchedule ( #24999 )
2022-05-05 13:34:03 -05:00
behzad nouri
7b5835ddfa
removes manual implementations of serde Deserialize from vote_account ( #25006 )
...
Container attribute #[serde(from = "...")] already achieves desired
implementation.
2022-05-05 16:33:10 +00:00
Michael Hess
e5feb1fb45
Explorer: Support Fungible Asset token standard ( #24630 )
...
* feat: Support Fungible Asset token standard
* fix formatting
2022-05-05 23:33:56 +08:00
Jae-Heon Ji
f6e8e16691
chore: update function name ( #24166 )
2022-05-05 10:27:14 -05:00
Arash
d75378fe12
fix: latest go version requires using 'go install' instead of 'go get'. ( #24419 )
2022-05-05 07:57:37 -07:00
dependabot[bot]
f0319f9ced
chore: bump im from 15.0.0 to 15.1.0 ( #24992 )
...
* chore: bump im from 15.0.0 to 15.1.0
Bumps [im](https://github.com/bodil/im-rs ) from 15.0.0 to 15.1.0.
- [Release notes](https://github.com/bodil/im-rs/releases )
- [Changelog](https://github.com/bodil/im-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/bodil/im-rs/compare/v15.0.0...v15.1.0 )
---
updated-dependencies:
- dependency-name: im
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
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot-buildkite <dependabot-buildkite@noreply.solana.com>
2022-05-05 05:48:05 +00:00
Justin Starry
9b8ce395a6
Fix mergify config
2022-05-05 11:53:49 +08:00
Justin Starry
c5745bb51b
Remove travis success condition for automerging doc changes ( #24997 )
2022-05-05 11:31:01 +08:00
dependabot[bot]
89320d64c6
chore: bump openssl from 0.10.39 to 0.10.40 ( #24991 )
...
* chore: bump openssl from 0.10.39 to 0.10.40
Bumps [openssl](https://github.com/sfackler/rust-openssl ) from 0.10.39 to 0.10.40.
- [Release notes](https://github.com/sfackler/rust-openssl/releases )
- [Commits](https://github.com/sfackler/rust-openssl/compare/openssl-v0.10.39...openssl-v0.10.40 )
---
updated-dependencies:
- dependency-name: openssl
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 <dependabot-buildkite@noreply.solana.com>
2022-05-05 03:11:00 +00:00
carllin
870ac80b79
Prioritize BankingStage packets individually in min-max heap ( #24187 )
2022-05-04 21:50:56 -05:00
Steven Luscher
9089909995
fix: add bigint support to system transfers ( #24975 )
...
Authored-by: KonyTech <nicolas.cortella@protonmail.com>
2022-05-04 19:14:31 -07:00
dependabot[bot]
bece7f32c8
chore: bump log from 0.4.16 to 0.4.17 ( #24987 )
...
* chore: bump log from 0.4.16 to 0.4.17
Bumps [log](https://github.com/rust-lang/log ) from 0.4.16 to 0.4.17.
- [Release notes](https://github.com/rust-lang/log/releases )
- [Changelog](https://github.com/rust-lang/log/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/log/commits/0.4.17 )
---
updated-dependencies:
- dependency-name: log
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 <dependabot-buildkite@noreply.solana.com>
2022-05-05 01:49:18 +00:00
dependabot[bot]
ae9e5667a7
chore: bump const_format from 0.2.22 to 0.2.23 ( #24984 )
...
Bumps [const_format](https://github.com/rodrimati1992/const_format_crates ) from 0.2.22 to 0.2.23.
- [Release notes](https://github.com/rodrimati1992/const_format_crates/releases )
- [Changelog](https://github.com/rodrimati1992/const_format_crates/blob/master/Changelog.md )
- [Commits](https://github.com/rodrimati1992/const_format_crates/commits )
---
updated-dependencies:
- dependency-name: const_format
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>
2022-05-04 18:58:25 -06:00
dependabot[bot]
b6d6cadd62
chore: bump serde_yaml from 0.8.23 to 0.8.24 ( #24981 )
...
* chore: bump serde_yaml from 0.8.23 to 0.8.24
Bumps [serde_yaml](https://github.com/dtolnay/serde-yaml ) from 0.8.23 to 0.8.24.
- [Release notes](https://github.com/dtolnay/serde-yaml/releases )
- [Commits](https://github.com/dtolnay/serde-yaml/compare/0.8.23...0.8.24 )
---
updated-dependencies:
- dependency-name: serde_yaml
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 <dependabot-buildkite@noreply.solana.com>
2022-05-04 18:13:21 -06:00
Lijun Wang
3852959ac8
send-transaction-service metrics improvement ( #24816 )
...
Use data_point report metrics periodically -- every 5 seconds for better metrics correlation and reduce noisy metrics.
2022-05-04 17:06:21 -07:00
Trent Nelson
9bca909f63
docs: clarify tx-wide default max units explainer
2022-05-04 16:55:17 -06:00
behzad nouri
e8bdc27080
uses designated thread-pools for account db parallel ops ( #24954 )
...
Instead of global rayon thread-pool, the commit uses
AccountsDb::{thread_pool,thread_pool_clean} for parallel ops in
AccountsDB::{update_index,clean_accounts_older_than_root}.
2022-05-04 22:47:12 +00:00
dependabot[bot]
cae4a7816c
chore: bump semver from 1.0.7 to 1.0.9 ( #24959 )
...
* chore: bump semver from 1.0.7 to 1.0.9
Bumps [semver](https://github.com/dtolnay/semver ) from 1.0.7 to 1.0.9.
- [Release notes](https://github.com/dtolnay/semver/releases )
- [Commits](https://github.com/dtolnay/semver/compare/1.0.7...1.0.9 )
---
updated-dependencies:
- dependency-name: semver
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 <you@example.com>
2022-05-04 15:56:34 -06:00