Jeff Washington (jwash)
3fc183ca74
add calculate_stake_vote_rewards for partitioned rewards ( #32066 )
...
* add calculate_stake_vote_rewards for partitioned rewards
* check stake reward in test
* pr feedback
* add comment
---------
Co-authored-by: HaoranYi <haoran.yi@solana.com>
2023-06-13 11:53:30 -07:00
Jeff Washington (jwash)
446b82afba
update comment ( #32099 )
2023-06-13 10:54:38 -07:00
Jeff Washington (jwash)
7c5c70a522
add compare_with_partitioned_rewards_results for testing partitioned rewards ( #32086 )
2023-06-13 07:39:46 -07:00
Nick Frostbutter
b1a303c8bf
[docs] signatureSubscribe wording tweaks ( #31996 )
...
* fix: minor tweaks
* refactor: updating wording
* Update docs/src/api/websocket/_signatureSubscribe.mdx
Co-authored-by: Steven Luscher <steveluscher@users.noreply.github.com>
---------
Co-authored-by: Steven Luscher <steveluscher@users.noreply.github.com>
2023-06-13 14:22:22 +00:00
samkim-crypto
b361fdd399
[zk-token-sdk] Update transcript functions to use full names ( #32095 )
...
* fully specify transcript function names `sep` to `separator`
* update names in `sigma_proofs`
* update names in `range_proof`
* update grouped ciphertext validity proofs with new full name
2023-06-13 14:52:15 +09:00
samkim-crypto
84e28c27f3
[zk-token-sdk] Refactor ciphertext validity sigma proof and rename `ValidityProof` to `GroupedCiphertextValidityProof` ( #32040 )
...
* rename `CiphertextValidityProof` to `GroupedCiphertext2HandlesValidityProof`
* rename `AggregatedValidityProof` to `BatchedGroupedCiphertext2HandlesValidityProof`
* refactor `validity_proof` module into separate modules
* update test names
* update `aggregated` variable names
* update transcript function names
* Update zk-token-sdk/src/sigma_proofs/batched_grouped_ciphertext_validity_proof.rs
Co-authored-by: Tyera <teulberg@gmail.com>
* Update zk-token-sdk/src/sigma_proofs/grouped_ciphertext_validity_proof.rs
Co-authored-by: Tyera <teulberg@gmail.com>
* Reword constructor docs
---------
Co-authored-by: Tyera <teulberg@gmail.com>
2023-06-13 12:06:24 +09:00
samkim-crypto
57a89a7ec8
[docs] Add zk token proof program description ( #32011 )
2023-06-13 11:13:51 +09:00
samkim-crypto
c10d3d12a8
[zk-token-sdk] rename `TransferAmountEncryption` to `TransferAmountCiphertext` and define it as a wrapper around `GroupedElGamalCiphertext` ( #32026 )
...
* define `TransferAmountEncryption` as a wrapper around `GroupedElGamalCiphertext`
* implement `From<GroupedElGamalCiphertext<3>>` for `GroupedElGamalCiphertext3Handles`
* define pod `TransferAmountEncryption` as a wrapper around pod `GroupedElGamalCiphertext3Handles`
* derive `Copy`, `Debug`, `Eq`, and `PartialEq` traits for `TransferAmountEncryption`
* rename `TransferAmountEncryption` to `TransferAmountCiphertext`
* clippy
* fix target arch
* add comment on why it is safe to unwrap
2023-06-13 08:55:11 +09:00
Jeff Biseda
b06df6ad25
require repair request signature ( #31888 )
2023-06-12 16:47:03 -07:00
Andrew Fitzgerald
de927611f4
Bugfix: Account Shrink Paths must conform to account directory structure ( #32088 )
2023-06-12 16:42:35 -07:00
behzad nouri
ec0001ef85
adds code-path broadcasting shreds using QUIC ( #31610 )
...
adds quic connection cache to turbine
Working towards migrating turbine to QUIC.
2023-06-12 22:58:27 +00:00
Jeff Washington (jwash)
b89ce94d33
add store_vote_accounts_partitioned ( #32061 )
...
* add store_vote_accounts_partitioned
* pr feedback
2023-06-12 14:38:30 -07:00
Tao Zhu
9b2c9b8f5a
correct feature gate use_default_units_in_fee_calculation usage ( #32077 )
2023-06-12 16:29:21 -05:00
Jeff Washington (jwash)
4f677ff4f8
remove compiler warning ( #32081 )
2023-06-12 13:48:17 -07:00
Alexander Meißner
d0ae8c38bd
Fix - `enable_alt_bn128_syscall` ( #32083 )
...
* Fixes test_runtime_feature_enable_with_program_cache.
* Adds enable_alt_bn128_syscall to FEATURES_AFFECTING_RBPF.
2023-06-12 22:37:02 +02:00
Jeff Washington (jwash)
6280c63e1a
epoch rewards are stored partitioned as Vec<Vec< ( #32076 )
...
* epoch rewards are stored partitioned as Vec<Vec<
* update comment
2023-06-12 13:06:22 -07:00
Jeff Washington (jwash)
7e7c286d50
factor out get_epoch_reward_calculate_param_info to share results ( #32065 )
...
* factor out get_epoch_reward_calculate_param_info to share results
* remove extra comment
2023-06-12 09:56:08 -07:00
steviez
2e5b062809
Display path in error message when file create/write fails ( #32036 )
...
Using .unwrap() will panic and display the error; however, the path
isn't displayed which makes debugging harder.
2023-06-12 11:45:26 -05:00
Jeff Washington (jwash)
0645e96bc6
add calc_vote_accounts_to_store ( #32063 )
...
* add calc_vote_accounts_to_store
* update comment
2023-06-12 08:38:18 -07:00
Jeff Washington (jwash)
26f4c405b2
add update_reward_history_in_partition ( #32062 )
...
* add update_reward_history_in_partition
* remove explicit type
* remove spurrious comment
2023-06-12 08:37:46 -07:00
Jeff Washington (jwash)
b81a060898
add store_stake_accounts_in_partition ( #32060 )
...
* add store_stake_accounts_in_partition
* pr feedback on assert
2023-06-12 08:37:22 -07:00
Jeff Washington (jwash)
a001c5eb49
add calculate_reward_points_partitioned ( #32050 )
...
* add calculate_reward_points_partitioned
* remove unnecessary clone
* add comment
* clean up test from pr feedback
2023-06-12 08:36:42 -07:00
Jeff Washington (jwash)
37efc82a76
snapshot epoch reward fields tests ( #32064 )
2023-06-12 07:39:59 -07:00
Yihau Chen
021d2cdb71
fix: metrics deploy script ( #32074 )
...
fix: cert path
2023-06-12 22:15:09 +08:00
Yihau Chen
a52ca5d38e
fix: update metrics deploy script ( #32073 )
...
fix: cert path
2023-06-12 21:57:34 +08:00
Yihau Chen
40d1b2409b
ci: update metrics related deploying code ( #32072 )
2023-06-12 21:44:30 +08:00
behzad nouri
aed4ecb633
adds quic receiver to shred-fetch-stage ( #31576 )
...
Working towards migrating turbine to QUIC.
2023-06-12 13:16:27 +00:00
Gopye
1ff7b28abc
Docs/fix/transaction confirmation ( #32057 )
...
* docs: remove nonsense sentence
* docs: fix transaction confirmation link
2023-06-12 15:15:52 +02:00
Gopye
9a65d8fc31
docs: fix typo in the Versioned Transaction docs ( #32056 )
...
docs: fix typo
Co-authored-by: sean delaney <notunderground@protonmail.com>
2023-06-12 15:13:52 +02:00
Yihau Chen
da5c64d9bf
ci: update kapacitor config ( #32069 )
...
* add two new kapacitor post endpoints
* use kapacitor.sh to start
* add pager duty channels
* fix shell check
2023-06-12 20:23:44 +08:00
Brooks
391f650d77
Removes #![allow(dead_code)] from local-cluster/tests/common.rs ( #32058 )
2023-06-12 08:10:56 -04:00
Jeff Washington (jwash)
2572df7452
stake tests modification: next_epoch_and_n_slots ( #32052 )
...
stake tests modification: next_epoch_and_n_slots
2023-06-11 12:26:16 -07:00
mvines
129b457c99
Remove StakeInstruction::DeactivateDelinquent featurization ( #32045 )
2023-06-09 22:56:13 -04:00
Andrew Fitzgerald
450e7c2395
rename MAX_NUM_TRANSACTIONS_PER_BATCH ( #32023 )
2023-06-09 15:05:28 -07:00
Jeff Washington (jwash)
4ebec905c5
add hash_rewards_into_partitions ( #31795 )
...
* add sort_and_shuffle_partitioned_rewards
* break stake accounts into partitions by hashing
* fmt
* Update runtime/src/epoch_rewards_hasher.rs
Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com>
* Update runtime/src/bank/tests.rs
Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com>
* Update runtime/src/bank/tests.rs
Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com>
* Update runtime/src/bank.rs
Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com>
* fix build
* more build fixes
* use spihasher13 for reward partition
* update comments
* revert calc reward struct change to avoid abi changes for now
* cippy
* sort deps
* saturating math
* use copy traits on hasher
use parent block hash to seed rewards partition
* fmt
* use concurrent map to speed up reward partition
* clippy
* Update runtime/src/epoch_rewards_hasher.rs
Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com>
* Update runtime/Cargo.toml
Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com>
* Update runtime/src/bank.rs
Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com>
* rename
* address review comments
* cargo.lock
* Update runtime/src/bank.rs
Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com>
* update test
* clippy
* comments
* move hash_address_to_partition to epoch_rewards_hasher.rs
* tests to nail down width of partitions
* rename parameter to match with comments
* hash_address takes &self
* clippy
* EpochRewardHasher -> EpochRewardsHasher
* revert "hash_address takes &self" and refactor
* stake_rewards takes by value
---------
Co-authored-by: HaoranYi <haoran.yi@gmail.com>
Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com>
Co-authored-by: HaoranYi <haoran.yi@solana.com>
2023-06-09 11:55:01 -07:00
Jeff Washington (jwash)
14e90cb27d
test ancient packing with recycling ( #32021 )
...
* test ancient packing with recycling
* fix holdover from debugging and update comment
2023-06-09 10:38:34 -07:00
Andrew Fitzgerald
4a566ec938
create and canonicalize account_paths ( #32037 )
...
Co-authored-by: Brooks <brooks@prumo.org>
2023-06-09 10:04:25 -07:00
Brooks
948b66ee95
Removes #[allow(dead_code)] from ancient_append_vecs.rs ( #32047 )
2023-06-09 16:47:24 +00:00
Jeff Washington (jwash)
4fde0b0d4a
remove packed ancient append vec from shrink candidate list ( #32022 )
2023-06-09 09:28:49 -07:00
Jeff Washington (jwash)
31f2f569a6
simplify clean_dead_slot, factor out root stats ( #32035 )
2023-06-09 07:35:38 -07:00
Brooks
afbb0fa92f
Removes init-time cleanup in add_bank_snapshot() ( #31997 )
2023-06-09 08:30:35 -04:00
Yihau Chen
228e92a024
ci: update kapacitor.conf ( #32007 )
2023-06-09 10:51:31 +08:00
Andrew Fitzgerald
bfe171017c
move cost model tests ( #32034 )
2023-06-08 15:02:28 -07:00
Yueh-Hsuan Chiang
7cea6dd57c
[TieredStorage] ByteBlockWriter::write_optional_fields ( #32025 )
...
#### Summary of Changes
This PR implements the writer function for AccountMetaOptionalFields
in ByteBlockWriter::write_optional_fields().
#### Test Plan
Unit tests are included in this PR.
Tested in mnb w/ the prototype implementation of the tiered storage (#30626 )
2023-06-08 14:09:01 -07:00
Yueh-Hsuan Chiang
634f925d75
[TieredStorage] AccountMetaOptionalFields ( #32005 )
...
#### Summary of Changes
This PR introduces AccountMetaOptionalFields, the in-memory struct for
handling optional fields.
#### Test Plan
Unit tests are included in this PR.
Tested in mnb w/ the prototype implementation of the tiered storage (#30626 ).
2023-06-08 12:31:27 -07:00
Andrew Fitzgerald
3ba05d9c3d
Fix move_and_async_delete_path ( #32020 )
2023-06-08 10:55:52 -07:00
steviez
4b2db0d546
Add explaining comment for Err case in get_bank_snapshots() ( #31998 )
2023-06-08 12:54:24 -05:00
Tao Zhu
37a759045a
include cost of transaction's requested loaded accounts size in cost model ( #31905 )
...
* include transaction requested loaded accounts size cost in cost model
* move function to avoid circular dependency
2023-06-08 12:49:42 -05:00
behzad nouri
f2f1dab5ea
patches QuicConnectionManager::new_connection_config ( #32031 )
...
QuicConnectionManager::new_connection_config is returning an invalid new
QuicConfig instead of the value it is initialized with.
2023-06-08 16:46:22 +00:00
Jeff Washington (jwash)
8937fd9bd6
improve packed ancient test by sweeping ( #32002 )
2023-06-08 07:50:18 -07:00