6f27757e71
docs: document the limits on RPC API inputs and outputs
2022-03-25 14:19:58 -07:00
c6dda3b324
Add solana-faucet to the list of dependencies referenced by downstream projects ( #23935 )
2022-03-25 13:27:31 -05:00
e34c52934c
ci: don't allow mergify to add automerge label to merged PRs
2022-03-25 16:19:11 +00:00
acfd22712b
RollingBitFIeld to its own file ( #23917 )
2022-03-25 10:37:00 -05:00
6b85c2104c
Implement forwarding via TpuConnection ( #23817 )
2022-03-25 11:31:40 -04:00
f44c8f296f
fix: thread enforce_ulimit_nofile
config down when opening blockstore ( #23925 )
2022-03-25 03:13:33 -05:00
9cf7720922
fix: when there is no instruction index, default to the current instruction by supplying u16:MAX
2022-03-24 22:55:52 -07:00
c73cdfd6ce
fix: add TypeScript buffer type to nonce-account.ts
2022-03-24 22:55:52 -07:00
477355df3b
fix: add TypeScript buffer type to stake-program.ts
2022-03-24 22:55:52 -07:00
6686b7c534
fix: add TypeScript buffer type to message.ts
2022-03-24 22:55:52 -07:00
741c85ca7c
fix: add TypeScript buffer type to loader.ts
2022-03-24 22:55:52 -07:00
6bb02cdcc1
fix: add TypeScript buffer type to secp256k1-program.ts
2022-03-24 22:55:52 -07:00
96361295aa
fix: add TypeScript buffer type to ed25519-program.ts
2022-03-24 22:55:52 -07:00
3333f37e88
fix: add TypeScript buffer type to vote-account.ts
2022-03-24 22:55:52 -07:00
b2f2a68b86
fix: fix spelling of timestamp in BlockTimestamp type
2022-03-24 22:55:52 -07:00
c227b8ca4d
fix: add TypeScript buffer type to vote-program.ts
2022-03-24 22:55:52 -07:00
607a5c05de
fix: add TypeScript buffer type to system-program.ts
2022-03-24 22:55:52 -07:00
807f88e547
fix: add TypeScript types to the rustString buffer layout helper
2022-03-24 22:55:52 -07:00
d34fe3dba3
fix: add TypeScript buffer type to layout.ts
2022-03-24 22:55:52 -07:00
b516a25132
fix: add TypeScript buffer type to instruction.ts
2022-03-24 22:55:52 -07:00
023fc028bc
chore: Upgrade buffer-layout to v4.0.0
2022-03-24 22:55:52 -07:00
412d9be445
fix: repair web3 connection tests by making fewer assumptions about the existence of particular blocks ( #23921 )
...
* fix: repair 'get confirmed signatures for address' test in web3.js
* fix: repair 'get signatures for address' test in web3.js
* fix: repair 'get parsed confirmed transactions' test in web3.js
* fix: repair 'get transaction' test in web3.js
* fix: repair 'get confirmed transaction' test in web3.js
* fix: repair 'get block' test in web3.js
* fix: repair 'get confirmed block' test in web3.js
* fix: repair 'get block signatures' test in web3.js
* fix: repair 'get block time' test in web3.js
Co-authored-by: steveluscher <github@steveluscher.com >
2022-03-24 22:21:14 -07:00
c8c3c4359f
vote-authorize-voter
now accepts either the vote or withdraw authority
2022-03-24 16:46:41 -07:00
51f5524e2f
make verify_accounts_package_hash like other hash calc ( #23906 )
2022-03-24 17:49:48 -05:00
492c54a28f
Fix example mock Signer API in solana-program ( #23911 )
2022-03-24 17:58:51 -04:00
55d61023f7
document 'accounts' hash ( #23907 )
2022-03-24 15:58:52 -05:00
fedf4e984f
typo ( #23910 )
2022-03-24 15:21:59 -05:00
9dbb950a25
feat(explorer): show ping server metrics unavailable ( #23914 )
...
* feat: show ping server metrics unavailable
* fix: formatting
2022-03-24 13:54:51 -06:00
b61c0a4a21
Add accounts arg to genesis command to dump genesis account info ( #23879 )
2022-03-24 14:26:08 -05:00
140c8dd01f
Refactor: Replaces KeyedAccount in_get_sysvar_with_account_check ( #23905 )
...
* Replaces all use sites of get_sysvar_with_account_check by get_sysvar_with_account_check2.
* Removes get_sysvar_with_account_check.
* Renames get_sysvar_with_account_check2 to get_sysvar_with_account_check.
2022-03-24 19:30:42 +01:00
37c36ce3fa
pass stats separately from CalcAccountsHashConfig ( #23892 )
2022-03-24 12:48:47 -05:00
82328fd9d8
move max_clean_root deeper in flush cache ( #23869 )
2022-03-24 12:45:49 -05:00
c31db81ac4
Use VoteAccountsHashMap type alias in all applicable spots ( #23904 )
2022-03-24 12:09:48 -05:00
a22a2384bf
fix ci test error ( #23908 )
2022-03-24 11:30:20 -05:00
82945ba973
Optimize TpuConnection and its implementations and refactor connection-cache to not use dyn in order to enable those changes ( #23877 )
2022-03-24 11:40:26 -04:00
5b916961b5
HashCalc uses self.accounts_cache ( #23890 )
2022-03-24 10:34:28 -05:00
f2aea3b7c7
flush_slot_cache takes [Slot] ( #23865 )
2022-03-24 10:24:36 -05:00
9d3b17c635
HashCalc uses self.accounts_index ( #23888 )
2022-03-24 10:06:32 -05:00
396b49a7c1
Start saving/loading prior_roots(_with_hash) to snapshot ( #23844 )
...
* Start saving/loading prior_roots(_with_hash) to snapshot
* Update runtime/src/accounts_index.rs
Co-authored-by: Michael Vines <mvines@gmail.com >
* Update runtime/src/accounts_index.rs
Co-authored-by: Michael Vines <mvines@gmail.com >
* update comment
Co-authored-by: Michael Vines <mvines@gmail.com >
2022-03-24 10:06:24 -05:00
b22165ad69
hash calc uses self.filler_account_suffix ( #23887 )
2022-03-24 09:58:06 -05:00
9022931689
calc hash uses self.num_hash_scan_passes ( #23883 )
2022-03-24 09:44:42 -05:00
e3eb002f66
Log storage size stats at hash calc ( #23843 )
2022-03-24 09:40:35 -05:00
f1a411c897
add epoch_schedule and rent_collector to hash calc ( #23857 )
2022-03-24 09:39:22 -05:00
db5d68f01f
HashCalc uses self.accounts_hash_cache_path ( #23882 )
2022-03-24 09:31:55 -05:00
90009f330b
small refactor to shorten the lock on slot_under_contention hashset ( #23891 )
...
* small refactor to shorten the lock on slot_under_contention hashset
* adding comments
* comments
2022-03-24 08:20:56 -05:00
91c2729856
Replaces keyed_account get_signers() by InstructionContext::get_signers(). ( #23863 )
2022-03-24 12:57:51 +01:00
c83c95b56b
(LedgerStore) Create ColumnMetrics trait for CF metric reporting ( #23763 )
...
This PR does a refactoring on column family-related metrics reporting.
As the metric reporting is per column family basis, the PR creates
ColumnMetrics trait and move the metric reporting logic into it.
This refactoring will make future column metric reporting (such as
read PerfContext) much cleaner.
2022-03-23 20:51:49 -07:00
5a892af2fe
disable 'check_hash' on accounts hash calc ( #23873 )
2022-03-23 21:03:31 -05:00
3e22d4b286
calc hash uses self.thread_pool_clean ( #23881 )
2022-03-23 20:52:38 -05:00
6428602cd9
Make find_program_address client example runnable ( #23492 )
2022-03-23 19:37:12 -06:00
260fdf7ba3
Revert "chore: Upgrade buffer-layout package in web3.js ( #23897 )"
...
Fixing up the types is going to take me a bit longer than I anticipated, so I'll back this out for now.
2022-03-23 18:34:01 -07:00
486f7b7673
use array access function ( #23895 )
2022-03-23 17:03:01 -07:00
0c0db9308b
chore: Upgrade buffer-layout package in web3.js ( #23897 )
2022-03-23 14:56:13 -07:00
9dae5551a1
Revert transient dependency bumps from c4ecfa5
2022-03-23 21:08:26 +00:00
100fd03f3e
feat(explorer): solana ping set minBarHeight ( #23894 )
2022-03-23 20:35:59 +00:00
7af7c15802
chore:(deps): bump minimist from 1.2.5 to 1.2.6 in /explorer ( #23886 )
...
Bumps [minimist](https://github.com/substack/minimist ) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases )
- [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6 )
---
updated-dependencies:
- dependency-name: minimist
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-23 20:00:24 +00:00
154b828287
chore:(deps): bump nanoid from 3.1.23 to 3.3.1 in /explorer ( #23884 )
...
Bumps [nanoid](https://github.com/ai/nanoid ) from 3.1.23 to 3.3.1.
- [Release notes](https://github.com/ai/nanoid/releases )
- [Changelog](https://github.com/ai/nanoid/blob/main/CHANGELOG.md )
- [Commits](https://github.com/ai/nanoid/compare/3.1.23...3.3.1 )
---
updated-dependencies:
- dependency-name: nanoid
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-23 19:59:16 +00:00
59290c08aa
fix: add type-check script to web3.js package ( #23109 )
2022-03-23 12:58:42 -07:00
1b7b261460
feat(explorer): render program name, ix name, and account names from on chain idl for specific anchor programs ( #23499 )
...
* show titles of ix, from idl
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com >
* remove unused
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com >
* remaining accounts
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com >
* fallback
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com >
* fix from code review: remove default for the non fallback case
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com >
* keep camelcase
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com >
* formatting
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com >
2022-03-23 12:14:26 -07:00
dc3863ef14
flush_slot_cache_with_clean ( #23868 )
2022-03-23 14:09:56 -05:00
260f899eda
write cache: hashmap to set ( #23866 )
2022-03-23 14:05:45 -05:00
9e61fe7583
add AccountsHashConfig to manage parameters ( #23850 )
2022-03-23 13:44:23 -05:00
db49b826f0
seperate blockstore metrics from window service metrics ( #23871 )
2022-03-23 13:38:17 -05:00
7ff8ed869c
typos ( #23870 )
2022-03-23 13:36:55 -05:00
26da64184a
feat(web3.js): expose rpcEndpoint in client for web3.js ( #23719 )
...
Adds a getter to the commitment class to expose the rpcEndpoint property.
2022-03-23 11:05:37 -07:00
a573cfa39d
Revert "Remove unneeded unit expression"
...
This reverts commit e8e0097046
.
2022-03-23 10:22:18 -07:00
b1280b670a
calculate_accounts_hash_without_index takes &self ( #23846 )
...
* calculate_accounts_hash_without_index takes &self
* Update runtime/src/snapshot_package.rs
Co-authored-by: Brooks Prumo <brooks@prumo.org >
Co-authored-by: Brooks Prumo <brooks@prumo.org >
2022-03-23 11:57:32 -05:00
7b89222fde
don't start extra threads for shrink/clean/hash ( #23858 )
2022-03-23 11:53:37 -05:00
911aa5bad3
fix(explorer): can't convert too large of stake to number ( #23876 )
2022-03-23 09:34:43 -07:00
5541a5873b
fix(explorer): serum init open orders has optional openOrdersMarketAuthority ( #23875 )
2022-03-23 09:32:24 -07:00
6b76391ed2
fix(explorer): add sync native to token program decode ( #23874 )
2022-03-23 09:31:58 -07:00
6962a667e5
add-u8-align-check ( #23860 )
2022-03-23 09:16:29 -07:00
27b66db88d
Use sat math for ptr calcs ( #23861 )
2022-03-23 09:16:03 -07:00
493a8e2348
remove random flushing of write cache ( #23845 )
2022-03-23 08:45:44 -05:00
9859eb83b5
upd Cargo.lock for bpf
2022-03-23 09:25:36 +01:00
36807d5fa3
update clap to v3: poh-bench
2022-03-23 09:25:36 +01:00
22404ca1fc
update clap to v3: bench-streamer
2022-03-23 09:25:36 +01:00
01317395e9
update Cargo.lock
2022-03-23 09:25:36 +01:00
3f2971692d
update clap to v3: net-utils
2022-03-23 09:25:36 +01:00
300c50798f
update clap to v3: log-analyzer
2022-03-23 09:25:36 +01:00
12e24a90a0
update clap to v3: net-sharper
2022-03-23 09:25:36 +01:00
d8be0d9430
make get_protobuf_or_bincode_cells accept IntoIter on row_keys, make get_confirmed_blocks_with_data return an Iterator
2022-03-22 22:47:25 -06:00
f717fda9a3
modify get_protobuf_or_bincode_cells to accept and return an iterator
2022-03-22 22:47:25 -06:00
fbcf6a0802
use &[T] instead of Vec<T> where appropriate
...
clippy
2022-03-22 22:47:25 -06:00
5533e9393c
appease clippy
2022-03-22 22:47:25 -06:00
f3219fb695
add get_confirmed_blocks_with_data and get_protobuf_or_bincode_cells
2022-03-22 22:47:25 -06:00
bc35e1c5f5
snapshot code needs all storages for hash calc ( #23840 )
2022-03-22 21:27:54 -05:00
92462ae031
Manually serialize and use send_wire_transaction
for votes ( #23826 )
...
* Revert "core: partial versioned transaction support for voting service"
This reverts commit eb3df4c20e
.
* Manually serialize vote tx before sending to TPU
2022-03-23 09:47:55 +08:00
9f0ca6d88a
Refactor: Remove trait
from nonce keyed account ( #23811 )
...
* Removes the trait `NonceKeyedAccount`.
2022-03-23 02:09:30 +01:00
3d7c8442c7
add size check for from_raw_parts ( #23781 )
2022-03-22 15:20:39 -07:00
7af48465fa
transaction-status: Add return data to meta ( #23688 )
...
* transaction-status: Add return data to meta
* Add return data to simulation results
* Use pretty-hex for printing return data
* Update arg name, make TransactionRecord struct
* Rename TransactionRecord -> ExecutionRecord
2022-03-22 23:17:05 +01:00
359e2de090
ignore heavy tests in dos
2022-03-22 20:19:28 +01:00
1089a38aaf
AcctIdx: rework scan and write to disk ( #23794 )
2022-03-22 11:54:12 -05:00
89ba3ff139
log fail to evict ( #23815 )
2022-03-22 09:19:38 -05:00
16b73a998b
Increasing timeout in local-cluster-slow by 10 min
2022-03-22 17:52:06 +05:30
9347d57973
increasing timeout of local-cluster-slow test by 10 min
2022-03-22 17:51:13 +05:30
ae75b1a25f
(LedgerStore) Add compression type ( #23578 )
...
This PR adds `--rocksdb-ledger-compression` as a hidden argument to the validator
for specifying the compression algorithm for TransactionStatus. Available compression
algorithms include `lz4`, `snappy`, `zlib`. The default value is `none`.
Experimental results show that with lz4 compression, we can achieve ~37% size-reduction
on the TransactionStatus column family, or ~8% size-reduction of the ledger store size.
2022-03-22 02:27:09 -07:00
49228573f4
Use connection cache in send transaction ( #23712 )
...
Use connection cache in send transaction (#23712 )
2022-03-21 23:24:21 -07:00
eb3df4c20e
core: partial versioned transaction support for voting service
2022-03-21 22:59:05 -06:00
016d3c450a
Update TpuConnection interface to be compatible with versioned txs ( #23760 )
...
* Update TpuConnection interface to be compatible with versioned txs
* Add convenience method for sending txs
* use parallel iterator to serialize transactions
2022-03-22 09:45:22 +08:00
45a7c6edfb
Fix typos and a small refactor ( #23805 )
...
* fix typo
* remove packet_has_more_unprocessed_transactions function
2022-03-21 18:35:31 -05:00
c4ecfa5716
Bump version to v1.11 ( #23807 )
...
* Revert crossbeam_epoch to stable. 0.9.8 only works with nightly
* Remove unneeded unit expression
2022-03-21 17:40:50 -05:00
24f6855f86
AcctIdx: only remove a fixed number of items per write lock ( #23795 )
2022-03-21 16:55:04 -05:00
10eeafd3d6
zk-token-sdk: handle edge cases for transfer with fee ( #23804 )
...
* zk-token-sdk: handle edge cases for transfer with fee
* zk-token-sdk: clippy
* zk-token-sdk: clippy
* zk-token-sdk: cargo fmt
2022-03-21 16:10:33 -04:00
cb06126388
Set accounts_data_len on feature activation ( #23730 )
2022-03-21 12:28:26 -05:00
9c60991cd3
Add ability to query bigtable via solana-test-validator, with hidden params
2022-03-21 11:26:49 -06:00
9b32b72990
bigtable: allow custom instance names
2022-03-21 11:26:49 -06:00
f513195468
bigtable: add a config ctor for LedgerStorage
2022-03-21 11:26:49 -06:00
63ee00e647
Refactor validator bigtable config
2022-03-21 11:26:49 -06:00
99f1a43262
Add v1.10 backport label, remove v1.8 backport label
2022-03-21 09:50:55 -07:00
739e43ba58
Add ability to get the latest incremental snapshot via RPC ( #23788 )
2022-03-21 11:48:49 -05:00
ae76fe2bd7
Made connection cache configurable. ( #23783 )
...
Added command-line argument tpu-use-quic argument.
Changed connection cache to return different connections based on the config.
2022-03-21 09:31:37 -07:00
5d03b188c8
Use QUIC client in voting service ( #23713 )
...
* Use QUIC client in voting service
* guard quic-client usage with a flag
* add measure to time the quic client
* move time measure outside if block
* remove quic vs UDP flag from voting service
2022-03-21 09:10:16 -07:00
965ab9186d
AcctIdx: fix infinite loop ( #23806 )
2022-03-21 10:58:36 -05:00
15357480ec
Refactor instruction compilation and update message account key ordering ( #23729 )
...
* Refactor: Make instruction compilation usable for other message versions
* apply trents feedback
* Fix tests
* Fix bpf compatiblity
2022-03-21 20:53:32 +08:00
a1a29b0b86
Increased timeout limit of coverage and stable-perf by 10 mins each ( #23797 )
...
* Increased timeout limit of coverage and stable-perf by 10 mins each
* Increasing timeout for in disk CI by 10 min
2022-03-21 15:08:23 +05:30
258db77100
AcctIdx: factor 'scan' out of flush_internal ( #23777 )
2022-03-20 22:00:38 -05:00
f34434f96b
Drop lock ( #23765 )
2022-03-20 21:27:24 -04:00
dd69f3baf5
throttle index adding to allow disk flushing to keep up and reduce startup ram usage ( #23773 )
2022-03-20 19:56:20 -05:00
335c4b668b
Fix bug in bank/sysvar_cache tests ( #23780 )
2022-03-19 21:38:18 -05:00
848093b9fd
Fix typo in processor.rs ( #23786 )
...
relavant -> relevant
2022-03-19 15:24:40 -05:00
df29276eb0
AcctIdx: remove -> evict ( #23775 )
2022-03-18 17:13:21 -05:00
71ea05c176
replace nested for_each with flat_map
2022-03-18 16:37:41 -05:00
1c369fb55f
Scan entire UnprocessedPacketBatches buffer to produce stake and locator of each packet
2022-03-18 16:37:41 -05:00
1f052c6234
disable deprecated BPF loader deploys ( #23757 )
2022-03-18 14:29:49 -07:00
7e358c654f
add test to assert type assumption ( #23769 )
2022-03-18 14:15:59 -07:00
c556811c0f
docs: fix stake state typo ( #23776 )
2022-03-18 13:45:07 -06:00
a419374fa4
factor out function ( #23742 )
2022-03-18 14:10:52 -05:00
0e64fb1fab
don't rely on align_offset to check alignment ( #23770 )
2022-03-18 11:30:52 -07:00
fcea92ec6c
Improve correctness of Rust-side type definitions for C invoke syscall ( #23624 )
...
* Make Rust definitions of C types repr(C)
* Make SolInstruction field types agree with C definitions
* Use correct SolSignerSeedsC type in SyscallInvokeSignedC
* rustfmt
* Change asserts to debug asserts in syscall.rs
2022-03-18 11:30:30 -07:00
f999eef452
(LedgerStore) Rename BlockstoreAdvancedOptions to LedgerColumnOptions ( #23764 )
...
This PR renames BlockstoreAdvancedOptions to LedgerColumnOptions, as we will
pass-down this struct to LedgerColumn to allow it to perform metric reporting.
2022-03-18 11:13:35 -07:00
56428be629
Not exposing inner cost_table to encapsulating implementation details,
...
making future change easier.
2022-03-18 12:58:43 -05:00
00ddf6576c
chore: bump crossbeam-channel from 0.5.2 to 0.5.3 ( #23698 )
...
* chore: bump crossbeam-channel from 0.5.2 to 0.5.3
Bumps [crossbeam-channel](https://github.com/crossbeam-rs/crossbeam ) from 0.5.2 to 0.5.3.
- [Release notes](https://github.com/crossbeam-rs/crossbeam/releases )
- [Changelog](https://github.com/crossbeam-rs/crossbeam/blob/master/CHANGELOG.md )
- [Commits](https://github.com/crossbeam-rs/crossbeam/compare/crossbeam-channel-0.5.2...crossbeam-channel-0.5.3 )
---
updated-dependencies:
- dependency-name: crossbeam-channel
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-03-18 11:44:33 -06:00
998e7d18f9
AcctIdx: never retry a bucket flush ( #23732 )
2022-03-18 12:20:42 -05:00
c9b8977226
Add crate docs for solana-program ( #23363 )
...
* Add crate docs for solana-program
* Rework solana-program docs for pr feedback
* Clarify log module docs
* Remove address lookup table program from solana-program docs
2022-03-18 08:27:51 -07:00
f54e746fc5
Support u8 slice digester in frozen abi struct. ( #23726 )
...
* support u8 slice in frozen abi digester
* use slice in account struct
* add bpf cargo lock file
* no need to pass account.data to serializer
* fix comments
2022-03-18 09:31:07 -05:00
c694703e14
address PR comments
2022-03-18 14:55:33 +01:00
2da896fa40
add documentation
2022-03-18 14:55:33 +01:00
7074ebf45a
address PR comments
2022-03-18 14:55:33 +01:00
957bc0db6b
add tests to dos tool
2022-03-18 14:55:33 +01:00
d9dbfc83d5
upd Cargo.lock
2022-03-18 14:55:33 +01:00
f5339882cb
refactor cmdline interface
2022-03-18 14:55:33 +01:00
a63dee87ec
add transaction parameters dump
2022-03-18 14:55:33 +01:00
1b0c9ad4c0
add option payer to dos tool
2022-03-18 14:55:33 +01:00
cf73f6dc74
fix typo in dos
2022-03-18 14:55:33 +01:00
dce5d1c1fa
avoid signatures if unnecessary in dos
2022-03-18 14:55:33 +01:00
1641d1d329
fix: cache blockhash in dos tool
2022-03-18 14:55:33 +01:00
cb537e80d7
add transaction options to dos
2022-03-18 14:55:33 +01:00
d4d95f1811
add valid blockhash option to dos
2022-03-18 14:55:33 +01:00
797c3324f0
add number of signatures to dos
2022-03-18 14:55:33 +01:00
0ed23899e7
directly use compute_budget MAX_UNITS and DEFAULT_UNITS
2022-03-18 08:53:11 -05:00
a4cacf3389
add deterministic default cost
2022-03-18 08:53:11 -05:00
ce2e82cfb6
validator: --only-known-rpc
requires a --known-validator ...
2022-03-18 07:02:16 +00:00
857576d76f
AcctIdx: move write to disk outside in mem write lock ( #23731 )
2022-03-17 23:09:41 -05:00
7ff8c80e25
Add accounts_data_len to bank snapshot ( #23714 )
2022-03-17 20:14:54 -05:00
c478fe2047
add timing metrics, some renaming
2022-03-17 19:31:28 -05:00
fd515097d8
leader qos part 2: add stage to find sender stake, set to packet meta
2022-03-17 19:31:28 -05:00
976b138e76
Add tx weighting stage
2022-03-17 19:31:28 -05:00
664deb2157
AcctIdx: get rid of unused is_dirty ( #23733 )
2022-03-17 16:29:36 -05:00
8b230b86cc
Use borrow instead of move in interfaces defined by TpuConnection ( #23734 )
...
* Use borrow instead of move in interfaces defined by TpuConnection to avoid data copy
* Removed a few more unnecessary whole array slicing.
2022-03-17 13:31:11 -07:00
6b0d34d70d
removes redundant Arcs from Blockstore ( #23735 )
2022-03-17 19:43:57 +00:00
342f1ab1cb
clean up/add comments ( #23727 )
2022-03-17 14:23:08 -05:00
2f58c9e501
Bump version to 1.10.4 ( #23743 )
2022-03-17 14:02:13 -05:00
bb9f9c8dd5
AccountSharedData::serialize ( #23685 )
2022-03-17 09:29:49 -05:00
66b1f55351
AcctIdx: cheaper check for should evict while flushing ( #23705 )
2022-03-17 08:46:32 -05:00
3a46f45650
AcctIdx: add stats for flushing and estimated memory ( #23709 )
2022-03-17 08:46:00 -05:00
9ed056424c
Remove unused InstructionRecorder
and some SanitizedMessage
methods ( #23723 )
2022-03-17 20:25:12 +08:00
0eccacbd5b
Add CLI support for versioned transactions ( #23606 )
2022-03-17 11:43:04 +08:00
330d6db19a
Pin version for publish cargo-check ( #23716 )
2022-03-16 18:46:41 -06:00
b4350a2522
Make solana-address-lookup-table-program crate bpf compatible ( #23700 )
2022-03-17 08:21:07 +08:00
dda3a463a2
Fix duplicate account translation in CPI ( #23701 )
...
* Use visit_each_account_once() in CPI syscall to prevent duplicate accounts from being translated twice.
* remove unwrap() from runtime
Co-authored-by: Jack May <jack@solana.com >
2022-03-16 22:45:01 +00:00
be0aeea01a
AcctIdx: check for range holds outside lock ( #23706 )
2022-03-16 17:44:59 -05:00
caddb851be
acct idx flush keeps slot_list read lock open ( #23704 )
2022-03-16 17:29:04 -05:00
18bddbc730
Stake tests respect MINIMUM_STAKE_DELEGATION ( #23426 )
2022-03-16 16:36:23 -05:00
86c695268e
(LedgerStore) Improve the function API of new_cf_descriptor ( #23696 )
...
As we start adding more options into BlockstoreOptions, it's better to allow
new_cf_descriptor to take the reference to BlockstoreOptions so that
we can avoid future function API changes on new_cf_descriptor.
2022-03-16 11:47:49 -07:00
45337885c1
chore: bump gethostname from 0.2.1 to 0.2.3 ( #23697 )
...
* chore: bump gethostname from 0.2.1 to 0.2.3
Bumps gethostname from 0.2.1 to 0.2.3.
---
updated-dependencies:
- dependency-name: gethostname
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-03-16 12:35:39 -06:00
072a8c99ea
Bump openssl-src ( #23708 )
2022-03-16 12:34:47 -06:00
74bb527203
Refactor and use MINIMUM_STAKE_DELEGATION constant ( #22663 )
2022-03-16 10:56:48 -05:00
fa7926580a
minor VoteAccount refactoring ( #23686 )
2022-03-16 09:50:12 -05:00
cffc32af3e
Make payer and system program optional when extending lookup tables ( #23678 )
2022-03-16 21:40:16 +08:00
3252dc7203
uses structural sharing for stake-delegations hash-map ( #23585 )
...
StakeDelegations is using Arc to implement copy-on-write semantics:
https://github.com/solana-labs/solana/blob/58c0db970/runtime/src/stake_delegations.rs#L14-L16
However a single delegation change will still clone the entire hash-map,
resulting in excessive memory use as observed in:
https://github.com/solana-labs/solana/issues/23061#issuecomment-1063444072
This commit instead uses immutable hash-map implementing structural
sharing:
> which means that if two data structures are mostly copies of each
> other, most of the memory they take up will be shared between them.
https://docs.rs/im/latest/im/
2022-03-16 12:58:05 +00:00
584ac80b1e
Revert: KeyedAccount
refactoings in builtin programs ( #23649 )
...
* Revert "Replaces KeyedAccount by BorrowedAccount in the BPF loader. (#23056 )"
6c56eb9663
* Revert "Replaces `KeyedAccount` by `BorrowedAccount` in `system_instruction_processor`. (#23217 )"
ee7e411d68
* Revert "Replaces `KeyedAccount` by `BorrowedAccount` in `nonce_keyed_account`. (#23214 )"
1a68f81f89
* Revert "Replaces KeyedAccount by BorrowedAccount in the config processor. (#23302 )"
a14c7c37ee
* Revert "Replaces `KeyedAccount` by `BorrowedAccount` in vote processor (#23348 )"
e2fa6a0f7a
* Revert "Refactor: Prepare stake_instruction.rs to remove `KeyedAccount`s (#23375 )"
ee3fc39f1c
2022-03-16 11:30:01 +01:00
44ab660172
chore: bump libc from 0.2.119 to 0.2.120 ( #23694 )
...
* chore: bump libc from 0.2.119 to 0.2.120
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.119 to 0.2.120.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.119...0.2.120 )
---
updated-dependencies:
- dependency-name: libc
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-03-16 00:34:40 -06:00
3773b753d1
Configure shrink paths during blockstore load
2022-03-15 23:08:07 -07:00
ab373bb1a9
Refactor new_banks_from_ledger() into load and process steps
2022-03-15 23:08:07 -07:00
390c5667f7
Setup bank hard_forks in load_bank_forks()
2022-03-15 23:08:07 -07:00
455313584f
chore: bump sha3 from 0.10.0 to 0.10.1 ( #23480 )
...
* chore: bump sha3 from 0.10.0 to 0.10.1
Bumps [sha3](https://github.com/RustCrypto/hashes ) from 0.10.0 to 0.10.1.
- [Release notes](https://github.com/RustCrypto/hashes/releases )
- [Commits](https://github.com/RustCrypto/hashes/compare/sha3-v0.10.0...sha3-v0.10.1 )
---
updated-dependencies:
- dependency-name: sha3
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
* Revert bump in zk-token-sdk
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 >
2022-03-16 06:01:01 +00:00
e4590c5be6
chore: bump rpassword from 6.0.0 to 6.0.1 ( #23683 )
...
* chore: bump rpassword from 6.0.0 to 6.0.1
Bumps [rpassword](https://github.com/conradkleinespel/rpassword ) from 6.0.0 to 6.0.1.
- [Release notes](https://github.com/conradkleinespel/rpassword/releases )
- [Commits](https://github.com/conradkleinespel/rpassword/compare/v6.0.0...v6.0.1 )
---
updated-dependencies:
- dependency-name: rpassword
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-03-15 21:41:27 -06:00
410463fb72
Update InvalidRentPayingAccount error ( #23680 )
2022-03-15 21:41:16 -06:00
2da4e3eb6c
Add --no-os-memory-stats-reporting
2022-03-15 17:07:40 -07:00
dbc62f2e28
Use consistent variable naming for DropBankService
2022-03-15 17:07:13 -07:00
d44f3d7216
Remove unhelpful log message
2022-03-15 17:07:13 -07:00
9b46f9b2da
Quic Connection Cache ( #23598 )
...
Add a connection cache to allow add modules that send data to get or create connections (e.g. for quic) associated with a certain SocketAddr
2022-03-15 18:16:35 -04:00
2d3501dff9
make upsert infallible op
2022-03-15 17:05:41 -05:00
b5a99b9b09
avoid data copies in writing to cache ( #23674 )
2022-03-15 16:42:26 -05:00
29af42f428
chore: bump zstd from 0.11.0+zstd.1.5.2 to 0.11.1+zstd.1.5.2 ( #23679 )
...
* chore: bump zstd from 0.11.0+zstd.1.5.2 to 0.11.1+zstd.1.5.2
Bumps [zstd](https://github.com/gyscos/zstd-rs ) from 0.11.0+zstd.1.5.2 to 0.11.1+zstd.1.5.2.
- [Release notes](https://github.com/gyscos/zstd-rs/releases )
- [Commits](https://github.com/gyscos/zstd-rs/commits )
---
updated-dependencies:
- dependency-name: zstd
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-03-15 15:31:14 -06:00
62b26f012e
chore: bump reqwest from 0.11.9 to 0.11.10 ( #23671 )
...
* chore: bump reqwest from 0.11.9 to 0.11.10
Bumps [reqwest](https://github.com/seanmonstar/reqwest ) from 0.11.9 to 0.11.10.
- [Release notes](https://github.com/seanmonstar/reqwest/releases )
- [Changelog](https://github.com/seanmonstar/reqwest/blob/master/CHANGELOG.md )
- [Commits](https://github.com/seanmonstar/reqwest/compare/v0.11.9...v0.11.10 )
---
updated-dependencies:
- dependency-name: reqwest
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-03-15 12:54:23 -06:00
61cead9b9b
Remove injection of exit signal into cost_update_service
2022-03-15 09:58:56 -05:00
eb73dacd58
harden banking tests
2022-03-15 09:58:08 -05:00
e9040d2766
Adds a missing check_number_of_instruction_accounts() in StakeInstruction::Authorize. ( #23672 )
2022-03-15 15:53:11 +01:00
8c4f010b8d
fix logging: only walk remote dir if it exist ( #23663 )
2022-03-15 08:56:22 -05:00
64e2d9dc47
docs: update sysvar docs for load_instruction_at_checked ( #22925 )
...
* docs: update sysvar docs for load_instruction_at_checked
Update the instruction introspection docs to use the updated load_instruction_at_checked function instead of deprecated load_instruction_at
* Update to load_current_index_checked
2022-03-15 20:22:34 +08:00
e7cf84a593
Remove AccessType arg from create_new_ledger ( #23591 )
...
Creating a new ledger implicitly means that no other process could have
previously held access to it. Additionally, creating a new ledger
implicitly requires writing, so it follows that Primary access is
required and we can drop access type as an argument.
2022-03-15 00:07:16 -05:00
c1bf85b109
Explorer: Add Swim Swap Program to known addresses ( #23660 )
2022-03-15 12:18:35 +08:00
8c8f9694e0
Refactor: Sanitized transaction creation ( #23558 )
...
* Refactor: SanitizedTransaction::try_create optionally computes hash
* Refactor: Add SimpleAddressLoader
2022-03-15 12:02:22 +08:00
f05ac7a899
move to get_slots_in_epoch ( #23657 )
2022-03-14 22:47:45 -05:00
102dd68a03
Rename AccountsDb plugins to Geyser plugins ( #23604 )
2022-03-14 19:18:46 -06:00
bcc5890182
Fix comments in bootstrap for downloading snapshots ( #23664 )
2022-03-14 19:35:57 -05:00
7651ae5039
chore: bump rpassword from 5.0.1 to 6.0.0 ( #23638 )
...
* chore: bump rpassword from 5.0.1 to 6.0.0
Bumps [rpassword](https://github.com/conradkleinespel/rpassword ) from 5.0.1 to 6.0.0.
- [Release notes](https://github.com/conradkleinespel/rpassword/releases )
- [Commits](https://github.com/conradkleinespel/rpassword/compare/v5.0.1...v6.0.0 )
---
updated-dependencies:
- dependency-name: rpassword
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
* [auto-commit] Update all Cargo lock files
* Update api
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 >
2022-03-15 00:03:30 +00:00
17cc095d28
Slot warping doesn't need to be in new_banks_from_ledger
2022-03-14 15:29:58 -07:00
2e7ee0f177
Tower loading doesn't need to be in new_banks_from_ledger
2022-03-14 15:29:58 -07:00
390dc24608
Create leader schedule before processing blockstore
2022-03-14 15:29:58 -07:00
543d5d4a5d
Reduce new_banks_from_ledger arguments
2022-03-14 15:29:58 -07:00
115f376465
Factor out bank_forks_utils::load_bank_forks()
2022-03-14 15:29:58 -07:00
63324be5b3
Remove last_full_snapshot_slot return value when it can be derived by the caller
2022-03-14 15:29:58 -07:00
cf5048faaa
Eliminate to_loadresult()
2022-03-14 15:29:58 -07:00
3d4bf1d00a
Refactor bank_forks_utils::load() to invoke a common process_blockstore_from_root()
2022-03-14 15:29:58 -07:00
c2ce152be8
Inline do_process_blockstore_from_root
2022-03-14 15:29:58 -07:00
07d5ee062d
Push recyclers down the stack
2022-03-14 15:29:58 -07:00
fc2d1a61f3
signing_coding_time is not used ( #23655 )
2022-03-14 17:16:30 -05:00
c68c0e881e
consolidate use-jit flag ( #23652 )
2022-03-14 15:00:00 -07:00
c5eb8ed7d1
docs: add web3 source docs copy
2022-03-14 15:18:08 -06:00
7eaec26a1c
Add space for keys in calculation for rent exempt in process_set_validator_info
( #23485 )
...
* Fix `process_set_validator_info`
Add space for keys in calculation for rent exempt in
`process_set_validator_info`.
The space required for allocating the `(ConfigKeys, ValidatorInfo)`
tuple only considered space for `ValidatorInfo`.
But `config_instruction::create_account` also requires space for `n`
keys.
* Remove one clone call from closure
2022-03-14 15:10:31 -06:00
0c684721d8
Separate remotely downloaded snapshot archives ( #23510 )
...
* seperate remotely downloaded snapshot archives
* add str const for snapshot download dir
* only walk remote sub directory
* move directory creation outside of loop
* move is_remote to traits
* clippy simplify
* clippy
* clippy
* add unittest
* fix local cluster tests
* look for remote snapshot archive in remote foler
* create remote dir in tests
* use snapshot download dir constant
* extract build_remote_dir fn
* fix build
* code review - walking snapshot archived dirs explicitly
* fix build
* fix build
* fix comments
* Update runtime/src/snapshot_utils.rs
Co-authored-by: Brooks Prumo <brooks@prumo.org >
* clippy
* borrow to avoid copy
Co-authored-by: Brooks Prumo <brooks@prumo.org >
2022-03-14 14:03:59 -05:00
5ea6a1e500
code review
2022-03-14 13:14:27 -05:00
8590911b0a
Replace type alias with newtype for UnprocesedPacketBatches
2022-03-14 13:14:27 -05:00
a3242b6b86
remove unnecessary namespaces ( #23646 )
2022-03-14 12:28:55 -05:00
c369f8b871
limit secp256k1 recover id ( #23621 )
2022-03-14 09:34:43 -07:00
63bf0f66af
Bump version to 1.10.3 ( #23648 )
2022-03-14 11:18:45 -05:00
11be3fb7fa
Add FlushGuard to ensure flushing_active
is used safely ( #23571 )
2022-03-14 10:35:00 -05:00
e8a8f4e9e2
fix filler acct slots in epoch ( #23536 )
2022-03-14 09:57:44 -05:00
accc64ebcf
chore: fix typo retring -> retrying ( #23630 )
2022-03-13 23:25:27 -06:00
bc9882a78b
Disable publish of test crates
2022-03-13 20:47:50 -07:00
01b6f97f0b
Pin histogram crate version to fix cargo publish
2022-03-13 16:19:30 -07:00
7758c32035
Banking Stage drops transactions that'll exceed the total account data size limit ( #23537 )
2022-03-13 15:58:57 +00:00
bf57252298
deny slice indexing ( #23622 )
2022-03-13 08:43:07 -07:00
0d369616e7
add script for the traceability ( #23626 )
...
merging for traceability
2022-03-12 16:20:22 +05:30
48d4c8eb5c
Clippy
2022-03-11 20:04:05 -07:00
e2e54ef64b
Add token-balance unit test
2022-03-11 19:56:37 -07:00
1e20bd8f9a
(LedgerStore) Include storage type as a tag in RocksDB metric reporting ( #23523 )
...
#### Summary of Changes
This PR further enables group by operation on storage type in blockstore_rocksdb_cfs metrics.
Such group-by allows us to further compare the performance metrics between rocks-level and
rocks-fifo.
To make things extensible, this PR introduces BlockstoreAdvancedOptions and move shred_storage_type.
All fields in BlockstoreAdvancedOptions will support group-by operation in blockstore_rocksdb_cfs.
Dependency: #23580
2022-03-11 15:17:34 -08:00
b1da7cff66
chore: bump base64 from 0.12.3 to 0.13.0 ( #23616 )
...
* chore: bump base64 from 0.12.3 to 0.13.0
Bumps [base64](https://github.com/marshallpierce/rust-base64 ) from 0.12.3 to 0.13.0.
- [Release notes](https://github.com/marshallpierce/rust-base64/releases )
- [Changelog](https://github.com/marshallpierce/rust-base64/blob/master/RELEASE-NOTES.md )
- [Commits](https://github.com/marshallpierce/rust-base64/compare/v0.12.3...v0.13.0 )
---
updated-dependencies:
- dependency-name: base64
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
* Update Cargo.lock files
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2022-03-11 16:01:15 -07:00
4e02ec342c
zk-token-sdk: fixing a range proof edge case ( #23605 )
...
* zk-token-sdk: fixing a range proof edge case
* zk-token-sdk: clippy
2022-03-11 16:57:56 -05:00
3cf31fa9b8
fix: web3.js browser cjs build ( #23500 )
2022-03-11 14:35:15 -07:00
ccff006948
Add more logs to purge_old_snapshot_archives
( #23531 )
2022-03-11 15:01:48 -06:00
3eca66a1f8
Remove extra line from Pull Request template
2022-03-11 14:56:52 -06:00
4d08234603
Remove extra newline from Issue template
2022-03-11 14:28:26 -06:00
5d75ef4766
fix deadlink in doc ( #23607 )
2022-03-11 12:20:04 -08:00
7ee7fc6f58
CI clippy and fmt for all ( #23599 )
2022-03-11 12:07:06 -08:00
d20dd21600
Sort tables in Cargo.toml files ( #23602 )
2022-03-11 11:05:57 -06:00
2bff36dfba
feat: add getEstimatedFee to Transaction ( #23579 )
2022-03-11 10:05:22 -07:00
4f18d73281
Explorer: Add support for cluster specific program ids ( #23609 )
2022-03-11 23:22:31 +08:00
043086081f
checks if --entrypoint is consistent with --allow-private-addr ( #23559 )
...
If entrypoints are excluded by SocketAddrSpace, the node cannot start.
Private --entrypoint addresses require --allow-private-addr.
2022-03-11 14:15:05 +00:00
3d021cffa3
explorer: add Pyth instruction support ( #23551 )
2022-03-11 21:59:16 +08:00
9b591286d7
Revert "chore: bump dashmap from 4.0.2 to 5.1.0 ( #23372 )" ( #23592 )
...
This reverts commit 3a0271c113
.
2022-03-11 09:12:27 +01:00
99f1a22b9d
(LedgerStore) Generalize RocksDB metric reporting macro ( #23580 )
...
#### Summary of Changes
This PR generalizes RocksDB metric reporting macro so that future RocksDB metrics can
reuse the same macro.
2022-03-10 23:13:59 -08:00
e6a67cd091
Remove unused dependencies ( #23595 )
2022-03-10 22:20:52 -06:00
631be1ffdd
chore: bump zstd from 0.10.0+zstd.1.5.2 to 0.11.0+zstd.1.5.2 ( #23581 )
...
* chore: bump zstd from 0.10.0+zstd.1.5.2 to 0.11.0+zstd.1.5.2
Bumps [zstd](https://github.com/gyscos/zstd-rs ) from 0.10.0+zstd.1.5.2 to 0.11.0+zstd.1.5.2.
- [Release notes](https://github.com/gyscos/zstd-rs/releases )
- [Commits](https://github.com/gyscos/zstd-rs/compare/v0.10.0...v0.11.0 )
---
updated-dependencies:
- dependency-name: zstd
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-03-10 20:01:05 -07:00
021135978d
Refactor: Split up cli transaction display methods ( #23547 )
2022-03-11 10:49:53 +08:00
b444836a97
Bump version to 1.10.2 ( #23597 )
2022-03-10 16:41:06 -06:00
83f5f8bfc3
Move test_purge_huge test ( #23587 )
...
* ignore test_purge_huge tests it is expensive.
* move test_purge to integration tests
2022-03-10 15:31:43 -06:00
ddd9d5a5a5
deny slice indexing ( #23565 )
2022-03-10 11:48:33 -08:00
ead8cc4366
Check for physical region overlap ( #23568 )
2022-03-10 11:48:09 -08:00
7b238b3645
fix: renamed the internal wasm_bindgen init function to avoid collision
2022-03-10 11:33:24 -08:00
35d1235ed0
- move unprocessed_packet_batches
from BankingStage
to its own ( #23508 )
...
module
- deserialize packets during receving and buffering
2022-03-10 18:47:46 +00:00
3c6840050c
Ensure blocks do not exceed the max accounts data size during Replay Stage ( #23422 )
2022-03-10 10:24:31 -06:00
58c0db9704
Cleanup several blockstore functions ( #23390 )
...
* Rename excludes_from_compaction to should_exclude_from_compaction
* Make subfunction to create all cf descriptors
* Condense logic for when to disable compactions
2022-03-10 02:08:38 -06:00
37189f20c5
Fix error message typo ( #23574 )
2022-03-10 05:03:02 +00:00
588414a776
Report even if slot begins and ends in process_buffered_packets() ( #23549 )
2022-03-09 23:42:35 -05:00
72af687aa6
Fix broken links in solana-client ( #23503 )
...
* Fix broken links in solana-client
* Revise docs for RpcClient::new_sender
* Add docs for RpcClient::new_mock etc
* Fix doc warnings on RpcSender
* rustfmt
2022-03-09 21:42:23 -07:00
f68c5a274d
remove persist_cost_table code
2022-03-09 21:05:47 -07:00
9f71958d7d
Patch validator from loading persisted program costs
2022-03-09 21:05:47 -07:00
17b00ad3a4
Add quic-client module ( #23166 )
...
* Add quic-client module to send transactions via quic, abstracted behind the TpuConnection trait (along with a legacy UDP implementation of TpuConnection) and change thin-client to use TpuConnection
2022-03-09 21:33:05 -05:00
1fe0d6eeeb
Set ordering flushing_active.swap() to AcqRel ( #23567 )
2022-03-10 01:22:42 +00:00
e60c9b97c9
Removes KeyedAccount
from tests in stake instruction. (Part 1) ( #23473 )
...
* Migrates test_stake_delegate().
* Migrates test_stake_initialize().
* Migrates test_initialize_incorrect_account_sizes().
* Migrates test_authorize().
* Migrates test_authorize_lockup().
* Migrates test_authorize_override().
* Migrates test_authorize_with_seed().
* Migrates test_split().
* Migrates test_split_fake_stake_dest().
* Migrates test_deactivate().
* Migrates test_set_lockup().
* Migrates test_optional_lockup_for_stake_program().
* Migrates test_withdraw_stake().
* Migrates test_withdraw_stake_invalid_state().
* Migrates test_withdraw_stake_before_warmup().
* Migrates test_withdraw_lockup().
* Migrates test_withdraw_identical_authorities().
* Migrates test_withdraw_rent_exempt().
* Migrates test_authorize_delegated_stake().
* Migrates test_redelegate_consider_balance_changes().
2022-03-09 23:48:10 +01:00
ea1bcd3d59
Add newlines in templates ( #23540 )
2022-03-09 16:10:23 -06:00
1eddb6d1e9
Move ArchiveFormat into own module ( #23562 )
2022-03-09 16:09:34 -06:00
26ef6111bb
chore: bump follow-redirects from 1.13.1 to 1.14.8 in /web3.js ( #23122 )
...
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects ) from 1.13.1 to 1.14.8.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases )
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.13.1...v1.14.8 )
---
updated-dependencies:
- dependency-name: follow-redirects
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-09 14:09:06 -08:00
9bbccbe27c
Use AsRef<Path>
instead of PathBuf
for parameters ( #23560 )
2022-03-09 16:08:33 -06:00
fb974489a5
fix(explorer): metaplexNFTHeader for unverified collection ( #23498 )
...
Current behavior:
When the NFT is in an unverified collection, the metaplex NFT header displays a 0.
Example : https://explorer.solana.com/address/ARA6zvFJZAydh6mdAgc7A6pMpZotCQj6eYugUMpEWKYh
Expected behavior:
The metaplex NFT header should display nothing
2022-03-09 13:44:12 -08:00
ba54b30101
clippy ( #23563 )
2022-03-09 15:33:50 -06:00
a1c45d5acb
typo ( #23564 )
2022-03-09 15:11:21 -06:00
176fd23002
Continue making it possible to implement RpcSender ( #23561 )
...
* Make nonblocking RpcClient::new_sender pub
As is the blocking RpcClient::new_sender, per #23503 .
* Make solana_client::rpc_sender pub
Per #17631 it is supposed to be possible to implement RpcSender in
order to call RpcClient::new_sender. As of now though it is
not possible to name RpcSender in order to implement it.
2022-03-09 14:07:51 -07:00
3688ac4eae
upd Cargo.lock
2022-03-09 17:53:06 +01:00
cc55684f5f
update clap to v3: rbpf-cli
2022-03-09 17:53:06 +01:00
e2bc326d58
update clap to v3: test-bpf
2022-03-09 17:53:06 +01:00
8abaa5d350
update clap to v3: bpf-tools
2022-03-09 17:53:06 +01:00
949006b5a2
explorer: format Instructions title as singular/plural ( #23553 )
2022-03-09 20:53:29 +08:00
afc41c7b11
fix: vercel preview "PR commit URl" on slack ( #23519 )
...
* fix: vercel preview "PR commit URl" on slack
added command to get "PR commit URl" on slack along with vercel preview deploy link on PR.
* fix: error trailing whitespace on buildkite
2022-03-09 17:06:36 +05:30
7a9884c831
Quic limit connections ( #23283 )
...
* quic server limit connections
* bump per_ip
* Review comments
* Make the connections per port
2022-03-09 10:52:31 +01:00
8a4b019ded
chore: bump byte-unit from 4.0.13 to 4.0.14 ( #23550 )
...
Bumps [byte-unit](https://github.com/magiclen/byte-unit ) from 4.0.13 to 4.0.14.
- [Release notes](https://github.com/magiclen/byte-unit/releases )
- [Commits](https://github.com/magiclen/byte-unit/compare/v4.0.13...v4.0.14 )
---
updated-dependencies:
- dependency-name: byte-unit
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-03-09 08:28:42 +00:00
249d926d1b
Refactor: Add transaction binary encoding enum ( #23546 )
2022-03-09 16:09:08 +08:00
65e2d9b2f2
chore: bump hidapi from 1.3.3 to 1.3.4 ( #23544 )
...
Bumps [hidapi](https://github.com/ruabmbua/hidapi-rs ) from 1.3.3 to 1.3.4.
- [Release notes](https://github.com/ruabmbua/hidapi-rs/releases )
- [Commits](https://github.com/ruabmbua/hidapi-rs/commits )
---
updated-dependencies:
- dependency-name: hidapi
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-03-09 05:57:59 +00:00
5c722519cf
chore: bump etcd-client from 0.8.3 to 0.8.4
...
Bumps [etcd-client](https://github.com/etcdv3/etcd-client ) from 0.8.3 to 0.8.4.
- [Release notes](https://github.com/etcdv3/etcd-client/releases )
- [Commits](https://github.com/etcdv3/etcd-client/compare/0.8.3...v0.8.4 )
---
updated-dependencies:
- dependency-name: etcd-client
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-03-08 17:33:24 -08:00
5a0cd05866
Revert "- estimate a program cost as 2 standard deviation above mean"
...
This reverts commit a25ac1c988
.
2022-03-08 17:18:44 -08:00
9acbfa5eb1
Revert "use EMA in place of Welford"
...
This reverts commit 6587dbfa47
.
2022-03-08 17:18:44 -08:00
c878c9e2cb
Revert "1. Persist to blockstore less frequently;"
...
This reverts commit 7aa1fb4e24
.
2022-03-08 17:18:44 -08:00
0a17edcc1f
Revert "fix tests after merge"
...
This reverts commit ba2d83f580
.
2022-03-08 17:18:44 -08:00
cc4d75a16f
fix typo ( #23535 )
2022-03-08 18:28:00 -06:00
b719d6a2ad
solana-validator set-identity
no longer writes a tower file unnecessarily
2022-03-08 15:34:23 -08:00
8438366d1b
fix: update 'borsh' dependency to v0.7.0 ( #22425 )
...
Fixes issue with usage of 'global' when used in the browser.
Currently the web3.js distributable is built with a commonJS rollup, but if you
use the npm package with another packager, it will fail when it hits the call
to 'global' inside the browser. Borsh fixed this in v0.7.0
2022-03-08 15:07:33 -08:00
46ec5d563b
chore: bump libc from 0.2.117 to 0.2.119 ( #23527 )
...
* chore: bump libc from 0.2.117 to 0.2.119
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.117 to 0.2.119.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.117...0.2.119 )
---
updated-dependencies:
- dependency-name: libc
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-03-08 14:25:38 -07:00
9b80452c7c
Fix getting the golden snapshot hashes during bootstrap with Incremental Snapshots ( #23518 )
2022-03-08 15:16:53 -06:00
c2ec294401
featurize loader sat math ( #23516 )
2022-03-08 11:48:22 -08:00
536a99705b
Update regex to v1.5.5
2022-03-08 10:45:47 -08:00
00558227be
chore: bump pbkdf2 from 0.10.0 to 0.10.1 ( #23522 )
...
* chore: bump pbkdf2 from 0.10.0 to 0.10.1
Bumps [pbkdf2](https://github.com/RustCrypto/password-hashes ) from 0.10.0 to 0.10.1.
- [Release notes](https://github.com/RustCrypto/password-hashes/releases )
- [Commits](https://github.com/RustCrypto/password-hashes/compare/pbkdf2-v0.10.0...pbkdf2-v0.10.1 )
---
updated-dependencies:
- dependency-name: pbkdf2
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-03-08 10:50:33 -07:00
5599bd9442
Remove BankFromArchiveTimings from ledger/
2022-03-08 08:11:50 -08:00
9cfa21f7d1
Inline load_from_genesis
2022-03-08 08:11:50 -08:00
12337d8daf
chore: bump curve25519-dalek from 3.2.0 to 3.2.1 ( #23517 )
...
Bumps [curve25519-dalek](https://github.com/dalek-cryptography/curve25519-dalek ) from 3.2.0 to 3.2.1.
- [Release notes](https://github.com/dalek-cryptography/curve25519-dalek/releases )
- [Changelog](https://github.com/dalek-cryptography/curve25519-dalek/blob/main/CHANGELOG.md )
- [Commits](https://github.com/dalek-cryptography/curve25519-dalek/compare/3.2.0...3.2.1 )
---
updated-dependencies:
- dependency-name: curve25519-dalek
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-03-08 01:14:37 -07:00
3114c199bd
Add RPC support for versioned transactions ( #22530 )
...
* Add RPC support for versioned transactions
* fix doc tests
* Add rpc test for versioned txs
* Switch to preflight bank
2022-03-08 15:20:34 +08:00
e790d0fc53
Optional Cli parameter to add additional-fee to solana ping ( #23513 )
...
* Optional Cli parameter to add additional-fee to solana ping
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com >
* Update cli/src/cluster_query.rs
correct the help message for arg
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com >
2022-03-08 03:49:36 +00:00
7933c7fc24
chore: bump anyhow from 1.0.55 to 1.0.56 ( #23514 )
...
* chore: bump anyhow from 1.0.55 to 1.0.56
Bumps [anyhow](https://github.com/dtolnay/anyhow ) from 1.0.55 to 1.0.56.
- [Release notes](https://github.com/dtolnay/anyhow/releases )
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.55...1.0.56 )
---
updated-dependencies:
- dependency-name: anyhow
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-03-07 16:26:30 -07:00
ddbf5c782f
Fix broken doc links in solana-runtime ( #23504 )
2022-03-07 22:21:40 +00:00
38d8bbb19c
chore: bump sysctl from 0.4.3 to 0.4.4 ( #23505 )
...
Bumps [sysctl](https://github.com/johalun/sysctl-rs ) from 0.4.3 to 0.4.4.
- [Release notes](https://github.com/johalun/sysctl-rs/releases )
- [Changelog](https://github.com/johalun/sysctl-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/johalun/sysctl-rs/commits )
---
updated-dependencies:
- dependency-name: sysctl
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-03-07 14:24:19 -07:00
181fffb916
rename status filename to be consistent ( #23501 )
2022-03-07 17:34:35 +00:00
08c9a650db
zk-token-sdk: generalize range proof ( #23506 )
...
* zk-token-sdk: update range proof in transfers for more flexible setting of params
* zk-token-sdk: clippy
2022-03-07 12:27:56 -05:00
3a0271c113
chore: bump dashmap from 4.0.2 to 5.1.0 ( #23372 )
...
* chore: bump dashmap from 4.0.2 to 5.1.0
Bumps [dashmap](https://github.com/xacrimon/dashmap ) from 4.0.2 to 5.1.0.
- [Release notes](https://github.com/xacrimon/dashmap/releases )
- [Commits](https://github.com/xacrimon/dashmap/commits/v5.1.0 )
---
updated-dependencies:
- dependency-name: dashmap
dependency-type: direct:production
update-type: version-update:semver-major
...
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-03-07 00:00:26 -05:00
463cd564cf
fix typos ( #23495 )
...
* fix typos
2022-03-05 20:46:46 -06:00
b8b7163b66
(Ledger Store) Report RocksDB Column Family Metrics ( #22503 )
...
This PR enables blockstore to periodically report RocksDB column family properties.
The reported properties are under blockstore_rocksdb_cfs, and the properties also
support group by operation on cf_name.
2022-03-05 16:13:03 -08:00
ba771cdc45
feat(explorer): adding verified on-chain collection support ( #23490 )
...
* Adding Verified On-chain Collection tag to help consumers check if their NFTs are authentic
* On-chain isn't quite the same as NO-chain
* Grammar fix
* Added Collection Owner verification to guarantee this is actually a Collection Mint
2022-03-04 18:35:35 -08:00
d2b23da9ea
Zk token sdk clean decryption ( #23478 )
...
* zk-token-sdk: add decryption for pod elgamal ciphertexts
* zk-token-sdk: add decryption for pod elgamal ciphertexts
* zk-token-sdk: cargo fmt
* zk-token-sdk: minor update to docs
* zk-token-sdk: minor
* zk-token-sdk: fix bpf build error
* zk-token-sdk: more simplifying discrete log
* zk-token-sdk: fmt
* zk-token-sdk: minor update to doc
2022-03-04 15:57:19 -04:00
09b58e1cfb
sha-2:0.9.8 yanked, bump to 0.9.9 ( #23477 )
2022-03-04 08:13:52 -08:00
e23c6ce62b
Increases check_number_of_instruction_accounts() in BPF loader. ( #23440 )
2022-03-04 14:33:27 +01:00
38db1dead4
Refactor RPC tests ( #23483 )
2022-03-04 18:20:11 +08:00
36ad59673c
drop mut
2022-03-04 09:52:46 +01:00
0d33b54d74
Rework do_process_blockstore_from_root to use BankForks
2022-03-04 09:52:46 +01:00
93c8e04d51
Simplify do_process_blockstore_from_root slightly
2022-03-04 09:52:46 +01:00
b28acd2d4d
Reduce fn visibility
2022-03-04 09:52:46 +01:00
360f6466a3
chore: bump futures from 0.3.19 to 0.3.21 ( #23476 )
...
* chore: bump futures from 0.3.19 to 0.3.21
Bumps [futures](https://github.com/rust-lang/futures-rs ) from 0.3.19 to 0.3.21.
- [Release notes](https://github.com/rust-lang/futures-rs/releases )
- [Changelog](https://github.com/rust-lang/futures-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/futures-rs/compare/0.3.19...0.3.21 )
---
updated-dependencies:
- dependency-name: futures
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-03-03 16:44:43 -07:00
aad73f1f2e
fix recycler free stat report ( #23159 )
...
* fix recycler free stat report
* update comments for ewma window size
* one atomic update with aggregated local counter
* fix clippy integer arithmetic error
* move free calcs outside of loop
* fix integer arithmetic error
2022-03-03 17:08:59 -06:00
afda8c4020
chore: bump memmap2 from 0.5.2 to 0.5.3 ( #23475 )
...
* chore: bump memmap2 from 0.5.2 to 0.5.3
Bumps [memmap2](https://github.com/RazrFalcon/memmap2-rs ) from 0.5.2 to 0.5.3.
- [Release notes](https://github.com/RazrFalcon/memmap2-rs/releases )
- [Changelog](https://github.com/RazrFalcon/memmap2-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/RazrFalcon/memmap2-rs/compare/v0.5.2...v0.5.3 )
---
updated-dependencies:
- dependency-name: memmap2
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-03-03 14:45:07 -07:00
62d2a4cd88
Make ShredStorageType::RocksLevel public ( #23272 )
...
#### Summary of Changes
This PR adds two hidden arguments to the validator that allow users to use RocksDB's FIFO compaction for storing shreds.
--shred-storage <SHRED_STORAGE>
EXPERIMENTAL: Controls how RocksDB compacts shreds. *WARNING*: You will lose your ledger data
when you switch between options. Possible values are: 'level': stores shreds using RocksDB's default (level)
compaction. 'fifo': stores shreds under RocksDB's FIFO compaction. This option is more efficient on
disk-write-bytes of the ledger store. [default: level] [possible values: level, fifo]
--shred-storage-size <SHRED_STORAGE_SIZE_BYTES>
The shred storage size in bytes. The suggested value is 50% of your ledger storage size in bytes. [default:
268435456000]
2022-03-03 12:43:58 -08:00
8d53ea81e9
zk-token-sdk: change variable names to use suffix rather than prefix ( #23474 )
...
* zk-token-sdk: change variable names to use suffix rather than prefix for type
* zk-token-sdk: cargo fmt
2022-03-03 15:07:27 -05:00
f2fa49a771
chore: bump lru from 0.7.2 to 0.7.3 ( #23462 )
...
Bumps [lru](https://github.com/jeromefroe/lru-rs ) from 0.7.2 to 0.7.3.
- [Release notes](https://github.com/jeromefroe/lru-rs/releases )
- [Changelog](https://github.com/jeromefroe/lru-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/jeromefroe/lru-rs/compare/0.7.2...0.7.3 )
---
updated-dependencies:
- dependency-name: lru
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-03-03 12:01:49 -07:00
7b7160448b
Rename AccountsDataMeter::consume
( #23037 )
2022-03-03 12:23:06 -06:00
7f608965ef
new counter data point for unexpected rent_epoch ( #23449 )
2022-03-03 09:09:31 -06:00
ddfd4f86f3
exit early from acct bg svc if no shrink candidates ( #23459 )
2022-03-03 08:47:39 -06:00
a99fd09c16
allow index update to change storage slot # ( #23311 )
2022-03-03 08:40:48 -06:00
4b59bfe6d8
testing latest changes on explorer ( #23470 )
2022-03-03 16:48:18 +05:30
5ac3466f26
added PAT token
...
fixing Error: Resource not accessible by integration
2022-03-03 16:24:09 +05:30
2e750722c7
resolving promote to prod issue ( #23469 )
2022-03-03 15:40:49 +05:30
a9fd807f61
adding default working dir to fix promote to prod issue
2022-03-03 15:23:41 +05:30
011472a8e8
add comment to trigger the file to check the previous merge ( #23468 )
...
* fix the issue of "promote to Production" on vercel
* fix the issue "promote to production" on vercel for production deployment
* add comment to trigger the file to check the previous merge for vercel "promote to prod" issue
2022-03-03 15:05:02 +05:30
b4480e6b70
fixing the vercel " promote to production" issue ( #23466 )
...
* fix the issue of "promote to Production" on vercel
* fix the issue "promote to production" on vercel for production deployment
2022-03-03 13:20:32 +05:30
61d7bdd66f
chore: bump serde_json from 1.0.78 to 1.0.79 ( #23461 )
...
* chore: bump serde_json from 1.0.78 to 1.0.79
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.78 to 1.0.79.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.78...v1.0.79 )
---
updated-dependencies:
- dependency-name: serde_json
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-03-02 23:38:06 -07:00
43347f3da6
fix(explorer): change title to average ping time ( #23463 )
2022-03-03 03:28:23 +00:00
634f4eb37d
(LedgerStore) Use different path for different blockstore storage type. ( #23236 )
...
#### Summary of Changes
To avoid mixing the use of different shred storage types, each shred storage type
will have its blockstore in a different directory.
This PR still keeps the RocksFifo setting hidden. The default ShredStorageType and
blockstore directory are still RocksLevel and `rocksdb`.
Will follow-up with PRs on making FIFO option public in ledger-tool and validator.
#### Test Plan
* Added a new test to verify the existence of `rocksdb-fifo` directory when FIFO compaction is used.
* Updated existing test to verify the current setting still store ledger under `rocksdb` directory.
* Manually ran ledger_cleanup_test with both level and fifo compaction and verified the resulting ledger.
* Ran a validator with this PR.
2022-03-02 18:30:22 -08:00
39387e8446
chore: bump blake3 from 1.3.0 to 1.3.1 ( #23460 )
...
* chore: bump blake3 from 1.3.0 to 1.3.1
Bumps [blake3](https://github.com/BLAKE3-team/BLAKE3 ) from 1.3.0 to 1.3.1.
- [Release notes](https://github.com/BLAKE3-team/BLAKE3/releases )
- [Commits](https://github.com/BLAKE3-team/BLAKE3/compare/1.3.0...1.3.1 )
---
updated-dependencies:
- dependency-name: blake3
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-03-02 18:20:30 -07:00
79a515e88e
Add tests for split() from Uninitialized account where dest=source ( #23442 )
2022-03-02 18:32:15 -06:00
e87b941a51
Test stake split: destination delegation is at least the minimum ( #23456 )
2022-03-02 17:29:40 -06:00
fe7604589d
chore: bump retain_mut from 0.1.5 to 0.1.7 ( #23450 )
...
Bumps [retain_mut](https://github.com/upsuper/retain_mut ) from 0.1.5 to 0.1.7.
- [Release notes](https://github.com/upsuper/retain_mut/releases )
- [Commits](https://github.com/upsuper/retain_mut/commits )
---
updated-dependencies:
- dependency-name: retain_mut
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-03-02 23:15:33 +00:00
e9912744ef
use saturating arithmetic ( #23435 )
2022-03-02 14:50:16 -08:00
8184f755ae
2 more rent collection tests don't skip epochs ( #23446 )
2022-03-02 15:04:34 -06:00
97d40ba3da
Resized accounts must be rent exempt
2022-03-02 13:02:02 -08:00
82cb61dc36
Add Copy/Eq derive traits to SlotStatus in accountsdb-plugin ( #23100 )
...
* Add copy/eq derive traits to SlotStatus in accountsdb-plugin
* move Eq to derive
* remove not required clone
2022-03-02 12:49:11 -08:00
1a99251498
Bump version to 1.10.1 ( #23453 )
2022-03-02 13:47:01 -06:00
41ab690a61
feat: add getMultipleAccountsInfoAndContext method to Connection
...
Similar to `getAccountInfoAndContext`.
2022-03-02 20:39:48 +01:00
7dbde2247d
Adds comments related to the public RPC endpoints ( #22797 )
...
* Adds comments related to the public RPC endpoints
* Update docs/src/cluster/rpc-endpoints.md
Co-authored-by: Michael Vines <mvines@gmail.com >
Co-authored-by: Brian Long <bl@triton.one >
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Michael Vines <mvines@gmail.com >
2022-03-02 19:15:35 +00:00
da00d29de0
chore: bump bytemuck from 1.7.3 to 1.8.0 ( #23437 )
...
* chore: bump bytemuck from 1.7.3 to 1.8.0
Bumps [bytemuck](https://github.com/Lokathor/bytemuck ) from 1.7.3 to 1.8.0.
- [Release notes](https://github.com/Lokathor/bytemuck/releases )
- [Changelog](https://github.com/Lokathor/bytemuck/blob/main/changelog.md )
- [Commits](https://github.com/Lokathor/bytemuck/compare/v1.7.3...v1.8.0 )
---
updated-dependencies:
- dependency-name: bytemuck
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-03-02 19:04:54 +00:00
e88da2ec0a
minor test cleanup ( #23447 )
...
* minor test cleanup
* fmt
2022-03-02 12:10:05 -06:00
26aa18b3f3
fmt ( #23448 )
2022-03-02 11:54:58 -06:00
e630eb73d7
rework test to avoid multi-epoch gap ( #23393 )
2022-03-02 11:12:10 -06:00
ef8b7d9c62
ledger tool halt at slot verify hash ( #23424 )
2022-03-02 11:11:18 -06:00
d909b7c80b
log hash and lamport result of calculate_accounts_hash_without_index ( #23425 )
2022-03-02 11:10:40 -06:00
8eefe60c44
chore: web3.js: fix cjs file reference in package.json ( #21940 )
2022-03-02 10:00:55 -07:00
d43786edcf
fix(explorer): remove purple from ping ( #23445 )
2022-03-02 16:57:41 +00:00
9ec514f6c5
Restore solana-test-validator informational output
2022-03-02 17:27:27 +01:00
3ddd018452
feat(explorer): reenable solana ping widget ( #23443 )
2022-03-02 16:11:35 +00:00
41f78b9925
small optimization. use shift for pow of 2. ( #22975 )
2022-03-02 09:11:12 -06:00
4f0070a5c6
unittest for bind two consecutive ports ( #23008 )
...
* minor fix of comments in fork-selection tests
* fix doc link
* add unittest for bind_two_consecutive_in_range
2022-03-02 09:10:29 -06:00
8de88d0a55
Refactor packet_threshold adjustment code into its own struct ( #23216 )
...
* refactor packet_threshold adjustment code into own struct and add unittest for it
* fix a typo in error message
* code review feedbacks
* another code review feedback
* Update core/src/ancestor_hashes_service.rs
Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com >
* share packet threshold with repair service (credit to carl)
Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com >
2022-03-02 09:09:06 -06:00
86e2f728c3
Fix a batch limits bug in banking ( #23327 )
...
* add thread index in thread name for debugging
* fix batch_limit
* use NUM_VOTE_THREAD instead of hardcoded number (credit to carllin)
2022-03-02 09:08:08 -06:00
7b7fdb42d9
minor test refactoring ( #23423 )
2022-03-02 08:31:14 -06:00
c8cb940b4e
tweak 2 rent tests to narrow epoch ranges ( #23420 )
2022-03-02 08:22:33 -06:00
a4f4ac5279
add plumbing to allow for arbitrary tpu address in gossip ( #22703 )
...
* add plumbing to allow for arbitrary tpu address in gossip
* make clippy happy
* Review comments
Co-authored-by: CherryWorm <nico.gruendel@web.de >
2022-03-02 09:42:14 +01:00
d3ebe8d8f5
Remove unneeded jsonrpc dependencies/features; update do-audit ( #23436 )
...
* Update generic-array note
* Remove unneeded jsonrpc deps
* Remove unneeded jsonrpc features
* Rewrite slot-update test without websocket crate
* Rewrite rpc-subscription test without websocket crate, and remove jsonrpc deps
* Update expected balance to accommodate rent-exempt minimum transfer amount
* Remove obsolete audit ignores
2022-03-02 01:42:01 -07:00
7d1a090cfb
chore: bump semver from 1.0.5 to 1.0.6 ( #23429 )
...
* chore: bump semver from 1.0.5 to 1.0.6
Bumps [semver](https://github.com/dtolnay/semver ) from 1.0.5 to 1.0.6.
- [Release notes](https://github.com/dtolnay/semver/releases )
- [Commits](https://github.com/dtolnay/semver/compare/1.0.5...1.0.6 )
---
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 <dependabot-buildkite@noreply.solana.com >
2022-03-01 22:16:44 -07:00
c69e3b73ff
bench get_retransmit_peers ( #23292 )
2022-03-01 19:10:29 -08:00
2a17a661e6
Remove failure audit ignore ( #23431 )
2022-03-01 17:02:55 -07:00
a0d68ef60e
chore: bump futures-util from 0.3.19 to 0.3.21 ( #23418 )
...
* chore: bump futures-util from 0.3.19 to 0.3.21
Bumps [futures-util](https://github.com/rust-lang/futures-rs ) from 0.3.19 to 0.3.21.
- [Release notes](https://github.com/rust-lang/futures-rs/releases )
- [Changelog](https://github.com/rust-lang/futures-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/futures-rs/compare/0.3.19...0.3.21 )
---
updated-dependencies:
- dependency-name: futures-util
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-03-01 16:44:30 -07:00
7d1810bbcc
chore: bump hidapi from 1.3.2 to 1.3.3 ( #23416 )
...
Bumps [hidapi](https://github.com/ruabmbua/hidapi-rs ) from 1.3.2 to 1.3.3.
- [Release notes](https://github.com/ruabmbua/hidapi-rs/releases )
- [Commits](https://github.com/ruabmbua/hidapi-rs/commits/v1.3.3 )
---
updated-dependencies:
- dependency-name: hidapi
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-03-01 16:06:56 -07:00
6c56eb9663
Replaces KeyedAccount by BorrowedAccount in the BPF loader. ( #23056 )
2022-03-01 22:55:26 +01:00
d0ba914d2b
fix(explorer): rollback ping until api is more stable ( #23419 )
2022-03-01 19:57:23 +00:00
7943e8a1c3
fix(explorer): retry should trigger loading state ( #23417 )
...
* fix(explorer): retry should trigger loading state
* fix(explorer): Solana ping add refreshing state
2022-03-01 11:41:11 -08:00
3e48cc4e00
chore: bump dialoguer from 0.9.0 to 0.10.0 ( #23413 )
...
* chore: bump dialoguer from 0.9.0 to 0.10.0
Bumps [dialoguer](https://github.com/mitsuhiko/dialoguer ) from 0.9.0 to 0.10.0.
- [Release notes](https://github.com/mitsuhiko/dialoguer/releases )
- [Changelog](https://github.com/mitsuhiko/dialoguer/blob/master/CHANGELOG.md )
- [Commits](https://github.com/mitsuhiko/dialoguer/compare/v0.9.0...v0.10.0 )
---
updated-dependencies:
- dependency-name: dialoguer
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-03-01 19:31:03 +00:00
ce4d579499
chore: bump serial_test from 0.5.1 to 0.6.0 ( #23414 )
...
Bumps [serial_test](https://github.com/palfrey/serial_test ) from 0.5.1 to 0.6.0.
- [Release notes](https://github.com/palfrey/serial_test/releases )
- [Commits](https://github.com/palfrey/serial_test/compare/v0.5.1...v0.6.0 )
---
updated-dependencies:
- dependency-name: serial_test
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-01 12:13:40 -07:00
f6a06826d8
feat(explorer): add Solana Ping to cluster stats page ( #23239 )
...
* feat: add Solana Ping to explorer
* fix: remove br tags in label
2022-03-01 10:50:48 -08:00
93c5642f9f
chore: bump rcgen from 0.9.1 to 0.9.2 ( #23406 )
...
Bumps [rcgen](https://github.com/est31/rcgen ) from 0.9.1 to 0.9.2.
- [Release notes](https://github.com/est31/rcgen/releases )
- [Changelog](https://github.com/est31/rcgen/blob/master/CHANGELOG.md )
- [Commits](https://github.com/est31/rcgen/compare/v0.9.1...v0.9.2 )
---
updated-dependencies:
- dependency-name: rcgen
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-03-01 10:09:14 -07:00
1282277126
bumps up crds-shards-bits ( #23220 )
...
The commit adjust CRDS_SHARDS_BITS up to be in-line with mask_bits in
gossip pull request. This will avoid redundant filtering of irrelevant
crds entries when responding to pull requests.
2022-03-01 15:14:11 +00:00
454e82683e
refactor rent test ( #23392 )
2022-03-01 08:47:09 -06:00
6b2683f7da
refactor test ( #23384 )
2022-03-01 08:22:10 -06:00
ec798f5aad
chore: bump anyhow from 1.0.53 to 1.0.55 ( #23402 )
...
* chore: bump anyhow from 1.0.53 to 1.0.55
Bumps [anyhow](https://github.com/dtolnay/anyhow ) from 1.0.53 to 1.0.55.
- [Release notes](https://github.com/dtolnay/anyhow/releases )
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.53...1.0.55 )
---
updated-dependencies:
- dependency-name: anyhow
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-03-01 00:16:26 -07:00
3b5b71ce44
Improve UX querying rpc for blocks at or before the snapshot from boot ( #23403 )
...
* Bump first-available block to first complete block
* Remove obsolete purges in tests (PrimaryIndex toggling no longer in use
* Check first-available block in Rpc check_slot_cleaned_up
2022-02-28 23:57:41 -07:00
19448ba078
Allow sub-rent-exempt-minimum transfers to 1nc1nerator
( #23382 )
...
* Add failing test
* Allow small burns to incinerator
* Use check_id method
2022-02-28 23:56:34 -07:00
e3fa55f88d
chore: bump hmac from 0.12.0 to 0.12.1 ( #23396 )
...
* chore: bump hmac from 0.12.0 to 0.12.1
Bumps [hmac](https://github.com/RustCrypto/MACs ) from 0.12.0 to 0.12.1.
- [Release notes](https://github.com/RustCrypto/MACs/releases )
- [Commits](https://github.com/RustCrypto/MACs/compare/hmac-v0.12.0...hmac-v0.12.1 )
---
updated-dependencies:
- dependency-name: hmac
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-03-01 02:07:33 +00:00
5877e38baa
docs: resolve svgbob binary
2022-02-28 17:33:30 -07:00
0de7b757d0
Update durable-nonce docs ( #23397 )
...
* Use parsable blockhash string
* Remove deprecated cli command from docs
2022-02-28 17:03:26 -07:00
6dfd1b9883
chore: bump quinn from 0.8.0 to 0.8.1 ( #23380 )
...
Bumps [quinn](https://github.com/quinn-rs/quinn ) from 0.8.0 to 0.8.1.
- [Release notes](https://github.com/quinn-rs/quinn/releases )
- [Commits](https://github.com/quinn-rs/quinn/compare/0.8.0...0.8.1 )
---
updated-dependencies:
- dependency-name: quinn
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-02-28 15:50:58 -07:00
6666f23c01
client: expose creating RpcClient
s with custom RpcSender
impls
2022-02-28 22:04:15 +00:00
f0a235d16f
add comment ( #23378 )
2022-02-28 15:18:42 -06:00
4eeb9f4648
acct idx comments ( #23377 )
2022-02-28 15:00:53 -06:00
f814c4a082
ci: move all formerly-default-queue jobs to solana queue
2022-02-28 13:50:34 -07:00
911c5a8362
chore: bump cipher from 0.3.0 to 0.4.3 ( #23362 )
...
* chore: bump cipher from 0.3.0 to 0.4.3
Bumps [cipher](https://github.com/RustCrypto/traits ) from 0.3.0 to 0.4.3.
- [Release notes](https://github.com/RustCrypto/traits/releases )
- [Commits](https://github.com/RustCrypto/traits/compare/cipher-v0.3.0...cipher-v0.4.3 )
---
updated-dependencies:
- dependency-name: cipher
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
* Update Cargo.lock files
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2022-02-28 11:06:18 -07:00
22d2a40133
Updating known validators in the docs for testnet
2022-02-28 09:57:57 -07:00
611d745241
refactor rent_due for normal case of exempt ( #23350 )
2022-02-28 09:42:42 -06:00
ee3fc39f1c
Refactor: Prepare stake_instruction.rs to remove KeyedAccount
s ( #23375 )
...
* Adds instruction_account_indices to stake instruction.
* Uses instruction_account_indices in stake instruction.
* Replaces get_sysvar_with_account_check by get_sysvar_with_account_check2 in stake instruction.
* Adds check_number_of_instruction_accounts().
2022-02-28 16:24:40 +01:00
fe18ea35a2
chore: bump cargo_metadata from 0.14.1 to 0.14.2 ( #23365 )
...
Bumps [cargo_metadata](https://github.com/oli-obk/cargo_metadata ) from 0.14.1 to 0.14.2.
- [Release notes](https://github.com/oli-obk/cargo_metadata/releases )
- [Commits](https://github.com/oli-obk/cargo_metadata/compare/0.14.1...0.14.2 )
---
updated-dependencies:
- dependency-name: cargo_metadata
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-02-28 05:46:47 +00:00
30dafc7135
list -> slot_list ( #23355 )
2022-02-27 23:08:58 -06:00
186bb19965
chore:(deps): bump url-parse from 1.5.7 to 1.5.10 in /explorer ( #23371 )
...
Bumps [url-parse](https://github.com/unshiftio/url-parse ) from 1.5.7 to 1.5.10.
- [Release notes](https://github.com/unshiftio/url-parse/releases )
- [Commits](https://github.com/unshiftio/url-parse/compare/1.5.7...1.5.10 )
---
updated-dependencies:
- dependency-name: url-parse
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-28 04:33:23 +00:00
87b76aeeb0
Align the solana validators
output columns for -ud,-ut, and -um
2022-02-27 16:54:13 -08:00
a57c7ba5df
Change comments ( #23366 )
...
* change url
* change comment
Co-authored-by: cosuke2000 <saitou@matchingood.co.jp >
2022-02-27 10:36:25 -07:00
2efb909051
chore: bump fd-lock from 3.0.3 to 3.0.4 ( #23347 )
...
Bumps [fd-lock](https://github.com/yoshuawuyts/fd-lock ) from 3.0.3 to 3.0.4.
- [Release notes](https://github.com/yoshuawuyts/fd-lock/releases )
- [Commits](https://github.com/yoshuawuyts/fd-lock/commits/v3.0.4 )
---
updated-dependencies:
- dependency-name: fd-lock
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-02-27 08:16:43 +00:00
418076ab3e
chore: bump ed25519-dalek-bip32 from 0.1.1 to 0.2.0 ( #23346 )
...
* chore: bump ed25519-dalek-bip32 from 0.1.1 to 0.2.0
Bumps [ed25519-dalek-bip32](https://github.com/jpopesculian/ed25519-dalek-bip32 ) from 0.1.1 to 0.2.0.
- [Release notes](https://github.com/jpopesculian/ed25519-dalek-bip32/releases )
- [Commits](https://github.com/jpopesculian/ed25519-dalek-bip32/commits/v0.2.0 )
---
updated-dependencies:
- dependency-name: ed25519-dalek-bip32
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
* Bump derivation-path
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 >
2022-02-27 00:15:04 +00:00
36484f4f08
Prevent new RentPaying state created by paying fees ( #23358 )
...
* Add failing test
* Check fee-payer rent-state change on load
* Add more test cases
* Review comments
2022-02-26 12:10:01 -07:00
569d531573
Code cleanup: In vote and stake processor ( #23353 )
...
* Enable benchmarks of vote processor.
* Inlines from_keyed_account() in stake instruction.
2022-02-25 21:05:05 +01:00
0ad4757159
plumbing for 'other_slot' in 'update_index' ( #23330 )
2022-02-25 12:58:08 -06:00
e2fa6a0f7a
Replaces KeyedAccount
by BorrowedAccount
in vote processor ( #23348 )
...
* Use instruction_account_indices, get_sysvar_with_account_check2 and instruction_context.get_signers in vote processor.
* Replaces KeyedAccount by BorrowedAccount in vote processor.
* Removes KeyedAccount from benches in vote processor.
2022-02-25 17:22:54 +01:00
533eca3b4c
Simplify replay_blockstore_into_bank() ( #23282 )
2022-02-25 06:57:04 -06:00
ff04a5b989
changing permission on "buildkite-pipeline-in-disk"
2022-02-25 15:35:47 +05:30
cf18292fd3
adding a new script with in_disk_env var
2022-02-25 15:28:04 +05:30
92216c01ff
Create buildkite-pipeline-in-disk.sh
2022-02-25 15:26:45 +05:30
0e5a58b883
adding a copy of "pipeline-upload.sh"
...
for the new pipeline
2022-02-25 15:25:37 +05:30
d4292774c5
checks
2022-02-25 08:05:28 +00:00
97b5a71ceb
bump rust to 1.59.0
2022-02-25 08:05:28 +00:00
804fac8ea9
Removes KeyedAccount from tests in vote processor. ( #23333 )
2022-02-25 08:21:28 +01:00
985af71241
chore: bump sha2 from 0.10.1 to 0.10.2 ( #23343 )
...
* chore: bump sha2 from 0.10.1 to 0.10.2
Bumps [sha2](https://github.com/RustCrypto/hashes ) from 0.10.1 to 0.10.2.
- [Release notes](https://github.com/RustCrypto/hashes/releases )
- [Commits](https://github.com/RustCrypto/hashes/compare/sha2-v0.10.1...sha2-v0.10.2 )
---
updated-dependencies:
- dependency-name: sha2
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-02-24 23:57:42 -07:00
98f059e89c
chore: bump reqwest from 0.11.6 to 0.11.9 ( #23337 )
...
* chore: bump reqwest from 0.11.6 to 0.11.9
Bumps [reqwest](https://github.com/seanmonstar/reqwest ) from 0.11.6 to 0.11.9.
- [Release notes](https://github.com/seanmonstar/reqwest/releases )
- [Changelog](https://github.com/seanmonstar/reqwest/blob/master/CHANGELOG.md )
- [Commits](https://github.com/seanmonstar/reqwest/compare/v0.11.6...v0.11.9 )
---
updated-dependencies:
- dependency-name: reqwest
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-02-24 22:40:01 -07:00
274a6a5ccb
Narrow scope of client_targets build
2022-02-24 21:08:43 -08:00
2d55a8e1c3
Refresh blockhash for fee calculations ( #23338 )
2022-02-24 21:21:38 -07:00
3f35d7fad9
chore: bump rustls from 0.20.2 to 0.20.4 ( #23324 )
...
* chore: bump rustls from 0.20.2 to 0.20.4
Bumps [rustls](https://github.com/rustls/rustls ) from 0.20.2 to 0.20.4.
- [Release notes](https://github.com/rustls/rustls/releases )
- [Changelog](https://github.com/rustls/rustls/blob/main/RELEASE_NOTES.md )
- [Commits](https://github.com/rustls/rustls/compare/v/0.20.2...v/0.20.4 )
---
updated-dependencies:
- dependency-name: rustls
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-02-24 19:57:35 -07:00
7111918596
solana gossip
now includes feature set information
2022-02-24 18:04:38 -08:00
5e0086c1ee
followup safety checks for #23295
2022-02-24 17:50:58 -07:00
d1f141484e
Update derivation path integer sign specification ( #23336 )
...
Previously, `ACCOUNT` and `CHANGE` were specified as being positive integers, but since both can assume a value of 0 (as in the given example), they should be specified as nonnegative integers
2022-02-24 16:49:58 -07:00
db12d90735
chore: bump ouroboros from 0.13.0 to 0.14.2 ( #23328 )
...
* chore: bump ouroboros from 0.13.0 to 0.14.2
Bumps [ouroboros](https://github.com/joshua-maros/ouroboros ) from 0.13.0 to 0.14.2.
- [Release notes](https://github.com/joshua-maros/ouroboros/releases )
- [Commits](https://github.com/joshua-maros/ouroboros/commits/0.14.2 )
---
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
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot-buildkite <dependabot-buildkite@noreply.solana.com >
2022-02-24 15:56:13 -07:00
2207e49633
all TestValdiators act like validators ( #23318 )
2022-02-24 12:12:47 -06:00
39c86c6c44
fmt ( #23329 )
2022-02-24 12:12:29 -06:00
6c53f7f588
chore: bump tokio from 1.16.1 to 1.17.0 ( #23322 )
...
* chore: bump tokio from 1.16.1 to 1.17.0
Bumps [tokio](https://github.com/tokio-rs/tokio ) from 1.16.1 to 1.17.0.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.16.1...tokio-1.17.0 )
---
updated-dependencies:
- dependency-name: tokio
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-02-24 10:54:50 -07:00
2b0f16e7c3
slot per account in StorableAccounts ( #23313 )
2022-02-24 10:34:38 -06:00
017170c99d
DiskIdx: new items are not dirty by default ( #23123 )
2022-02-24 10:17:35 -06:00
a14c7c37ee
Replaces KeyedAccount by BorrowedAccount in the config processor. ( #23302 )
2022-02-24 09:44:25 +01:00
9d2232306e
chore: bump tungstenite from 0.16.0 to 0.17.2 ( #23268 )
...
* chore: bump tungstenite from 0.16.0 to 0.17.2
Bumps [tungstenite](https://github.com/snapview/tungstenite-rs ) from 0.16.0 to 0.17.2.
- [Release notes](https://github.com/snapview/tungstenite-rs/releases )
- [Changelog](https://github.com/snapview/tungstenite-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/snapview/tungstenite-rs/compare/v0.16.0...v0.17.2 )
---
updated-dependencies:
- dependency-name: tungstenite
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
* Bump tokio-tungstenite in tandem
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2022-02-24 01:39:55 -07:00
12bddbc4ec
Use rocksdb property constant instead of local constant ( #23147 )
2022-02-23 23:02:11 -06:00
fcaf01e243
Add test to check destination for stake splitting ( #23303 )
2022-02-23 22:47:57 -06:00
856d29c7b7
chore: bump parking_lot from 0.11.2 to 0.12.0 ( #23087 )
...
* chore: bump parking_lot from 0.11.2 to 0.12.0
Bumps [parking_lot](https://github.com/Amanieu/parking_lot ) from 0.11.2 to 0.12.0.
- [Release notes](https://github.com/Amanieu/parking_lot/releases )
- [Changelog](https://github.com/Amanieu/parking_lot/blob/master/CHANGELOG.md )
- [Commits](https://github.com/Amanieu/parking_lot/compare/0.11.2...0.12.0 )
---
updated-dependencies:
- dependency-name: parking_lot
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
* Sync parking_lot
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2022-02-23 20:07:07 -07:00
6a0d2fcfa7
docs: post merge review for #23286
2022-02-24 01:53:54 +00:00
4bc440666a
add arg --disable_accounts_disk_index ( #23308 )
2022-02-23 18:07:24 -06:00
c0d0724be0
clippy ( #23310 )
2022-02-23 18:07:00 -06:00
7ee549e5ae
fix params for store_accounts_frozen ( #23312 )
2022-02-23 17:40:51 -06:00
227df52213
update comment ( #23314 )
2022-02-23 17:33:06 -06:00
99a057927c
started_from_validator, ignore env var for cli ( #23309 )
2022-02-23 17:15:43 -06:00
cafc18c3f9
update_index uses ReadableAccount to reduce params ( #23305 )
2022-02-23 17:01:23 -06:00
0dd36f3201
Grammar corrections PR#23206 Review Fixes ( #23291 )
...
* Accounts page grammar edits
* calling-between-programs page grammar edits
* PR #23206 "Grammar Corrections" review fixes
* Update docs/src/developing/clients/jsonrpc-api.md
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
* Update docs/src/developing/programming-model/accounts.md
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2022-02-23 15:34:13 -07:00
3ea9ca35fa
grant public access to ProofError enum
2022-02-23 14:22:42 -08:00
a245efe83d
trait for acct data with slot per item ( #23285 )
2022-02-23 15:22:29 -06:00
c81dd602c4
Hack fix for ICE as seen in CI
2022-02-23 11:17:39 -07:00
084fb79ad8
Unhide AccountsDb plugin parameters ( #23284 )
...
* Unhide AccountsDb plugin parameters
* addressed feedback from Trent
2022-02-23 10:01:14 -08:00
2e3eafaa11
RPC Client: Use Tokio's RwLock instead of std to make using in async easier ( #23299 )
2022-02-23 09:33:32 -08:00
2996f1f783
add comments ( #23275 )
2022-02-23 10:53:11 -06:00
05f04a22b7
Fix small problems in transaction-dos tool ( #23234 )
...
* Fix small problems in transaction-dos tool
2022-02-23 17:17:06 +01:00
d0e85c293f
Fix rustfmt check ( #23296 )
2022-02-23 16:38:53 +08:00
6872fc79ba
Derive Clone for AeCiphertext ( #23293 )
2022-02-22 22:47:26 -08:00
0a3a18744f
Update the consumed compute units cost for hashing syscalls
...
This change prevents zero-cost computation of hash functions on
unbound number of zero-length slices of data. The cost for each slice
is at least equal to the base cost of a memory operation, but could be
more for longer slices.
2022-02-23 02:32:41 +00:00
09d064c090
docs: clarify spl token account creation handling for exchange integrations
2022-02-23 00:22:44 +00:00
ff604efc44
Grammar corrections ( #23206 )
...
* Accounts page grammar edits
* Runtime page grammar edits
* calling-between-programs page grammar edits
* transactions page grammar edits
* small changes with e.g. following Chicago Manual
2022-02-22 15:23:47 -08:00
20d031e2b8
Refactor ExecuteTimings w/ enum-indexed array ( #23085 )
2022-02-22 14:46:56 -08:00
5766567e9f
ci: revert cache version hack
2022-02-22 19:01:29 +00:00
88e1192c6b
Refactor new() and default() for CostTracker ( #23267 )
2022-02-22 10:44:23 -06:00
cadc2de77d
add github workflow to check solana-client compilation on android/ios targets
2022-02-22 09:05:51 -07:00
8b32e80ee2
DiskIdx: rename 'remove' to 'evict' ( #23188 )
2022-02-22 09:40:25 -06:00
7ebf398ed7
AcctIdx: env var "SOLANA_TEST_ACCOUNTS_INDEX_MEMORY_LIMIT_MB" ( #23194 )
...
* AcctIdx: env var "SOLANA_TEST_ACCOUNTS_INDEX_MEMORY_LIMIT_MB"
* ignore env var when starting as validator
* Update runtime/src/bucket_map_holder.rs
Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com >
Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com >
2022-02-22 09:40:12 -06:00
ac70070e5b
Add MINIMUM_STAKE_DELEGATION constant ( #23259 )
...
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2022-02-22 09:21:23 -06:00
f00016b647
add support for time in force order type ( #23255 )
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com >
2022-02-22 21:12:02 +08:00
bcda74f42f
Fix builtin handling on epoch boundaries ( #23256 )
2022-02-22 20:54:08 +08:00
c97f34a0fd
Add script for running nightly rustfmt on all workspaces ( #23244 )
...
* Add script for running nightly rustfmt on all workspaces
* invalidate ci cache
2022-02-22 11:59:06 +08:00
72c68695b5
Do not keep oldest full snapshot
2022-02-21 17:10:31 -07:00
d0d256ee9a
Bump rbpf to v0.2.24 ( #23263 )
2022-02-21 23:38:12 +01:00
7e08ae1d0c
Revert "Add simulation detection countermeasure ( #22880 )" ( #23261 )
...
This reverts commit c42b80f099
.
2022-02-21 21:15:37 +00:00
ebe3d2d59d
fix: simulateTransaction accounts items can be null ( #23229 )
...
* fix: simulated accounts can be null
* Use Missing rather than token program id
Co-authored-by: Arrowana <8245419+Arrowana@users.noreply.github.com >
2022-02-21 14:20:11 +08:00
04d23a1597
fix memory ordering in append_vec ( #23215 )
2022-02-20 20:30:49 -06:00
42bdf1d864
chore:(deps): bump url-parse from 1.5.1 to 1.5.7 in /explorer ( #23245 )
...
Bumps [url-parse](https://github.com/unshiftio/url-parse ) from 1.5.1 to 1.5.7.
- [Release notes](https://github.com/unshiftio/url-parse/releases )
- [Commits](https://github.com/unshiftio/url-parse/compare/1.5.1...1.5.7 )
---
updated-dependencies:
- dependency-name: url-parse
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-19 11:34:37 +00:00
8c872e9ce0
(LedgerStore/FIFO) Refactor FIFO options and sanity check. ( #23131 )
2022-02-19 00:58:38 -08:00
70ebab2c82
Add rustfmt.toml and cargo fmt
( #23238 )
...
* fmt
* formatted
Co-authored-by: Lucas B <buffalu@jito.network >
2022-02-19 13:32:29 +08:00
1add82aa9e
(Ledger Store Benchmark) Add flags for checking shred storage size. ( #22451 )
2022-02-18 19:35:28 -08:00
e2d0ede630
cli: accept 'system' program id mnemonic for with seed
2022-02-18 19:51:18 -07:00
dcd0a39cb6
cli: coerce with seed program id mnemonics to uppercase
2022-02-18 19:51:18 -07:00
1719d2349f
Skip adding builtins if they will be removed ( #23233 )
...
* Add failing test for precompile transition
* Skip adding builtins if they will be removed
* cargo clean
* nits
* fix abi check
* remove workaround
Co-authored-by: Jack May <jack@solana.com >
2022-02-18 18:36:59 -08:00
ee7e411d68
Replaces KeyedAccount
by BorrowedAccount
in system_instruction_processor
. ( #23217 )
...
* Adds InstructionContext::check_number_of_instruction_accounts() and InstructionContext::get_instruction_account_key().
Bases check_sysvar_account() on instuction account indices.
* Adds instruction_account_indices enums to system_instruction_processor.
* Reorders parameters and adds InstructionContext.
* Replaces KeyedAccount by BorrowedAccount in system_instruction_processor (part 1).
* Replaces KeyedAccount by BorrowedAccount in system_instruction_processor (part 2).
* Replaces KeyedAccount by BorrowedAccount in system_instruction_processor (part 3).
* Replaces KeyedAccount by BorrowedAccount in system_instruction_processor (part 4).
* Replaces KeyedAccount by BorrowedAccount in system_instruction_processor (part 5).
* Code cleanup
2022-02-19 02:06:33 +01:00
970f543ef6
Precompiles owned by the native loader ( #23237 )
2022-02-18 15:41:59 -08:00
1351c1bbcf
Explorer: Add ed25519 sigverify precompile to search results ( #23228 )
2022-02-18 07:18:01 +00:00
c696944d36
Add --locked to spl-token-cli install ( #23223 )
2022-02-17 22:09:29 -06:00
5726f42a7c
feat(stake-program): support splitWithSeed
( #23213 )
2022-02-17 12:21:07 -07:00
ae7fedf0b1
Extend buildkite cargo cache name to include host side rust version
2022-02-17 09:53:51 -08:00
b4100a9b5d
Add additional zkp for fee ( #23112 )
...
* zk-token-sdk: add equality proof for fee
* zk-token-sdk: tweak some naming conventions for readability
* zk-token-sdk: add verify withdraw withheld instruction
* zk-token-sdk: add test for withdraw withheld verification
* zk-token-sdk: more renaming of variables for readability
* zk-token-sdk: cargo fmt
* zk-token-sdk: minor
* zk-token-sdk: resolve bpf compilation warnings
* zk-token-sdk: minor update to doc
2022-02-17 12:45:07 -05:00
1a68f81f89
Replaces KeyedAccount
by BorrowedAccount
in nonce_keyed_account
. ( #23214 )
...
* Adds get_sysvar_with_account_check2 for ABIv2.
* Replaces get_signers() and get_sysvar_with_account_check() in system_instruction_processor.
* Replaces KeyedAccount by BorrowedAccount in nonce_keyed_account.
2022-02-17 17:36:55 +01:00
da00b39f4f
Cleanup: get_program_key() and get_loader_key() in TransactionContext ( #23191 )
...
* Moves TransactionContext::get_program_key() to InstructionContext::get_program_key().
* Removes TransactionContext::get_loader_key().
* Test full program and loader executable account chain in BPF loader.
2022-02-17 10:16:28 +01:00
619335df1a
Add execute timings ( #23097 )
2022-02-17 01:14:32 -05:00
fa680a35ea
docs: remove wallet ads
2022-02-16 22:19:10 -07:00
b66a304e7b
docs: fix typos ( #22320 )
2022-02-16 22:57:22 -06:00
3c235503de
remove block limit for bench tests to avoid skew test result ( #23204 )
2022-02-17 03:44:34 +00:00
a102453bae
accounts_index: Add SPL Token account indexing for token-2022 accounts ( #23043 )
2022-02-16 16:23:25 -08:00
bca1d51735
Fix flaky optimistic confirmation tests ( #23178 )
2022-02-16 16:13:58 -05:00
6e28a03c73
chore: bump rcgen from 0.8.14 to 0.9.1 ( #23148 )
...
* chore: bump rcgen from 0.8.14 to 0.9.1
Bumps [rcgen](https://github.com/est31/rcgen ) from 0.8.14 to 0.9.1.
- [Release notes](https://github.com/est31/rcgen/releases )
- [Changelog](https://github.com/est31/rcgen/blob/master/CHANGELOG.md )
- [Commits](https://github.com/est31/rcgen/compare/v0.8.14...v0.9.1 )
---
updated-dependencies:
- dependency-name: rcgen
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-02-16 12:33:56 -07:00
813725dfec
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
2022-02-16 18:48:55 +00:00
de30699fa5
validator: invert vote account sanity check arg
2022-02-16 10:05:46 -07:00
aeda27433f
rpc: genericize client constructors
2022-02-16 10:05:46 -07:00
4213ece7bd
rpc: make getGenesisHash
part of minimal api
2022-02-16 10:05:46 -07:00
f7118258d6
test-validator: use JsonRpcConfig::default_for_test
for consistency
2022-02-16 10:05:46 -07:00
aaf657297f
Update jsonrpc-api.md ( #23190 )
2022-02-16 16:55:39 +00:00
83d31c9e65
shrink batches when over 80% of the space is wasted ( #23066 )
...
* shrink batches when over 80% of the space is wasted
2022-02-16 08:18:17 -08:00
115d71536b
forward_buffered_packets return packet count in error path ( #23167 )
2022-02-16 07:46:32 -08:00
c2435363f3
DiskIdx: fix race condition with holding ranges in mem ( #23158 )
2022-02-16 09:25:00 -06:00
7939fdc3e5
Minor refactor on Shreds column family descriptor construction. ( #23103 )
2022-02-16 00:29:11 -08:00
577fa4ec0c
Generate full snapshots 4x faster to keep incremental snapshots nice and small
2022-02-15 21:09:21 -08:00
88b66ae3a8
Allow cli users to authorize Staker signed by Withdrawer ( #23146 )
2022-02-15 22:08:53 -07:00
a6d736572c
solana-validator set-identity
now supports the --require-tower
flag
2022-02-15 19:45:00 -08:00
6ae87109d2
Improve performance of root slot in slot hashes history check ( #22990 )
...
* Fold the root slot check into loop for performance
* Add assert in case vote state root is not older than slot hashes
2022-02-15 20:17:56 -07:00
56e23432b0
rbpf-cli: only run static analysis when needed ( #23110 )
2022-02-16 02:35:05 +00:00
64f5e57666
Restore wait_for_nonzero_fees to TestValidatorGenesis::start_with_mint_address
2022-02-15 18:03:37 -08:00
527f62c744
Add --skip-new-snapshot-check to exit and wait-for-restart-window subcommands
2022-02-15 16:22:31 -08:00
917113914d
Remove references to instruction parsing in SPL Token -> Depositing section ( #23161 )
2022-02-15 23:45:00 +00:00
43393ea45d
assert on AcctInfo.store_id with cached store ( #21952 )
2022-02-15 15:22:36 -06:00
b44f40ee3a
solana-validator monitor
now reports identity changes
2022-02-15 13:12:30 -08:00
03bf66a51b
flag end-of-slot when poh bank is gone
2022-02-15 15:01:27 -06:00
ab92578b02
Fix the flaky test test_restart_tower_rollback ( #23129 )
...
* Add flag to disable voting until a slot to avoid duplicate voting
* Fix the tower rollback test and remove it from flaky.
2022-02-15 13:19:34 -07:00
bb50259956
Typo fix ( #23152 )
...
Fixed a type in the documentation.
2022-02-15 19:47:19 +00:00
bf689303d4
rbpf-cli: support json output
2022-02-15 11:44:33 -08:00
197f42d346
chore: bump zstd from 0.9.2+zstd.1.5.1 to 0.10.0+zstd.1.5.2 ( #23089 )
...
* chore: bump zstd from 0.9.2+zstd.1.5.1 to 0.10.0+zstd.1.5.2
Bumps [zstd](https://github.com/gyscos/zstd-rs ) from 0.9.2+zstd.1.5.1 to 0.10.0+zstd.1.5.2.
- [Release notes](https://github.com/gyscos/zstd-rs/releases )
- [Commits](https://github.com/gyscos/zstd-rs/compare/v0.9.2...v0.10.0 )
---
updated-dependencies:
- dependency-name: zstd
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-02-15 10:56:04 -07:00
a43d04d295
change url ( #23132 )
...
Co-authored-by: cosuke2000 <saitou@matchingood.co.jp >
2022-02-15 10:57:03 -06:00
98707baec2
solana-validator wait-for-restart-window --min-idle-time X
now works
2022-02-15 08:55:47 -08:00
c42b80f099
Add simulation detection countermeasure ( #22880 )
...
* Add simulation detection countermeasures
* Add program and test using TestValidator
* Remove incinerator deposit
* Remove incinerator
* Update Cargo.lock
* Add more features to simulation bank
* Update Cargo.lock per rebase
Co-authored-by: Jon Cinque <jon.cinque@gmail.com >
2022-02-15 13:09:59 +01:00
d2a407a9a7
Update deprecated methods and recommend getBlocksWithLimit ( #23127 )
2022-02-14 23:43:18 -07:00
36167b032c
chore:(deps): bump follow-redirects from 1.14.7 to 1.14.8 in /explorer ( #23126 )
...
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects ) from 1.14.7 to 1.14.8.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases )
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.14.7...v1.14.8 )
---
updated-dependencies:
- dependency-name: follow-redirects
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-15 01:13:27 +00:00
21656c26e7
chore: bump vm2 from 3.9.5 to 3.9.7 in /web3.js ( #23125 )
...
Bumps [vm2](https://github.com/patriksimek/vm2 ) from 3.9.5 to 3.9.7.
- [Release notes](https://github.com/patriksimek/vm2/releases )
- [Changelog](https://github.com/patriksimek/vm2/blob/master/CHANGELOG.md )
- [Commits](https://github.com/patriksimek/vm2/compare/3.9.5...3.9.7 )
---
updated-dependencies:
- dependency-name: vm2
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-15 00:56:42 +00:00
20bc37c9c9
Removes KeyedAccount in tests of system_instruction_processor. ( #23118 )
2022-02-15 00:00:49 +01:00
89f5145f64
Add error message for readlink -f failure ( #23102 )
...
* Add error message for readlink -f failure
2022-02-14 13:16:13 -06:00
d15d495f17
require --no-os-network-limits-test to bypass failed network limit checks ( #22617 )
2022-02-14 07:48:30 -08:00
d6927365ed
explorer: show only AccountHeader for tokens ( #23063 )
2022-02-14 21:53:13 +08:00
22a2a4252a
fix typo ( #23107 )
2022-02-13 08:52:03 -07:00
05b387a852
Update minimum port range due to addition of QUIC port
2022-02-12 08:49:34 -08:00
824446710b
(Ledger Store Benchmark) Enable FIFO compmaction in the benchmark. ( #22162 )
2022-02-12 00:43:25 -08:00
0855cef76c
Proposal for RocksDB Compaction optimized for Solana BlockStore ( #21358 )
2022-02-11 21:46:06 -08:00
69b47915b1
minor fix for handling unsupported opt in script
2022-02-11 20:43:20 -08:00
c04438be4b
Retaining transaction logs when transaction plugin is loaded. ( #22874 )
...
Transaction logs are not being saved to the database through the plugin interface.
Summary of Changes
Retain the transaction logs when transaction notification plugin is loaded.
Fixes #
lijunwangs/solana-accountsdb-plugin-postgres#6
2022-02-11 20:29:07 -08:00
817f47d970
Bump QUIC_PORT_OFFSET to 6 to avoid jostling around other ports
2022-02-11 17:00:31 -08:00
3d9874b95a
Add fees to tx-wide caps ( #22081 )
2022-02-11 16:23:16 -08:00
12dffc105a
Load AccountsDB plugins relative to plugin config ( #23000 )
2022-02-11 15:20:54 -08:00
f7753ce85f
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 >
2022-02-11 11:47:36 -07:00
a75c9378f2
chore: bump semver from 1.0.4 to 1.0.5 ( #23071 )
...
* chore: bump semver from 1.0.4 to 1.0.5
Bumps [semver](https://github.com/dtolnay/semver ) from 1.0.4 to 1.0.5.
- [Release notes](https://github.com/dtolnay/semver/releases )
- [Commits](https://github.com/dtolnay/semver/compare/1.0.4...1.0.5 )
---
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 <dependabot-buildkite@noreply.solana.com >
2022-02-11 11:19:52 -07:00
6399647e64
(Ledger Store) Add code comments for SlotMetaWorkingSetEntry. ( #22662 )
2022-02-11 10:04:26 -08:00
78089941ff
adds validator version to set_panic_hook ( #23082 )
2022-02-11 18:04:10 +00:00
ac13d14e30
chore: bump goauth from 0.10.0 to 0.11.1 ( #23070 )
...
Bumps [goauth](https://github.com/durch/rust-goauth ) from 0.10.0 to 0.11.1.
- [Release notes](https://github.com/durch/rust-goauth/releases )
- [Commits](https://github.com/durch/rust-goauth/commits )
---
updated-dependencies:
- dependency-name: goauth
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-11 10:50:21 -07:00
c078ca3fb3
uses sendmmsg in streamer ( #23062 )
...
packet::send_to sends packets one by one:
https://github.com/solana-labs/solana/blob/9213fcb11/streamer/src/packet.rs#L63-L75
sendmmsg uses a single system call for multiple messages:
https://github.com/solana-labs/solana/blob/9213fcb11/streamer/src/sendmmsg.rs#L94
2022-02-11 13:36:50 +00:00
34443a238e
Add --full-rpc-api to run.sh ( #23072 )
2022-02-11 20:38:32 +09:00
2f9e30a1f7
Introduce slot-specific packet metrics ( #22906 )
2022-02-11 03:07:45 -05:00
4bd6a231d2
mention staking reward in getInflationReward doc ( #23073 )
2022-02-11 03:57:26 +00:00
e4a1799334
fix typos in ledge code comments ( #23068 )
2022-02-10 20:43:44 -07:00
59e64d5e99
chore: bump raptorq from 1.6.4 to 1.6.5 ( #23042 )
...
Bumps [raptorq](https://github.com/cberner/raptorq ) from 1.6.4 to 1.6.5.
- [Release notes](https://github.com/cberner/raptorq/releases )
- [Commits](https://github.com/cberner/raptorq/compare/v1.6.4...v1.6.5 )
---
updated-dependencies:
- dependency-name: raptorq
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-02-10 19:07:07 -07:00
9e87eb5f71
chore: bump tokio from 1.15.0 to 1.16.1 ( #23051 )
...
* chore: bump tokio from 1.15.0 to 1.16.1
Bumps [tokio](https://github.com/tokio-rs/tokio ) from 1.15.0 to 1.16.1.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.15.0...tokio-1.16.1 )
---
updated-dependencies:
- dependency-name: tokio
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-02-10 19:06:55 -07:00
9213fcb11b
Introduce experimental FIFO-compaction option for shreds in blockstore ( #22140 )
2022-02-10 11:34:03 -08:00
0a1ab945bc
Move cap_accounts_data_len feature gate only around new error ( #23048 )
2022-02-10 11:57:00 -06:00
d5dec989b9
Enforce tx metadata upload with static types ( #23028 )
2022-02-10 13:28:18 +08:00
2ca7ae8e30
Update rocksdb to 0.18.0 release ( #23031 )
2022-02-09 21:51:56 -06:00
47e4291303
add Debug to RentResult ( #23044 )
2022-02-09 18:07:36 -06:00
9d036be61b
chore: bump libc from 0.2.115 to 0.2.117 ( #23034 )
...
* chore: bump libc from 0.2.115 to 0.2.117
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.115 to 0.2.117.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.115...0.2.117 )
---
updated-dependencies:
- dependency-name: libc
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-02-09 16:49:44 -07:00
a7598b6d78
Add deactivate-feature feature to test validator cli ( #23041 )
2022-02-09 13:45:24 -08:00
57a9146fa1
tpu docs ( #23035 )
2022-02-09 21:58:26 +01:00
67f6787f7a
Enable incremental snapshots by default ( #22938 )
...
Co-authored-by: Michael Vines <mvines@gmail.com >
2022-02-09 13:26:35 -06:00
226a71f073
Refactor: Use instruction_trace instead of instruction_context_stack ( #22988 )
...
* Moves stack_height of the instruction_trace into InstructionContext.
* Uses nesting_level instead of stack_height internally in transaction_context.rs
* Uses the instruction_trace instead of the instruction_context_stack internally.
* Adds feature gate: record_instruction_in_transaction_context_push.
2022-02-09 20:04:49 +01:00
e545828fc5
chore: bump borsh from 0.9.2 to 0.9.3 ( #23033 )
...
* chore: bump borsh from 0.9.2 to 0.9.3
Bumps [borsh](https://github.com/near/borsh-rs ) from 0.9.2 to 0.9.3.
- [Release notes](https://github.com/near/borsh-rs/releases )
- [Changelog](https://github.com/near/borsh-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/near/borsh-rs/compare/v0.9.2...v0.9.3 )
---
updated-dependencies:
- dependency-name: borsh
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-02-09 12:02:57 -07:00
205cd4609b
bank::get_rent_collector_from_parent ( #23016 )
2022-02-09 12:31:58 -06:00
ae175a026b
feat(vote-program): support VoteInstruction::Authorize ( #22978 )
2022-02-09 11:29:49 -07:00
86d465c531
Prepare RPC subsystem for multiple SPL Token program ids
2022-02-09 08:16:00 -08:00
f67a27eeea
Add missing deployment slot check for verifiable build badge ( #23032 )
2022-02-09 18:40:56 +08:00
1b287f1b59
(Ledger Cleanup) Add code comments for ledger_cleanup. ( #22807 )
2022-02-08 22:48:56 -08:00
f334931903
rent: refactor test function ( #23014 )
2022-02-08 22:11:47 -06:00
fb47c1f0a3
consolidate Rent construction in test code ( #23018 )
2022-02-08 21:51:52 -06:00
c7aa7fb66b
Add sbf-tools version to cargo target cache name on CI agents
2022-02-09 03:26:56 +00:00
869cfc9a1c
Return the accounts data len delta after processing messages ( #22986 )
2022-02-08 19:24:47 -06:00
ba2d83f580
fix tests after merge
2022-02-08 16:18:23 -06:00
7aa1fb4e24
1. Persist to blockstore less frequently;
...
2. reduce alpha for EMA to 1 percent to have roughly 200 data points for estimatio
2022-02-08 16:18:23 -06:00
6587dbfa47
use EMA in place of Welford
2022-02-08 16:18:23 -06:00
a25ac1c988
- estimate a program cost as 2 standard deviation above mean
...
- replaced get_average / get_mode with get_default to assign max units to unknown program
2022-02-08 16:18:23 -06:00
c899685cb2
chore: make Connection block tests less brittle ( #23015 )
2022-02-08 14:58:50 -07:00
541b5a4826
Rename struct to imported name ( #22814 )
...
* use imported RpcResponse
* Remove extra map method
* rename result to accounts
* fmt
2022-02-08 12:01:40 -07:00
dcd4ea9111
monitor: Remove getMaxRetransmitSlot RPC method usage
2022-02-08 09:26:34 -08:00
7873175764
zk-token-sdk: fix pod for zk-token transfer ( #22957 )
2022-02-08 12:09:50 -05:00
86cf226395
eliminate separate max root member ( #22943 )
2022-02-08 09:31:32 -06:00
f0f4042680
Put accounts data len updates behind feature gate ( #22918 )
2022-02-08 08:51:16 -06:00
3c65fd7ba3
Disable features programmatically in TestValidatorGenesis ( #22860 )
...
* Supported starting test-validator and disabling features
* Enable starting test validator and removing feature accounts
* Enable deactivating feature accounts
* Enable deactivating feature accounts - updates per PR comments
* Enable deactivating feature accounts - updates per PR comments
* Added more verbosity when key for deactition is either not a Feature or not in genesis_config accounts
2022-02-07 22:00:07 -07:00
e52e48076e
bench should update leader schedule cache ( #22991 )
2022-02-08 02:28:28 +00:00
f2d406ad5d
Fix panic in ProgramTestContext::warp_to_slot() when warping one slot ( #22977 )
...
warp_to_slot() first warps to one slot before desired slot in order to
freeze the bank at warp slot. This would cause issues when warping by
one slot as that would attempt to warp to the same slot and hit a sanity
check assertion.
2022-02-07 16:21:43 -06:00
5acf0f6331
Add feature gate for new vote instruction and plumb through replay ( #21683 )
...
* Add feature gate for new vote instruction and plumb through replay
Add tower versions
* Add check for slot hashes history
* Update is_recent check to exclude voting on hard fork root slot
* Move tower rollback test to flaky and ignore it until #22551 lands
2022-02-07 14:06:19 -08:00
d7fcfee4db
Fix slice length ( #22989 )
2022-02-07 13:54:20 -08:00
b2e475b5c4
clarify that RollingBitField max is exclusive ( #22947 )
2022-02-07 13:40:31 -06:00
a160fc30f2
make max_roots_inclusive clear ( #22942 )
2022-02-07 13:26:53 -06:00
514aab46d9
Search for consecutive ports ( #22979 )
2022-02-07 17:53:40 +01:00
a146f2d853
suppress clippy
2022-02-07 08:02:58 -08:00
c5d8560cdb
updates to address review feedback
2022-02-07 08:02:58 -08:00
dfef68f985
fix build
2022-02-07 08:02:58 -08:00
4de14e530b
Optimize batching of transactions during replay for parallel processing
2022-02-07 08:02:58 -08:00
37afdd1a65
(Ledger Store) Improve comments for blockstore_purge ( #22808 )
2022-02-06 21:56:23 -08:00
c7ca2f41f5
Add some comments for RocksDB option configuration ( #22655 )
2022-02-06 23:28:24 -06:00
eaf2df99c6
Fix typo
...
Fix typo
2022-02-06 08:21:24 -08:00
86c3990c25
Add verified/unverified badge to Program Account view ( #22825 )
...
* Add verified/unverified badge to Program Account view
* Generalize to any number of build verification providers
2022-02-06 18:11:12 +08:00
d2c89213ff
Implement json output for solana ping ( #22959 )
2022-02-05 21:40:12 +00:00
9548ea61e5
bench-streamer improvements ( #22945 )
...
* get the num-recv-sockets working again
* make num producers configurable
2022-02-05 14:13:49 +01:00
ba215e94f6
Refactor: Add AccountKeys struct for static and dynamic message keys ( #22960 )
2022-02-05 20:00:31 +08:00
e05cf4bf97
Bumps solana_rbpf to version v0.2.23 ( #22954 )
2022-02-05 08:51:52 +01:00
4d877567dd
feat(web3.js): support withdraw from Vote account ( #22932 )
2022-02-04 13:37:28 -07:00
96c88d1a5e
Bumps solana_rbpf to version v0.2.22 ( #22923 )
...
* Bumps solana_rbpf to v0.2.22
* Adjusts vm::Config and feature gates.
2022-02-04 21:17:49 +01:00
27aaf9df85
removes VoteTracker::new in favor of VoteTracker::default ( #22941 )
...
VoteTracker::new does not need a bank and is so redundant:
https://github.com/solana-labs/solana/blob/5a230f418/core/src/cluster_info_vote_listener.rs#L103-L107
2022-02-04 19:01:59 +00:00
5a230f418d
Add quic port for accepting transactions ( #22753 )
...
using quinn library
streamer: Sign TLS cert with validator identity key
Handle multiple incoming chunks
2022-02-04 15:27:09 +01:00
a47b76afcc
zk-token-sdk: add verify transfer with fee instruction ( #22924 )
2022-02-04 08:52:49 -05:00
f73b470ec0
fix: swallow error if socket has already been closed ( #22934 )
...
* Swallow error if socket has already been closed
* fix: log error
2022-02-04 19:21:58 +08:00
812b2fff04
Adjust expected instruction counts in assert_instruction_count test ( #22927 )
2022-02-04 01:39:24 +00:00
a9d9a5095b
Bump bpf-tools to v1.23
2022-02-03 15:50:18 -08:00
4bec182b32
Allow buffered packets be consumed if bank is active, regardless leader schedule ( #22913 )
2022-02-03 21:29:41 +00:00
28442aa922
fix: enable maxRetries option to SendOptions ( #22893 )
...
* Web3.js - enable maxRetries option to SendOptions
* Prettier
2022-02-03 11:54:43 -07:00
660f6981c6
Cleanup: TransactionContext ( #22910 )
...
* Adds BorrowedAccount::check_sysvar().
* Adds BorrowedAccount::get_data_mut().
* Implements account resizing in BorrowedAccount.
* Exposes is_signer() and is_writable() in InstructionContext.
* Removes AccountMeta and get_instruction_accounts_metas().
* Makes throwing errors in BorrowedAccount optional.
* Removes result return values from BorrowedAccount.
2022-02-03 17:19:42 +01:00
c16cf9cf8a
Refactor: Use SysvarCache
in all builtin programs ( #22864 )
...
* Replaces from_keyed_account() by SysvarCache in stake instruction.
* Replaces from_keyed_account() by SysvarCache in system instruction processor.
* Removes from_keyed_account().
Moves check_sysvar_keyed_account() into sysvar_cache.rs
* Removes tests which test for incorrectly serialized sysvars.
2022-02-03 13:03:50 +01:00
60af1a4cce
Refactor: Add trait for loading addresses ( #22903 )
2022-02-03 11:00:12 +00:00
cc94a93b56
Safer invoke context ( #22898 )
...
* Safer invoke context
* feedback and rebase with master
2022-02-03 02:34:51 -08:00
bd1850df25
Return actual committed transactions from process_transactions() ( #22802 )
2022-02-03 03:56:36 -05:00
c62f9839a2
test-validator-bin: reinstate full rpc method set
2022-02-03 02:43:03 +00:00
ab02dba96f
Add get_processed_sibling_instruction syscall ( #22859 )
2022-02-02 16:45:57 -08:00
75563f6c7b
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.
2022-02-02 14:16:24 -06:00
58a70d76a3
fix typo in broadcast_duplicates_run.rs ( #22888 )
...
Creat -> Create
2022-02-02 12:29:14 -07:00
dccbddad80
adds reverse lookup index to cluster-nodes ( #22892 )
...
retransmit has to exclude slot leader from set of nodes for each shred;
which currently requires a linear scan:
https://github.com/solana-labs/solana/blob/e3b137066/core/src/cluster_nodes.rs#L238-L242
This commit adds a reverse lookup index to avoid linear scan.
2022-02-02 19:27:50 +00:00
e3b137066d
caches WeightedShuffle struct in ClusterNodes ( #22877 )
...
Instead of reconstructing WeightedShuffle struct for each shred
broadcast or retransmit, we can use the same struct with minimal
mutations.
2022-02-02 15:12:26 +00:00
2fda90e414
docs-ci: prebuild cli bin with output to appease TravisCI hang check
2022-02-02 08:29:57 +00:00
eac4a6df68
rpc: use minimal mode by default
2022-02-01 19:00:06 -07:00
fb0e71946f
Cleanup use declaration ( #22875 )
2022-02-01 23:34:11 +00:00
4bc3a1195f
Use internal function for encoding accounts ( #22822 )
...
* Use internal function for encoding accounts
* fix tests
2022-02-01 14:10:21 -07:00
65f8f43665
Zk instructions pass ( #22851 )
...
* zk-token-sdk: re-organize transcript
* zk-token-sdk: add pod ElGamal group encryption
* zk-token-sdk: add transcript domain separators for sigma proofs
* zk-token-sdk: clean up transfer tx decryption
* zk-token-sdk: resolve encoding issues for transfer
* zk-token-sdk: fix transfer test
* zk-token-sdk: clean up transcript for close account and withdraw instructions
* zk-token-sdk: add transfer with fee instruction
* zk-token-sdk: add transfer with fee instruction
* zk-token-sdk: add pod for cryptographic structs needed for fee
* zk-token-sdk: add pod for fee sigma proof
* zk-token-sdk: fix test for transfer with fee instruction
* zk-token-sdk: add range proof verification for transfer with fee
* zk-token-sdk: add transfer amount decryption for transfer-with-fee
* zk-token-sdk: add proof generation error for instruction
* zk-token-sdk: cargo fmt and clippy
* zk-token-sdk: fix bpf build
2022-02-01 14:11:28 -05:00
c631a3e0e4
up year in license
2022-02-01 08:29:29 -08:00
45e09664b8
removes Rng field from WeightedShuffle struct ( #22850 )
2022-02-01 15:27:23 +00:00
93789ca5e5
Dos local-cluster test ( #22561 )
2022-02-01 15:26:55 +01:00
545c97f903
Clean up before credits_auto_rewind ( #22839 )
...
* Clean up before credits_auto_rewind
* Use `=` intead of `|=` for mutable bool
2022-02-01 22:42:02 +09:00
22f6db2e4f
Cleanup serde snapshot common.rs ( #22854 )
2022-02-01 05:39:53 -06:00
551c24da57
nit: consistent name ( #22857 )
2022-02-01 07:46:04 +00:00
9f1f7aff2b
rpc-sts: dedupe before initial send
2022-01-31 16:50:35 -07:00
29bf1e2529
Small punctuation fix ( #22838 )
2022-01-31 11:21:35 -07:00
d60dac9749
add comment ( #22846 )
2022-01-31 11:40:19 -06:00
fb95fa68a2
cleanup api ( #22845 )
2022-01-31 11:39:23 -06:00
bc800a8d5a
Refactor: Unify SysvarCache
( #22843 )
...
* Unifies SysvarCache filling in the runtime and tests.
Removes new_mock_with_sysvars_and_features()
Removes mock_process_instruction_with_sysvars().
Replaces from_keyed_account() by SysvarCache in vote processor.
* Replaces from_keyed_account() by SysvarCache in BPF loader.
2022-01-31 17:53:50 +01:00
6a0c45fa2e
chore: fixes typo ( #22830 )
2022-01-31 09:43:46 -07:00
604ca9316c
includes zero weighted entries in WeightedShuffle ( #22829 )
...
Current WeightedShuffle implementation excludes zero weighted entries
from the shuffle:
https://github.com/solana-labs/solana/blob/13e631dcf/gossip/src/weighted_shuffle.rs#L29-L30
Though mathematically this might make more sense, for our use-cases
(turbine specifically), this results in less efficient code:
https://github.com/solana-labs/solana/blob/13e631dcf/core/src/cluster_nodes.rs#L409-L430
This commit changes the implementation so that zero weighted indices are
also included in the shuffle but appear only at the end after non-zero
weighted indices.
2022-01-31 16:23:50 +00:00
17b4563a6f
closed explorer travis.yml after giving workflow permisssion in github action
2022-01-31 13:39:20 +05:30
bf8ac87a78
opened github action after updated workflow permissions
2022-01-31 13:36:23 +05:30
13e631dcf7
Rename explorer_production.yml.txt to explorer_production.yml
2022-01-29 21:02:09 +05:30
ed61d249e0
testing builds of explorer on travis
2022-01-29 20:44:33 +05:30
24de5506c2
reverting back to travis
...
security issues
2022-01-29 20:44:28 +05:30
af8970ad7a
reverting back to travis
...
security issues
2022-01-29 20:39:23 +05:30
9cc456937c
Update .travis.yml
2022-01-29 20:38:06 +05:30
aaae5b3ba6
(Ledger Store) Add comment blocks for six pub functions in blockstore.rs ( #22476 )
2022-01-28 22:25:07 -08:00
fde5b77f6e
chore:(deps): bump ws from 6.2.1 to 6.2.2 in /explorer ( #22823 )
...
Bumps [ws](https://github.com/websockets/ws ) from 6.2.1 to 6.2.2.
- [Release notes](https://github.com/websockets/ws/releases )
- [Commits](https://github.com/websockets/ws/compare/6.2.1...6.2.2 )
---
updated-dependencies:
- dependency-name: ws
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-29 02:03:57 +00:00
41cc596559
update package ( #22798 )
...
update metaplex/js
2022-01-29 09:55:48 +08:00
1b7bc8b284
Limit compiler jobs if the machine has lower than 4gb/thread ( #22704 )
2022-01-28 23:46:46 +01:00
40a49081b9
(Ledger Store) Add comments for find slot functions. ( #22666 )
2022-01-28 12:07:09 -08:00
cc74693176
chore: bump serde from 1.0.134 to 1.0.136 ( #22817 )
...
* chore: bump serde from 1.0.134 to 1.0.136
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.134 to 1.0.136.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.134...v1.0.136 )
---
updated-dependencies:
- dependency-name: serde
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-01-28 12:20:37 -07:00
f7da18a4a0
chore: bump fd-lock from 3.0.2 to 3.0.3 ( #22813 )
...
Bumps [fd-lock](https://github.com/yoshuawuyts/fd-lock ) from 3.0.2 to 3.0.3.
- [Release notes](https://github.com/yoshuawuyts/fd-lock/releases )
- [Commits](https://github.com/yoshuawuyts/fd-lock/commits )
---
updated-dependencies:
- dependency-name: fd-lock
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-01-28 10:28:29 -07:00
aab70b3aee
remove unnecessary commands & fetch Vercel deployment URL in slack report
2022-01-28 19:11:02 +05:30
4cce058e07
add commands for the traceability of the exact URL in the file
2022-01-28 18:36:22 +05:30
5b1d9739ce
chore: bump socket2 from 0.4.2 to 0.4.4 ( #22799 )
...
* chore: bump socket2 from 0.4.2 to 0.4.4
Bumps [socket2](https://github.com/rust-lang/socket2 ) from 0.4.2 to 0.4.4.
- [Release notes](https://github.com/rust-lang/socket2/releases )
- [Changelog](https://github.com/rust-lang/socket2/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/socket2/compare/v0.4.2...v0.4.4 )
---
updated-dependencies:
- dependency-name: socket2
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-01-28 02:26:08 -07:00
ee9ccaf414
added command to trim extra data with link
...
filtered_url7=$(cut -f7 -d" " vercelfile2.txt) command to trim and get exact preview link
2022-01-28 12:52:09 +05:30
220aa6ada0
Fix poh recorder initialization on startup ( #22755 )
2022-01-28 14:21:15 +08:00
94a5aee484
Add new_from_parent() timings ( #22744 )
2022-01-27 20:35:13 -05:00
5cef4c0a4c
Sigma pass ( #22801 )
...
* zk-token-sdk: add zeroize and reference arithmetic to zero-balance proof
* zk-token-sdk: add zeroize and reference arithmetic to equality proof
* zk-token-sdk: add zeroize and reference arithmetic to validity proof
* zk-token-sdk: add aggregated validity proof
* zk-token-sdk: use subtle choice for fee
* zk-token-sdk: add test for fee proof
* zk-token-sdk: add documentation for sigma protocols
* zk-token-sdk: add edge case tests for equality proof
* zk-token-sdk: add edge case tests for zero-balance proof
* zk-token-sdk: add edge case tests for validity proof
* zk-token-sdk: add some docs for fee sigma proof
* zk-token-sdk: clippy
2022-01-27 19:53:15 -05:00
89c42ebcbe
refactor rent collection ( #22803 )
2022-01-27 18:48:04 -06:00
a71f05f86c
Fix CPI duplicate account privilege escalation ( #22752 )
...
* Adds TEST_DUPLICATE_PRIVILEGE_ESCALATION_SIGNER and TEST_DUPLICATE_PRIVILEGE_ESCALATION_WRITABLE.
* Moves CPI privilege verification out of deduplication loop.
2022-01-28 00:52:02 +01:00
fa51e5b704
chore: update Connection to non-deprecated endpoints ( #22800 )
...
* chore: remove usage of `getConfirmedTransaction`
* chore: use `getBlock` instead of `getConfirmedBlock`
* chore: add `getLatestBlockhash` and test
2022-01-28 00:43:01 +01:00
350207b05f
impl ReadableAccount for LoadedAccount ( #22793 )
2022-01-27 16:59:30 -06:00
7376efe8ea
chore: bump libc from 0.2.112 to 0.2.115 ( #22796 )
...
* chore: bump libc from 0.2.112 to 0.2.115
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.112 to 0.2.115.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.112...0.2.115 )
---
updated-dependencies:
- dependency-name: libc
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-01-27 21:54:13 +00:00
e3570a060a
chore: bump borsh from 0.9.1 to 0.9.2 ( #22765 )
...
* chore: bump borsh from 0.9.1 to 0.9.2
Bumps [borsh](https://github.com/near/borsh-rs ) from 0.9.1 to 0.9.2.
- [Release notes](https://github.com/near/borsh-rs/releases )
- [Changelog](https://github.com/near/borsh-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/near/borsh-rs/compare/v0.9.1...v0.9.2 )
---
updated-dependencies:
- dependency-name: borsh
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-01-27 12:45:09 -07:00
bd86459a94
Always contact release.solana.com over https
2022-01-27 19:40:19 +00:00
c0638439be
Restrict the Mergify copy command to core contributors
2022-01-27 09:07:50 -08:00
18d69c8d2b
SortedStoragesIter to remove random access requirement ( #22713 )
2022-01-27 10:25:13 -06:00
75658e2a96
solana-test-validator now supports the --rpc-pubsub-enable-vote-subscription
flag
2022-01-27 08:22:29 -08:00
331b953551
Add vote account address to vote subscription
2022-01-27 08:22:29 -08:00
9d477d45c7
Propagate subscription failures to the caller
2022-01-27 08:19:03 -08:00
8c376f58cb
Drop feature, move to nonblocking mod
2022-01-27 08:19:03 -08:00
a6a8a712e5
Add async WebSocket PubsubClient
2022-01-27 08:19:03 -08:00
3fab5a3b14
Cargo.lock
2022-01-27 08:19:03 -08:00
322304f1d0
add command to get vercel preview url on slack
2022-01-27 21:10:26 +05:30
021c1f4f24
trace variables inside file to get vercel deploy url on slack
2022-01-27 20:34:26 +05:30
4e739bf7c4
added few command in explorer_preview.yml
...
added command to debug "fetching deploy url" to get message on slack
2022-01-27 19:37:44 +05:30
1bac1bd58e
added team_id of "solana" vercel in scope .
...
added team_id of solana to fetch deploy link
2022-01-27 18:30:10 +05:30
2839266543
adding scope "Solana"
...
adding scope to fetch deploy link
2022-01-27 18:08:15 +05:30
c1b543c74d
test_ed25519 fails if we randomly select index 1
2022-01-27 11:11:37 +00:00
3ab75fc8de
updating explorer_preview.yml
...
added --scope ${{ secrets.TEAM_ID }} to set scope
2022-01-27 16:24:26 +05:30
c924b1250a
updated explorer_preview.yml file
...
added explorer instead of solana
2022-01-27 16:12:26 +05:30
e2de4fbfe7
adding scope option
2022-01-27 14:15:23 +05:30
aa49802119
updated explorer_preview.yml to get vercel preview deployment link on slack
2022-01-27 12:54:32 +05:30
bee586c6fd
fix: Adjust mem op base cost to avoid breaking Raydium AMM Program ( #22762 )
2022-01-27 02:01:57 +00:00
85e8bece2e
Add solana_client::nonblocking::RpcClient
2022-01-26 17:58:00 -08:00
db481e1799
chore: bump serde_json from 1.0.75 to 1.0.78 ( #22748 )
...
* chore: bump serde_json from 1.0.75 to 1.0.78
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.75 to 1.0.78.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.75...v1.0.78 )
---
updated-dependencies:
- dependency-name: serde_json
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-01-26 18:01:02 -07:00
115b488807
Improve poh recorder metrics ( #22730 )
...
* Improve poh recorder metrics
* Add metric for poh service send record
* feedback
* clean up
2022-01-27 08:44:41 +08:00
3993cd765c
Remove rewrite_rent_exempt_reserve() ( #22741 )
2022-01-26 18:42:44 -05:00
d9c259a231
Set the correct root in block commitment cache initialization ( #22750 )
...
* Set the correct root in block commitment cache initialization
* clean up test
* bump
2022-01-27 00:48:00 +08:00
071e97053f
Perf: Reduce write locks on blockhash queue ( #22729 )
...
* Perf: Reduce write locks on blockhash queue
* Add comment about thread safety
* Add comment about write starvation
2022-01-26 16:24:27 +08:00
aea8f0df16
chore: bump anyhow from 1.0.52 to 1.0.53 ( #22743 )
...
* chore: bump anyhow from 1.0.52 to 1.0.53
Bumps [anyhow](https://github.com/dtolnay/anyhow ) from 1.0.52 to 1.0.53.
- [Release notes](https://github.com/dtolnay/anyhow/releases )
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.52...1.0.53 )
---
updated-dependencies:
- dependency-name: anyhow
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-01-25 21:10:34 -07:00
66b44b48a4
chore: remove time dep ( #22665 )
...
* chore: bump time from 0.3.5 to 0.3.6
Bumps [time](https://github.com/time-rs/time ) from 0.3.5 to 0.3.6.
- [Release notes](https://github.com/time-rs/time/releases )
- [Changelog](https://github.com/time-rs/time/blob/main/CHANGELOG.md )
- [Commits](https://github.com/time-rs/time/compare/v0.3.5...v0.3.6 )
---
updated-dependencies:
- dependency-name: time
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
* Remove separate time dependency
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2022-01-25 16:30:21 -07:00
8b1cde83c1
Update vote-signing.md to remove references to anachronistic behavior
2022-01-25 15:27:58 -08:00
1cf6c97779
Add checks to vote state updates to handle updates outside of SlotHash history ( #22358 )
2022-01-25 13:47:31 -05:00
1192e760a4
sdk: Maybe fix build for the future with import ( #22731 )
2022-01-25 19:29:42 +01:00
8b90084ebc
fix comment typos ( #22723 )
2022-01-25 11:10:42 -06:00
f366e0f890
Export BanksClientError ( #22715 )
2022-01-25 09:33:46 -07:00
52045c761c
chore: remove remaining unused Xargo.toml files
2022-01-24 15:35:54 -08:00
fc21af4e6e
spl-associated-token-account: Add feature for new program ( #22648 )
...
* spl-associated-token-account: Add feature for new program
* Address feedback
2022-01-24 22:54:41 +01:00
0562426661
add 'ticks-per-slot' to 'solana-test-validator' ( #22701 )
...
* add 'ticks-per-slot' to 'solana-test-validator'
* add input parser validator for "ticks-per-slot" argument
* fix fmt
2022-01-24 20:56:37 +00:00
1c10677f82
Bump thread_local ( #22711 )
2022-01-24 11:08:30 -07:00
2e56c59bcb
Handle already discarded packets in gpu sigverify path ( #22680 )
2022-01-24 14:35:47 +01:00
7569f282c6
Move discard check before generate offsets ( #22684 )
2022-01-24 12:59:47 +00:00
9666f4a8be
Update expected instruction count in test ( #22702 )
2022-01-24 12:12:29 +01:00
fd0f5e4d12
Fix typos
...
Fix typos
2022-01-23 18:39:46 -08:00
714a344937
fix: flag was incorrect in doc
2022-01-23 12:59:15 -08:00
2b111cd631
fix typo in docs ( #22690 )
2022-01-23 08:46:19 -07:00
1240217a73
Refactor: Rename variables and helper method to PohRecorder
( #22676 )
...
* Refactor: Rename leader_first_tick_height field
* Refactor: add `PohRecorder::slot_for_tick_height` helper
* Refactor: Add type for poh leader status
2022-01-23 10:28:50 +08:00
31ed4c18f9
Accountsdb: support config in Json5 ( #22605 )
...
* accountsdb: support config in json5
* update docs
* remove not required dependencies
Co-authored-by: Lijun Wang <83639177+lijunwangs@users.noreply.github.com >
2022-01-22 18:00:06 -08:00
92e43df266
restore explorer's rpc endpoint
2022-01-22 16:18:41 -05:00
dec21524e1
replace mainnet-beta endpoint
2022-01-22 16:10:23 -05:00
8cb0b1ce9a
reverse mainnet-beta endpoint changes
2022-01-22 15:56:45 -05:00
b0486f0aaa
reverse rpc-endpoint changes
2022-01-22 15:55:31 -05:00
ba5faa2582
update explorer's mainnet-beta endpoint
2022-01-22 15:38:14 -05:00
e42316ba5a
change mainnet-beta endpoint
2022-01-22 15:36:00 -05:00
a300e2d2dc
docs: fix broken link for "transaction-id" ( #22682 )
2022-01-22 19:34:28 +00:00
1ee6707bdd
undoing the changes for the traceability ( #22642 )
2022-01-22 23:27:13 +11:00
091929da12
Update to Rust 1.58.1
2022-01-21 21:38:06 -08:00
90689585ef
Update ping to transfer to self, with rotating amount ( #22657 )
...
* Update ping to transfer to self, with rotating amount
* Remove balance check
2022-01-21 22:10:50 -07:00
477cb539d0
Explorer: Sort block program ids in filter dropdown ( #22674 )
2022-01-22 05:09:58 +00:00
88bf3c7063
Add timestamp zone toggle to Explorer ( #22616 )
...
* Add timestamp zone toggle to Explorer
* style: code formatting
2022-01-22 12:41:41 +08:00
d6011ba14d
Dedup bloom filter is too slow ( #22607 )
...
* Faster dedup
* use ahash
* fixup
* single threaded
* use duration type
* remove the count
* fixup
2022-01-21 20:23:48 -07:00
6d5bbca630
Pacify clippy
2022-01-21 19:12:57 -08:00
ce4f7601af
Avoid unstable_name_collisions warning
2022-01-21 19:12:57 -08:00
d8cbb2a952
Elgamal pass ( #22632 )
...
* zk-token-sdk: change G and H to static and optimize pedersen arithmetic
* zk-token-sdk: remove unnecessary copy in elgamal arithmetic
* zk-token-sdk: fix elgamal tests for new syntax
* zk-token-sdk: use lazy-static for pedersen base
* zk-token-sdk: add dlog test for elgamal decryption
* zk-token-sdk: reflect changes in elgamal in the rest of the sdk
* zk-token-sdk: rustfmt and clippy
* zk-token-sdk: some documentation for elgamal and pedersen
* zk-token-sdk: minor remove whitespace
* zk-token-sdk: update lock files
* zk-token-sdk: change random() to new_rand()
* zk-token-sdk: add explanation for suppressing clippy::op_ref
2022-01-21 20:56:27 -05:00
8dd62854fa
Document transaction module ( #22440 )
...
* Document transaction module
* example_mocks is only for feature = full
2022-01-21 18:30:12 -07:00
a7f2fff219
Remove active features stake program v3 and v4 ( #22612 )
...
Co-authored-by: Jon Cinque <jon.cinque@gmail.com >
2022-01-21 19:27:53 -06:00
0cf886302d
chore: bump serde from 1.0.133 to 1.0.134 ( #22650 )
...
* chore: bump serde from 1.0.133 to 1.0.134
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.133 to 1.0.134.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.133...v1.0.134 )
---
updated-dependencies:
- dependency-name: serde
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-01-21 17:14:02 -07:00
fc8130955a
Impl get_/set_return_data syscalls for ProgramTest ( #22647 )
...
* Remove &mut self from set_return_data
* Impl get_/set_return_data for program-test SyscallStubs
* Add return_data program-test
2022-01-21 17:05:48 -07:00
4d00995d2d
shellcheck
2022-01-21 14:06:53 -08:00
ae95540387
chore: add test timeouts
2022-01-21 13:16:42 -08:00
0e587488b5
Use web3.js Travis scripts more to avoid Github Actions/Travis mismatches
2022-01-21 13:16:42 -08:00
aca1d577a4
chore: differentiate between Travis and Github Actions before install
2022-01-21 13:16:42 -08:00
7803e1be3d
chore: remove reference to nonexistent script
2022-01-21 12:12:00 -08:00
d137acf74d
chore: bump libloading from 0.7.2 to 0.7.3 ( #22540 )
...
* chore: bump libloading from 0.7.2 to 0.7.3
Bumps [libloading](https://github.com/nagisa/rust_libloading ) from 0.7.2 to 0.7.3.
- [Release notes](https://github.com/nagisa/rust_libloading/releases )
- [Commits](https://github.com/nagisa/rust_libloading/commits/0.7.3 )
---
updated-dependencies:
- dependency-name: libloading
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-01-21 20:00:16 +00:00
7be533a770
Add zeroed default for ElGamalCiphertext ( #22639 )
2022-01-21 19:52:36 +00:00
95bbb70c91
chore: bump serde_json from 1.0.74 to 1.0.75 ( #22541 )
...
* chore: bump serde_json from 1.0.74 to 1.0.75
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.74 to 1.0.75.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.74...v1.0.75 )
---
updated-dependencies:
- dependency-name: serde_json
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-01-21 12:26:51 -07:00
252b0c42d5
undoing the previous commit
...
was unnecessary
2022-01-22 00:22:27 +05:30
e3915e4b7a
add comment ( #22636 )
2022-01-21 10:51:58 -06:00
4abf7a7f88
add ActiveStats to track when long running, expensive bg processes are running ( #22608 )
2022-01-21 10:51:23 -06:00
38b02bbcc0
Handle already discarded packets in discard_excess_packets ( #22594 )
2022-01-21 17:22:50 +01:00
9977396d8f
Remove unused fields from Bank ( #22491 )
2022-01-21 06:03:41 -06:00
7d34a7acac
Perf: Only check executors cache for executable bpf program ids ( #22624 )
...
* Only check executors cache for executable bpf program ids
* switch to native loader check
* clean up tests
* fix tests
* clippy
2022-01-21 18:32:30 +08:00
373f200ab8
Update introduction.md ( #22623 )
...
A few fixes for grammatical and spelling issues.
2022-01-20 23:31:52 -07:00
0eb488580d
minor cleanup ( #22610 )
2022-01-20 18:11:00 -06:00
41fb98c771
zk-token_sdk: define defaults for pod ElGamal/AES ciphertexts ( #22532 )
2022-01-20 16:27:31 -05:00
a2d251ce1e
Speed up packet dedup and fix benches ( #22592 )
...
* Speed up packet dedup and fix benches
* fix tests
* allow int arithmetic in bench
2022-01-20 13:59:16 -07:00
e7777281d6
regularly report network limits ( #22563 )
2022-01-20 12:38:42 -08:00
cca3dbc76d
system-monitor-service: support percentages from bigger numbers
2022-01-20 09:51:23 +00:00
7ba57e7a7c
Refactor: move instructions sysvar serialization out of Message ( #22544 )
2022-01-20 17:33:49 +08:00
f8db314134
(Ledger Store Benchmark) Display storage size of all data shreds ( #22445 )
...
* (Ledger Store) APIs for obtaining physical size of all data and coding shreds
* (Ledger Store Benchmark) Display total data shred storage size.
2022-01-19 19:33:08 -08:00
fe7543c31a
(Ledger Store) APIs for obtaining physical size of all data and coding shreds ( #22443 )
2022-01-19 19:31:19 -08:00
7f20c6149e
Refactor: move simple vote parsing to runtime ( #22537 )
2022-01-20 10:39:21 +08:00
d343713f61
Optimize packet dedup ( #22571 )
...
* Use bloom filter to dedup packets
* dedup first
* Update bloom/src/bloom.rs
Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com >
* Update core/src/sigverify_stage.rs
Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com >
* Update core/src/sigverify_stage.rs
Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com >
* Update core/src/sigverify_stage.rs
Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com >
* fixup
* fixup
* fixup
Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com >
2022-01-19 13:58:20 -08:00
b448472037
Refactor: Move InstructionRecorder
into TransactionContext
( #22578 )
...
* Moves InstructionRecorder into TransactionContext.
* Adds assertions for number_of_instructions_at_transaction_level.
2022-01-19 22:40:09 +01:00
60850d71ce
Removed solana-accountsdb-plugin-postgres from the monorepo as it has its own ( #22567 )
...
Removed solana-accountsdb-plugin-postgres from the monorepo as it has its own standalone repo now
2022-01-19 10:46:19 -08:00
dcf44d2523
improves sigverify discard_excess_packets performance ( #22577 )
...
As shown by the added benchmark, current code does worse if there is a
spam address plus a lot of unique addresses.
on current master:
test bench_packet_discard_many_senders ... bench: 1,997,960 ns/iter (+/- 103,715)
test bench_packet_discard_mixed_senders ... bench: 14,256,116 ns/iter (+/- 534,865)
test bench_packet_discard_single_sender ... bench: 1,306,809 ns/iter (+/- 61,992)
with this commit:
test bench_packet_discard_many_senders ... bench: 1,644,025 ns/iter (+/- 83,715)
test bench_packet_discard_mixed_senders ... bench: 1,089,789 ns/iter (+/- 86,324)
test bench_packet_discard_single_sender ... bench: 955,234 ns/iter (+/- 55,953)
2022-01-19 18:10:02 +00:00
650882217c
Add PacketBatch packet_indexes stat ( #22564 )
...
* collect stats on packet batch indicies
* cleanup
* cleanup
* cleanup
* change name
2022-01-19 08:13:07 +00:00
e616a7ebfc
Track discard time of excess packets in sigverify ( #22554 )
...
* discard time histogram
* closer to the if
* update
2022-01-18 15:09:39 -07:00
8dc6f9f589
Remove unused mut
2022-01-18 12:10:31 -08:00
49443406fd
Use VecDeque instead of Vec in sigverify stage ( #22538 )
...
avoid bad performance of remove(0) for a single sender
2022-01-17 18:37:05 +01:00
2d94e6e5d3
metrics for generate new bank forks ( #22492 )
...
* metrics for generate new bank forks
* fixed
* Apply suggestions from code review
Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com >
* --fixup
* fixup!
Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com >
2022-01-17 09:59:47 -07:00
cc76a73c49
Refactor: move compute budget runtime logic into solana-program-runtime ( #22543 )
2022-01-17 20:48:00 +08:00
5e5cdf397c
fixing CI
2022-01-17 16:12:24 +05:30
2c38a9213f
Revert "Refactor: move compute budget runtime logic into solana-program-runtime ( #22533 )" ( #22542 )
...
This reverts commit b27976626a
.
2022-01-17 17:43:17 +08:00
901b2881fb
Add more details about vote account key rotation
2022-01-17 00:51:13 -08:00
b27976626a
Refactor: move compute budget runtime logic into solana-program-runtime ( #22533 )
2022-01-17 15:52:33 +08:00
c17e54e3f6
Add download bytecode button to explorer ( #22459 )
2022-01-16 12:46:02 +00:00
65f1e0fcc2
vote account withdraw authority may change the authorized voter
2022-01-15 21:47:08 -08:00
3bd5a89d6f
add scripts for traceability
2022-01-15 23:28:15 +05:30
1a855aa6f7
add script to check the validity of file content
2022-01-15 22:47:15 +05:30
eb461a5442
add scripts for traceability
2022-01-15 22:36:13 +05:30
6edeed888d
Remove unnecessary & from AsRef params ( #22523 )
2022-01-15 04:51:05 +00:00
f34ade7610
chore: bump assert_cmd from 2.0.2 to 2.0.4 ( #22490 )
...
Bumps [assert_cmd](https://github.com/assert-rs/assert_cmd ) from 2.0.2 to 2.0.4.
- [Release notes](https://github.com/assert-rs/assert_cmd/releases )
- [Changelog](https://github.com/assert-rs/assert_cmd/blob/master/CHANGELOG.md )
- [Commits](https://github.com/assert-rs/assert_cmd/compare/v2.0.2...v2.0.4 )
---
updated-dependencies:
- dependency-name: assert_cmd
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-01-14 21:44:51 -07:00
7171b3a3ac
Bugfix/block subscribe ( #22516 )
...
* use correct operation name
* require enable_rpc_transaction_history flag when enabling block_subscription
Co-authored-by: Zano <segfaultdoctor@protonmail.com >
2022-01-14 19:53:34 -07:00
70633b5c2f
Add Bank::accounts_data_len to SetRootMetrics ( #22509 )
2022-01-14 20:00:07 -06:00
a724fa2347
Add hidden cli option to allow validator reports replayed transaction cost metrics ( #22369 )
...
* add hidden cli option to allow validator reports replayed transaction cost detail metrics
* Update validator/src/main.rs
Co-authored-by: Michael Vines <mvines@gmail.com >
* - rebase master, using unbounded instead of channel; dowgrade to datapoint_trace
* removed cli arg, prefer log at trace
Co-authored-by: Michael Vines <mvines@gmail.com >
2022-01-15 00:31:21 +00:00
2aa113fd8c
Update syscall base costs
2022-01-14 16:15:14 -08:00
1309a9cea0
Add estimated and actual block cost units metrics ( #22326 )
...
* - report cost details for transactions selected to be packed into block;
- report estimated execution units packed into block, and actual units and time after execution
* revert reporting per-transaction details
* rollup transaction cost details (eg signature cost, wirte lock, data cost and execution costs) into block stats
* change naming from units to cu, use struct to replace tuple
2022-01-14 23:44:18 +00:00
e14ae33e86
Improve nonce-related error messages
2022-01-14 12:59:01 -08:00
871fd291f3
update vote bench after #22502 ( #22510 )
2022-01-14 18:58:10 +00:00
3b9654771d
change metrics to internal-metrics
2022-01-15 00:08:45 +05:30
7d7228c356
cleanup assert ( #22495 )
2022-01-14 11:53:24 -06:00
56ac26f90e
Fix build: s/vote_instruction/vote_processor/ ( #22511 )
2022-01-14 11:35:14 -06:00
9c9f2dd5bd
port counting vote CUs to block cost ( #22477 )
2022-01-14 10:50:29 -06:00
cddab635ff
Cleanup activated rent_for_sysvars feature ( #22454 )
2022-01-14 20:34:09 +08:00
ae6c511f13
Refactor: Split vote_instruction.rs into multiple files ( #22502 )
2022-01-14 17:25:15 +08:00
93a7b94507
Add benchmark for vote processing ( #22486 )
2022-01-14 17:10:17 +08:00
f12a8fcd73
docs: fix get fee for message docs ( #22501 )
2022-01-14 01:34:05 -07:00
f804ccdece
Store address table lookups in blockstore and bigtable ( #22402 )
2022-01-14 15:24:41 +08:00
4c577d7f8c
Bank::get_fee_for_message
is now nonce aware
2022-01-13 17:27:38 -08:00
4ab7d6c23e
Filter out outdated slots ( #22450 )
...
* Filter out outdated slots
* Fixup error
2022-01-13 19:51:00 -05:00
eca8d21249
log internals ( #22493 )
2022-01-13 19:50:46 -05:00
d3b95b9226
Cleanup AccountStorage struct ( #22463 )
...
* Revert "chore: bump dashmap from 4.0.2 to 5.0.0 (#21824 )"
This reverts commit 8aa3d690b5
.
* Cleanup AccountStorage struct
2022-01-13 17:51:53 -06:00
7711cd74c3
partition_from_pubkey ( #22430 )
...
* Revert "chore: bump dashmap from 4.0.2 to 5.0.0 (#21824 )"
This reverts commit 8aa3d690b5
.
* partition_from_pubkey
2022-01-13 17:02:42 -06:00
66a97bdde0
Apply suggestions from code review
...
Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com >
2022-01-13 14:12:54 -07:00
b635073829
Add hidapi feature in remote-wallet
2022-01-13 14:12:54 -07:00
e291342c4a
Revert "chore: bump dashmap from 4.0.2 to 5.0.0 ( #21824 )" ( #22488 )
...
This reverts commit 8aa3d690b5
.
2022-01-13 13:06:39 -06:00
b82d71d22a
Inline DEFAULT_SNAPSHOT_VERSION constant string ( #22487 )
2022-01-13 18:19:15 +00:00
1632ee03da
nit: Traceable balance checks ( #22462 )
2022-01-13 09:09:22 -08:00
2756abce39
More serde snapshot cleanup ( #22449 )
2022-01-13 09:20:20 -06:00
9c3144e286
Refactor serde snapshot's "future" to "newer" ( #22431 )
2022-01-13 07:12:09 -06:00
ba046bd4dd
chore:(deps): bump @types/jest from 27.0.3 to 27.4.0 in /explorer ( #22483 )
...
Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest ) from 27.0.3 to 27.4.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest )
---
updated-dependencies:
- dependency-name: "@types/jest"
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-13 09:06:32 +00:00
2370e61431
Perf: Store deserialized sysvars in the sysvars cache ( #22455 )
...
* Perf: Store deserialized sysvars in sysvars cache
* add bench
2022-01-13 05:36:21 +00:00
f2908ed475
ci: Patch solana-account-decoder for downstream builds ( #22472 )
2022-01-13 02:02:36 +01:00
6614727be8
downgrade individual per-program-timing to trace to reduce writes to influx
2022-01-12 18:52:13 -06:00
b211f839cb
Fetch sysvars from invoke context for vote program ( #22444 )
2022-01-13 08:41:48 +08:00
eaae2f3538
Use modular_bitfield to bitpack IndexEntry ( #22447 )
2022-01-12 14:37:34 -06:00
7171c95bdd
Refactor: move sysvar cache to new module
2022-01-12 12:35:28 -07:00
b27333e52d
Update docs vis-a-vis prohibition of RentPaying accounts ( #22438 )
...
* Rent-exempt docs for exchange integrations
* Remove discussion of rent-paying accounts from developing docs
* Improve verbiage
2022-01-12 19:32:19 +00:00
4854fadc44
chore:(deps): bump sass from 1.45.0 to 1.47.0 in /explorer ( #22453 )
...
Bumps [sass](https://github.com/sass/dart-sass ) from 1.45.0 to 1.47.0.
- [Release notes](https://github.com/sass/dart-sass/releases )
- [Changelog](https://github.com/sass/dart-sass/blob/main/CHANGELOG.md )
- [Commits](https://github.com/sass/dart-sass/compare/1.45.0...1.47.0 )
---
updated-dependencies:
- dependency-name: sass
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-12 09:21:29 +00:00
3e8ee27d9d
chore:(deps): bump @metaplex/js from 4.9.0 to 4.11.3 in /explorer ( #22452 )
...
Bumps [@metaplex/js](https://github.com/metaplex/js ) from 4.9.0 to 4.11.3.
- [Release notes](https://github.com/metaplex/js/releases )
- [Changelog](https://github.com/metaplex-foundation/js/blob/main/CHANGELOG.md )
- [Commits](https://github.com/metaplex/js/compare/v4.9.0...v4.11.3 )
---
updated-dependencies:
- dependency-name: "@metaplex/js"
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-12 09:14:32 +00:00
8161cee70f
Remove unnecessary var in banking_stage bench ( #22408 )
2022-01-11 22:25:21 -06:00
de2a7fdc6c
update influx host
2022-01-11 23:23:15 -05:00
3ca16de851
Only examine explicit tx accounts for rent state ( #22441 )
...
* Add failing test
* Fix: only examine accounts explicitly included in a tx
2022-01-11 20:23:51 -07:00
c45dde6164
Handle accounts data size changes due to rent-collected accounts ( #22412 )
2022-01-11 17:20:28 -06:00
35a5dd9c45
Refactor: consolidate memo extraction for each message version ( #22422 )
2022-01-12 06:32:44 +08:00
157f165a3d
Bump memmap2 from 0.5.1 to 0.5.2 ( #22414 )
...
* Bump memmap2 from 0.5.1 to 0.5.2
Bumps [memmap2](https://github.com/RazrFalcon/memmap2-rs ) from 0.5.1 to 0.5.2.
- [Release notes](https://github.com/RazrFalcon/memmap2-rs/releases )
- [Changelog](https://github.com/RazrFalcon/memmap2-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/RazrFalcon/memmap2-rs/compare/v0.5.1...v0.5.2 )
---
updated-dependencies:
- dependency-name: memmap2
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-01-11 15:08:13 -07:00
637e366b18
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
2022-01-11 11:32:25 -07:00
a49ef49f87
optimizes ReadOnlyAccountsCache LRU eviction implementation ( #22403 )
...
ReadOnlyAccountsCache is using a background thread, table scan and sort
to implement LRU eviction policy:
https://github.com/solana-labs/solana/blob/eaa52bc93/runtime/src/read_only_accounts_cache.rs#L66-L73
https://github.com/solana-labs/solana/blob/eaa52bc93/runtime/src/read_only_accounts_cache.rs#L186-L191
https://github.com/solana-labs/solana/blob/eaa52bc93/runtime/src/read_only_accounts_cache.rs#L222
DashMap internally locks each shard when accessed; so a table scan in
the background thread can create a lot of lock contention.
This commit adds an index-list queue containing cached keys in the order
that they are accessed. Each hash-map entry also includes its index into
this queue.
When an item is first entered into the cache, it is added to the end of
the queue. Also each time an entry is looked up from the cache it is
moved to the end of queue. As a result, items in the queue are always
sorted in the order that they have last been accessed. When doing LRU
eviction, cache entries are evicted from the front of the queue.
Using index-list, all queue operations above are O(1) with low overhead
and so above achieves an efficient implementation of LRU cache eviction
policy.
2022-01-11 17:25:28 +00:00
8b66625c95
convert std::sync::mpsc to crossbeam_channel ( #22264 )
2022-01-11 02:44:46 -08:00
3c44d405c7
feat: add Connection.getFeeForMessage ( #22128 )
...
* web3.js: add Connection.getFeeForMessage
* throw if value is null
* fix null value
* fix types
2022-01-11 17:49:28 +08:00
d064c40617
update metrics url
2022-01-10 21:36:44 -05:00
4214c69694
update metrics url
2022-01-10 21:35:37 -05:00
ec364cc737
ci: Add Anchor and Anchor projects to the downstream build ( #22098 )
...
* ci: Add Anchor and Anchor projects to the downstream build
* Separate downstream anchor projects into separate step
* Decrease anchor project build time
2022-01-11 00:21:53 +01:00
49da347d84
limits gossip vote stats to the top most voted slots ( #22416 )
2022-01-10 21:23:41 +00:00
2cc6f863bf
Bump etcd-client from 0.8.2 to 0.8.3 ( #22415 )
...
Bumps [etcd-client](https://github.com/etcdv3/etcd-client ) from 0.8.2 to 0.8.3.
- [Release notes](https://github.com/etcdv3/etcd-client/releases )
- [Commits](https://github.com/etcdv3/etcd-client/compare/0.8.2...0.8.3 )
---
updated-dependencies:
- dependency-name: etcd-client
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-01-10 13:25:15 -07:00
0869f644fc
Bump merlin from 2.0.1 to 3.0.0 ( #22331 )
...
* Bump merlin from 2.0.1 to 3.0.0
Bumps [merlin](https://github.com/zkcrypto/merlin ) from 2.0.1 to 3.0.0.
- [Release notes](https://github.com/zkcrypto/merlin/releases )
- [Changelog](https://github.com/zkcrypto/merlin/blob/main/CHANGELOG.md )
- [Commits](https://github.com/zkcrypto/merlin/compare/2.0.1...3.0.0 )
---
updated-dependencies:
- dependency-name: merlin
dependency-type: direct:production
update-type: version-update:semver-major
...
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-01-10 11:18:15 -07:00
04a2c19c87
Bump memmap2 from 0.5.0 to 0.5.1 ( #22409 )
...
* Bump memmap2 from 0.5.0 to 0.5.1
Bumps [memmap2](https://github.com/RazrFalcon/memmap2-rs ) from 0.5.0 to 0.5.1.
- [Release notes](https://github.com/RazrFalcon/memmap2-rs/releases )
- [Changelog](https://github.com/RazrFalcon/memmap2-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/RazrFalcon/memmap2-rs/compare/v0.5.0...v0.5.1 )
---
updated-dependencies:
- dependency-name: memmap2
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-01-10 11:14:56 -07:00
5f1f4dcbdd
Use struct to pass all Tpu sockets as one argument to Tpu::new() ( #21965 )
...
Tpu::new() now matches Tvu::new() in having struct to reduce argument
list. Additionally, Rust supports partial moves, so there is no need to
clone the Tvu sockets out of Node object.
2022-01-10 11:29:48 -06:00
aadf4b9b63
Moves InvokeContext::return_data to TransactionContext. ( #22411 )
2022-01-10 18:26:51 +01:00
9bc2592da1
Use lazy_rent_collection directly ( #22410 )
2022-01-10 10:47:08 -06:00
eeec1ce2ad
Add local cluster test to repro slot hash expiry bug ( #21873 )
2022-01-10 00:58:21 -05:00
39327ec753
Bump crossbeam-channel from 0.5.1 to 0.5.2 ( #22405 )
...
* Bump crossbeam-channel from 0.5.1 to 0.5.2
Bumps [crossbeam-channel](https://github.com/crossbeam-rs/crossbeam ) from 0.5.1 to 0.5.2.
- [Release notes](https://github.com/crossbeam-rs/crossbeam/releases )
- [Changelog](https://github.com/crossbeam-rs/crossbeam/blob/master/CHANGELOG.md )
- [Commits](https://github.com/crossbeam-rs/crossbeam/compare/crossbeam-channel-0.5.1...crossbeam-channel-0.5.2 )
---
updated-dependencies:
- dependency-name: crossbeam-channel
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-01-09 22:32:29 -07:00
28275a33d6
Bump tempfile from 3.2.0 to 3.3.0 ( #22401 )
...
* Bump tempfile from 3.2.0 to 3.3.0
Bumps [tempfile](https://github.com/Stebalien/tempfile ) from 3.2.0 to 3.3.0.
- [Release notes](https://github.com/Stebalien/tempfile/releases )
- [Changelog](https://github.com/Stebalien/tempfile/blob/master/NEWS )
- [Commits](https://github.com/Stebalien/tempfile/compare/v3.2.0...v3.3.0 )
---
updated-dependencies:
- dependency-name: tempfile
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-01-09 12:26:08 -07:00
dd6b4ac221
Bump indexmap from 1.7.0 to 1.8.0 ( #22389 )
...
* Bump indexmap from 1.7.0 to 1.8.0
Bumps [indexmap](https://github.com/bluss/indexmap ) from 1.7.0 to 1.8.0.
- [Release notes](https://github.com/bluss/indexmap/releases )
- [Changelog](https://github.com/bluss/indexmap/blob/master/RELEASES.rst )
- [Commits](https://github.com/bluss/indexmap/compare/1.7.0...1.8.0 )
---
updated-dependencies:
- dependency-name: indexmap
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-01-09 16:09:36 +00:00
428575f9ae
wrap create executor timings datapoint in a module
2022-01-09 05:01:17 +00:00
3b4aad9df1
bank: fix executor cache metrics
2022-01-09 04:22:39 +00:00
eaa52bc935
Bump zstd from 0.9.1+zstd.1.5.1 to 0.9.2+zstd.1.5.1 ( #22388 )
...
* Bump zstd from 0.9.1+zstd.1.5.1 to 0.9.2+zstd.1.5.1
Bumps [zstd](https://github.com/gyscos/zstd-rs ) from 0.9.1+zstd.1.5.1 to 0.9.2+zstd.1.5.1.
- [Release notes](https://github.com/gyscos/zstd-rs/releases )
- [Commits](https://github.com/gyscos/zstd-rs/compare/0.9.1...v0.9.2 )
---
updated-dependencies:
- dependency-name: zstd
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-01-08 22:21:56 +00:00
d8ec8ca2e6
Bump blake3 from 1.2.0 to 1.3.0 ( #22373 )
...
* Bump blake3 from 1.2.0 to 1.3.0
Bumps [blake3](https://github.com/BLAKE3-team/BLAKE3 ) from 1.2.0 to 1.3.0.
- [Release notes](https://github.com/BLAKE3-team/BLAKE3/releases )
- [Commits](https://github.com/BLAKE3-team/BLAKE3/compare/1.2.0...1.3.0 )
---
updated-dependencies:
- dependency-name: blake3
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-01-08 20:28:04 +00:00
0f94e1d3a2
Clarify docs of minimum_balance
( #22385 )
2022-01-08 11:27:32 -07:00
d90d5ee9b6
Refactor Rent::due() with RentDue enum ( #22346 )
2022-01-08 09:03:46 -06:00
2f29ff1a3f
add excutor creation trace timings
2022-01-08 11:18:37 +00:00
4a9f4e2505
improve multi executor cache addition
2022-01-08 03:47:23 -07:00
ad3cb0bc93
--amend
2022-01-08 08:19:27 +00:00
4ce48307bb
bank: prime new executor cache entry use-counts
2022-01-08 08:19:27 +00:00
2759cb860b
Bump sha2 from 0.10.0 to 0.10.1 ( #22359 )
...
* Bump sha2 from 0.10.0 to 0.10.1
Bumps [sha2](https://github.com/RustCrypto/hashes ) from 0.10.0 to 0.10.1.
- [Release notes](https://github.com/RustCrypto/hashes/releases )
- [Commits](https://github.com/RustCrypto/hashes/compare/sha2-v0.10.0...sha2-v0.10.1 )
---
updated-dependencies:
- dependency-name: sha2
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-01-08 00:17:32 -07:00
813006b33b
remove per program timings from blockstore processor ledger replay ( #22370 )
2022-01-08 01:52:08 -05:00
81a10e649f
fix: non-deterministic writeable account order ( #21724 )
2022-01-08 13:38:58 +08:00
6d76db1de5
bank: Add executors cache metrics
2022-01-07 16:53:27 -07:00
5771c36d3f
Rename open_with_access_type() to open_with_options() ( #22123 )
2022-01-07 12:11:43 -08:00
b11d3b5abf
Shrink disk buckets index record ( #21973 )
...
* Shrink index record
* Update bucket_map/src/index_entry.rs
Co-authored-by: Brooks Prumo <brooks@prumo.org >
Co-authored-by: Brooks Prumo <brooks@prumo.org >
2022-01-07 12:12:36 -06:00
c2389fc209
removes CowCachedExecutors ( #22343 )
...
Copy-on-write semantics for cached executors can be implemented by a
simple Arc<CachedExecutors> as opposed to CowCachedExecutors:
https://github.com/solana-labs/solana/blob/f1e2598ba/runtime/src/bank.rs#L244-L247
This will also avoid the need for double locking as in:
https://github.com/solana-labs/solana/blob/f1e2598ba/runtime/src/bank.rs#L3490-L3491
https://github.com/solana-labs/solana/blob/f1e2598ba/runtime/src/bank.rs#L3525-L3526
2022-01-07 14:06:29 +00:00
e2aa932e97
Add aarch64-apple-darwin publish tarball step
2022-01-06 23:59:18 -08:00
0eb0d62e95
Increase timeout of local-cluster-slow CI step
2022-01-07 15:30:42 +08:00
9f1f64e384
Cleanup ledger-tool analyze-storage command ( #22310 )
...
* Make ledger-tool analyze-storage use Blockstore::open()
Opening a large ledger may require setting a larger open file descriptor
limit. Blockstore::open() does this whereas the underlying Database
object that analyze-storage was opening does not.
* Move key_size call lookup to take advantage of traits
* Fix typo where analyze worked on wrong column
* Make analyze-storage analyze all columns
2022-01-06 23:40:02 -06:00
207825d30b
Minimize boilerplate code around Rocks column families ( #22345 )
2022-01-06 23:39:09 -06:00
52d12cc802
Add runtime support for address table lookups ( #22223 )
...
* Add support for address table lookups in runtime
* feedback
* feedback
2022-01-07 11:59:09 +08:00
08e64c88ed
explorer: fix missing logs error for old transactions ( #22350 )
2022-01-07 00:48:20 +00:00
b2687b7e70
Added TooManyAccountLocks to the PostgreSQL enum types ( #22348 )
...
Checked w/o waiting for the CI result as currently CI is not validating Postgres changes. Manually verified it fixed the issue
2022-01-06 16:48:12 -08:00
9cb27613c3
Don't accidentally commit farf ( #22349 )
2022-01-06 17:24:33 -07:00
5f611723a5
disk buckets: helpers and test ( #22339 )
2022-01-06 15:45:47 -06:00
0459f0a4c0
cargo-build-bpf: don't set -C linker on windows ( #22314 )
...
* cargo-build-bpf: don't set -C linker on windows
Since we're now linking using rust-lld
(87ba5c61a5
)
which is guaranteed to always be in the sysroot, hardcoding the linker path
shouldn't be needed anymore.
* Update Cargo.lock
2022-01-07 07:41:13 +11:00
f1e2598baa
Retain executor cache counts ( #22322 )
2022-01-06 08:56:00 -08:00
e0c091a9f4
factor out code in do_shrink_slot_stores ( #22306 )
2022-01-06 10:49:24 -06:00
100293c4b5
refactor get_store_for_shrink ( #22307 )
2022-01-06 10:49:01 -06:00
705084a25b
zk-token-sdk: rustfmt
2022-01-06 11:18:06 -05:00
f81f926a0c
zk-token-sdk: fix transfer verification / set up for fee proof ( #22337 )
2022-01-06 11:01:27 -05:00
bc654bf865
feat: add error types for each sigma protocol ( #22336 )
2022-01-06 08:10:37 -05:00
390ef0fbcd
Consolidate process instruction execution timings to own struct
2022-01-06 03:56:46 -07:00
72fc6096a0
Use saturating_add_assign macro
2022-01-06 03:56:46 -07:00
deb9344e49
Add helper macro for AddAssign
ing with saturating arithmetic
2022-01-06 03:56:46 -07:00
848b6dfbdd
Add metrics for executor creation
2022-01-06 03:56:46 -07:00
b25e4a200b
Add execute metrics
2022-01-06 03:56:46 -07:00
7d32909e17
move ExecuteTimings
from runtime::bank
to program_runtime::timings
2022-01-06 03:56:46 -07:00
47b74e28ec
Add CLEANUP_SERVICE flag to ledger cleanup benchmark ( #22108 )
2022-01-05 23:46:02 -08:00
d9220652ad
[ledger-tool]compare_blocks ( #22229 )
...
* 1.made load_credentials accept credential path as a parameter. 2.partial implement bigtable comparasion function
* finding missing blocks in bigtables in a specified range
* refactor compare-blocks,add unit test for missing_blocks and fmt
* compare-block fix last block bug
* refactor compare-block and improve wording
* Update ledger-tool/src/bigtable.rs
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
* update compare-block command-line description
* style:improve wording/naming/code style
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2022-01-06 14:36:03 +08:00
0673dc5375
Remove erroneous dbg!()
( #22324 )
2022-01-06 06:09:15 +00:00
12e160269e
cache executors on failed transactions ( #22308 )
2022-01-05 22:09:03 -08:00
37ebd9bd9e
Update default --dynamic-port-range values to include some room for additional ports that may be added in the future
2022-01-05 16:50:15 -08:00
005ca7759e
Remove stray printlns
2022-01-05 16:49:47 -08:00
cd24ec2ef6
--dynamic-port-range now requires at least 12 ports
2022-01-05 16:12:06 -08:00
cd54b90ae6
Update Cargo.lock
2022-01-05 16:04:32 -08:00
ab13e39518
Only sum accounts data len from non-zero lamport accounts ( #22309 )
2022-01-05 23:23:37 +00:00
f2ed6f09ee
Skip updating already cached executors if unmodified
2022-01-05 16:08:10 -07:00
959ea26816
Re-enable LTO ( #22287 )
...
LTO seems to work fine now. It was possibly fixed by either the LLVM13 upgrade
or by b2ed47a925
,
which fixed a LTO issue with tests.
2022-01-06 09:16:50 +11:00
bb3a1b6b31
Add zk_token_sdk_enabled feature to gate Zk Token proof program and sol_zk_token_elgamal_op
syscalls
2022-01-05 11:57:37 -08:00
98e7fada15
Bump generic-array from 0.14.4 to 0.14.5 ( #22297 )
...
* Bump generic-array from 0.14.4 to 0.14.5
Bumps [generic-array](https://github.com/fizyk20/generic-array ) from 0.14.4 to 0.14.5.
- [Release notes](https://github.com/fizyk20/generic-array/releases )
- [Changelog](https://github.com/fizyk20/generic-array/blob/master/CHANGELOG.md )
- [Commits](https://github.com/fizyk20/generic-array/commits )
---
updated-dependencies:
- dependency-name: generic-array
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-01-05 12:01:15 -07:00
69e632a337
Adapt zk-token-{sdk,proof-program} for use in the monorepo
2022-01-05 08:51:18 -08:00
e1848ecbcc
Cargo.lock
2022-01-05 08:51:18 -08:00
a9b0309c1f
Update to Rust 2021 edition
2022-01-05 08:51:18 -08:00
a08e3760d8
Update to Solana 1.9.1
2022-01-05 08:51:18 -08:00
f2e7f0c32b
Adapt to changes to native program entrypoint
2022-01-05 08:51:18 -08:00
9c88f8205b
Update to Solana 1.9.0
2022-01-05 08:51:18 -08:00
d5196046dd
remove UpdateAccountPk
instruction
2022-01-05 08:51:18 -08:00
39e0c19b4b
Update to Solana 1.7.15
2022-01-05 08:51:18 -08:00
11cac460aa
Consume compute units since proof verification is an expensive operation
2022-01-05 08:51:18 -08:00
62b6eafd7c
Prevent proof program from being invoked as an inner instruction
2022-01-05 08:51:18 -08:00
af80203522
Merge transfer instructions
2022-01-05 08:51:18 -08:00
6cdb94ccc5
Rename crypto crate to sdk
2022-01-05 08:51:18 -08:00
c38309791b
Update to Solana 1.7.13
2022-01-05 08:51:18 -08:00
f1345c7bb3
Merge sdk/ back into crypto/
2022-01-05 08:51:18 -08:00
d5472faa96
Add demo cli
2022-01-05 08:51:18 -08:00
b902ee6ad5
Adjust crate names
2022-01-05 08:51:18 -08:00
b1be9a7907
Move solana-specific parts of crypto/ into sdk/
2022-01-05 08:51:18 -08:00
b96e07d161
Drop 'With' from TransferRangeProof/TransferValidityProof
2022-01-05 08:51:18 -08:00
0e8aa331ad
Add transfer proof-program instructions
2022-01-05 08:51:18 -08:00
dc52817408
Rework bytemuck dependencies for monorepo compatibility
2022-01-05 08:51:18 -08:00
6ba3f4dc6d
Add WithdrawData proof program plumbing
2022-01-05 08:51:18 -08:00
8b15d7bc28
Add CloseAccountData proof program plumbing
2022-01-05 08:51:18 -08:00
00fa5a93b8
Rename some files
2022-01-05 08:51:18 -08:00
1a254ec098
feat: use proper constructor syntax for inner product
2022-01-05 08:51:18 -08:00
5b41d62f8a
feat: fix clippy for new error types
2022-01-05 08:51:18 -08:00
0944abc0e2
feat: update error types for sdk
2022-01-05 08:51:18 -08:00
1cbcda71cb
feat: add separate error types for sigma proofs
2022-01-05 08:51:18 -08:00
7439d2424b
feat: add a separate TranscriptError
2022-01-05 08:51:18 -08:00
a211fe1cf4
feat: add errors for range proof module
2022-01-05 08:51:18 -08:00
e1d3883893
feat: clean up range proof constructor
2022-01-05 08:51:18 -08:00
826c3bee4a
feat: add verification for fee proof
2022-01-05 08:51:18 -08:00
e561fbc25a
feat: add test for fee proof
2022-01-05 08:51:18 -08:00
bc7ac42f2a
feat: proof generation for max and equality proof
2022-01-05 08:51:18 -08:00
601247d958
feat: add zk-proof certifying that a ciphertext encrypts specified max fee value
2022-01-05 08:51:18 -08:00
beb95c4884
Allow publish
2022-01-05 08:51:18 -08:00
08ef612361
refactor: add mod.rs for sigma_proofs
2022-01-05 08:51:18 -08:00
584c63bcc4
refactor: CloseAccount now uses zero-balance-proof
2022-01-05 08:51:18 -08:00
c26fa1d0e9
refactor: create pod struct for ZeroBalanceProof
2022-01-05 08:51:18 -08:00
208621e3cf
refactor: create a separate zero-balance-proof for CloseAccount instruction
2022-01-05 08:51:18 -08:00
c6cd0a5591
refactor: group equality and validity proofs in sigma_proofs module
2022-01-05 08:51:18 -08:00
e011502875
Update to Rust 2021 edition
2022-01-05 08:51:18 -08:00
8ee07cd5c6
Update to Solana 1.9.1
2022-01-05 08:51:18 -08:00
31737406da
Adapt to changes to native program entrypoint
2022-01-05 08:51:18 -08:00
93860e88d2
Update to Solana 1.9.0
2022-01-05 08:51:18 -08:00
9a43fbe3b2
clean up authenticated encryption implementation and also rename aes to auth_encryption
2022-01-05 08:51:18 -08:00
7a568482de
cargo fmt and fix clippy
2022-01-05 08:51:18 -08:00
30871784e4
incorporate validity proof into transfer proof
2022-01-05 08:51:18 -08:00
c7bf9958e7
add validity proof serialization and deserialization
2022-01-05 08:51:18 -08:00
725781eaa7
add validity proof generation and verification
2022-01-05 08:51:18 -08:00
dcc961ae00
fix clippy for the updated transfer
2022-01-05 08:51:18 -08:00
ccdbe65c87
cleaning up transfer proof
2022-01-05 08:51:18 -08:00
30e12aef9a
Update withdraw instruction to use equality proof
2022-01-05 08:51:18 -08:00
6c329e2431
add equality proof struct
2022-01-05 08:51:18 -08:00
f0db6020eb
updating close account zk proof
2022-01-05 08:51:18 -08:00
aba8c2f4af
reformat imports
2022-01-05 08:51:18 -08:00
c61775664e
Add decrypt helper function
2022-01-05 08:51:18 -08:00
69fab16e83
ElGamalKeypair::new() now generates valid keypairs
2022-01-05 08:51:18 -08:00
88ce934bd7
Derive thiserror::Error for ProofError
2022-01-05 08:51:18 -08:00
2c51288afd
Add Copy to Role
2022-01-05 08:51:18 -08:00
8d731f1a70
set ciphertext_lo and ciphertext_hi methods to private
2022-01-05 08:51:18 -08:00
c59e8f7c8d
resolve conflict
2022-01-05 08:51:18 -08:00
973287ad66
add decryption functionality to transfer data
2022-01-05 08:51:18 -08:00
15aea0fe47
Avoid runtime discrete log table precomputation
2022-01-05 08:51:18 -08:00
c1db2b4866
Wrap a struct around the discrete log precompute hashmap
2022-01-05 08:51:18 -08:00
425a4a4082
cargo fmt
2022-01-05 08:51:18 -08:00
fdb658fff4
Various program refinements
2022-01-05 08:51:18 -08:00
c155519ae1
Generate AesKey/ElGamalSecretKey from an ed25519 signature instead of secret key
2022-01-05 08:51:18 -08:00
221f499041
derive ElGamal keypair from the secret component of keypair
2022-01-05 08:51:18 -08:00
89ddae29ef
derive ElGamal keypair from Ed25519 keypair instead of just the signing key
2022-01-05 08:51:18 -08:00
defdf8da72
change AESCiphertext to AesCiphertext
2022-01-05 08:51:18 -08:00
3721eda23e
serialization for aes
2022-01-05 08:51:18 -08:00
c7fc430adb
use randomized authenticated encryption for aes
2022-01-05 08:51:18 -08:00
77e79221a0
remove UpdateAccountPk
instruction
2022-01-05 08:51:18 -08:00
b0e492bc06
Update sdk/src/encryption/aes.rs
...
Co-authored-by: Michael Vines <mvines@gmail.com >
2022-01-05 08:51:18 -08:00
173d88d514
remove OptionAESCiphertext
2022-01-05 08:51:18 -08:00
22114c523f
update demo program and bpf test for aes ciphertext removal
2022-01-05 08:51:18 -08:00
88f952075d
remove aes ciphertext from the proof program
2022-01-05 08:51:18 -08:00
c51a51d0ad
quick syntactical fixes from pr review
...
merge
2022-01-05 08:51:18 -08:00
2359150b9c
incorporate aes ciphertext for zk-proof instructions
2022-01-05 08:51:18 -08:00
6749c45c63
merge
2022-01-05 08:51:18 -08:00
57103c515b
update applying pending balance for aes ciphertext
2022-01-05 08:51:18 -08:00
2d225de48c
pod for AESCiphertext
2022-01-05 08:51:18 -08:00
beba0eac55
Some clippy
2022-01-05 08:51:18 -08:00
e0c168ef3f
add aes encryption
2022-01-05 08:51:18 -08:00
72ade5473a
Add blueprint for aes encryption
2022-01-05 08:51:18 -08:00
abe6b27b34
clippy
2022-01-05 08:51:18 -08:00
0ac6427abc
cargo fmt
2022-01-05 08:51:18 -08:00
17f5dd734c
Fix BPF build
2022-01-05 08:51:18 -08:00
a707e85c10
add key pair derivation from ed25519 signing key
2022-01-05 08:51:18 -08:00
ecbdb6ba68
update cargo to include ed25519_dalek
2022-01-05 08:51:18 -08:00
2eb326b0da
add keypair derivation
2022-01-05 08:51:18 -08:00
f350fa7147
add key pair derivation from ed25519 signing key
...
merge
2022-01-05 08:51:18 -08:00
0cc717340c
update cargo to include ed25519_dalek
2022-01-05 08:51:18 -08:00
a368adcd30
add keypair derivation
...
merge
2022-01-05 08:51:18 -08:00
500423626d
merge
2022-01-05 08:51:18 -08:00
aea95e8ff3
update cargo to include ed25519_dalek
2022-01-05 08:51:18 -08:00
0bd28f9620
merge
2022-01-05 08:51:18 -08:00
65cf599786
merge
2022-01-05 08:51:18 -08:00
9fdadb503d
merge
2022-01-05 08:51:18 -08:00
ee6a13ef6f
update cargo to include ed25519_dalek
2022-01-05 08:51:18 -08:00
30702dcdee
add keypair derivation
2022-01-05 08:51:18 -08:00
43e368faf6
add ElGamal key derivation from Ed25519 signing key
2022-01-05 08:51:18 -08:00
7aef523a41
sdk/ now builds for wasm32-unknown-unknown
2022-01-05 08:51:18 -08:00
4b61e27d12
divide out elgamal algorithms with keypair
2022-01-05 08:51:18 -08:00
a8ab615c89
Add inner instruction utility functions
2022-01-05 08:51:18 -08:00
93eb49a3e3
Rename ElGamalKeypair fields
2022-01-05 08:51:18 -08:00
c33e24de57
Rename ElGamal to ElGamalKeypair
2022-01-05 08:51:18 -08:00
f272c025bd
Rename ElGamal::new() to ElGamal::default()
2022-01-05 08:51:18 -08:00
6b59beda7b
Add fn to save/load ElGamal
2022-01-05 08:51:18 -08:00
1daf676b37
Update to Solana 1.7.15
2022-01-05 08:51:18 -08:00
2c1aa715b0
Adjust ElGamal::new() signature
2022-01-05 08:51:18 -08:00
2d62e4e6bd
update program processor for the single transfer instruction
2022-01-05 08:51:18 -08:00
09b8baa4b1
merge
2022-01-05 08:51:18 -08:00
db69128825
Simplify range proof verification syntax for merged transfer
2022-01-05 08:51:18 -08:00
a5d1efc207
Rust fmt and clippy
2022-01-05 08:51:18 -08:00
25216705b3
Add UpdateAccountPk tests for edge cases
2022-01-05 08:51:18 -08:00
1af1106b87
Add CloseAccount tests for edge cases
2022-01-05 08:51:18 -08:00
73c06d9e33
Rename ElGamalPubkey::gen_decrypt_handle method to ElGamalPubkey::decrypt_handle
2022-01-05 08:51:18 -08:00
20c6001836
derive Debug for pods for BPF target as well
2022-01-05 08:51:18 -08:00
c150b4b197
Replace to_elgamal_ciphertext with From trait for ElGamalCiphertext
2022-01-05 08:51:18 -08:00
a40e7fc59b
Rename Pedersen related structs and methods for consistency
2022-01-05 08:51:18 -08:00
17cda46531
Merge transfer instructions
2022-01-05 08:51:18 -08:00
42f7c0c7f6
Update tests
2022-01-05 08:51:18 -08:00
20bce10204
add clippy
2022-01-05 08:51:18 -08:00
9b73e351aa
minor name change
2022-01-05 08:51:18 -08:00
d6a808f41a
simplify get_ciphertext methods
2022-01-05 08:51:18 -08:00
93f2323e52
add ciphertext extraction methods for TransferData
2022-01-05 08:51:18 -08:00
75896958b6
rename to_elgamal_ctxt to to_elgamal_ciphertext
2022-01-05 08:51:18 -08:00
a622ee4b8d
Rename ElGamal::keygen to ElGamal::new
2022-01-05 08:51:18 -08:00
94a96670e8
Update lib.rs
2022-01-05 08:51:18 -08:00
8bb6f0dc6f
Rename ElGamalSK to ElGamalSecretKey
2022-01-05 08:51:18 -08:00
5445e13828
Rename dlog.rs to discrete_log.rs
2022-01-05 08:51:18 -08:00
23d3b540a1
Avoid explicit curve25519_dalek dependency in demo/
2022-01-05 08:51:18 -08:00
1ef3a621a8
add decryption in demo
2022-01-05 08:51:18 -08:00
d20d03cd7f
clean up ElGamal decryption
2022-01-05 08:51:18 -08:00
409b55ad81
add some comments
2022-01-05 08:51:18 -08:00
667e72144e
rename encode.rs to dlog.rs
2022-01-05 08:51:18 -08:00
2f138ecb96
Fix tests
2022-01-05 08:51:18 -08:00
48047b55ba
clippy
2022-01-05 08:51:18 -08:00
f227504ea7
Add sol_zk_token_elgamal syscall declarations
2022-01-05 08:51:18 -08:00
78799640ea
Rename ElGamalCT to ElGamalCiphertext, ElGamalPK to ElGamalPubkey
2022-01-05 08:51:18 -08:00
f3e7e62813
Refactor sdk/src/pod.rs
2022-01-05 08:51:18 -08:00
d01d425e4b
Rename crypto crate to sdk
2022-01-05 08:51:18 -08:00
7da620f0b4
Merge sdk/ back into crypto/
2022-01-05 08:51:18 -08:00
88b71c0732
Add demo cli
2022-01-05 08:51:18 -08:00
df521bbfc8
Adjust crate names
2022-01-05 08:51:18 -08:00
03a3a501f3
Groom Cargo.tomls
2022-01-05 08:51:18 -08:00
ae5d254e73
Move solana-specific parts of crypto/ into sdk/
2022-01-05 08:51:18 -08:00
0e1afcbb26
Split up local cluster tests into separate CI steps ( #22295 )
...
* Split up local cluster tests into separate CI steps
* Update buildkite-pipeline.sh
2022-01-05 14:44:15 +00:00
44d61465f1
(Ledger store benchmark - 3/N) Add comments about the benchmark and its arguments ( #22160 )
...
* Avoid shred generation in ledger_cleanup.rs
* Update comment for test_ledger_cleanup_compaction to include benchmark information.
2022-01-04 23:35:55 -10:00
9f63493789
Refactor: Remove KeyedAccounts (2) ( #22274 )
...
* Adds InstructionContext::get_signers().
Improves error messages when modifying borrowed accounts.
* Removes keyed_accounts from InvokeContext tests.
* Removes keyed_accounts from message_processor.rs
* Removes keyed_accounts from bank.rs
* Removes keyed_accounts from bpf serialization.
2022-01-05 09:39:37 +01:00
c1995c647b
fix(rpc): recreate dead and uncleaned subscriptions ( #22281 )
2022-01-05 00:15:21 -07:00
5bb376f304
Fix CONTRIBUTING wording ( #22291 )
...
Co-authored-by: Seth Girvan <seth@ahoy.fund >
2022-01-05 06:27:10 +00:00
45458e7139
Refactor: Improve type safety and readability of transaction execution ( #22215 )
...
* Refactor Bank::load_and_execute_transactions
* Refactor: improve type safety of TransactionExecutionResult
* Add enum for extra type safety in execution results
* feedback
2022-01-05 10:15:15 +08:00
e201b41341
Avoid shred generation in ledger_cleanup.rs ( #22091 )
2022-01-04 15:29:43 -10:00
af7a2e3daa
Update metrics subdomain
2022-01-04 20:14:41 -05:00
9725f2e319
docs: Fix typo in proposal ( #22282 )
2022-01-04 22:11:51 +00:00
212e6ea4a4
Remove obsolete M1 setup information
2022-01-04 21:14:13 +00:00
379feecae5
patches bug in recv_mmsg when npkts != nrecv
...
If recv_mmsg receives 2 packets where the first one is filtered out,
then it returns npkts == 1:
https://github.com/solana-labs/solana/blob/01a096adc/streamer/src/recvmmsg.rs#L104-L115
But then streamer::packet::recv_from will erroneously keep the 1st
packet and drop the 2nd one:
https://github.com/solana-labs/solana/blob/01a096adc/streamer/src/packet.rs#L34-L49
To avoid this bug, this commit updates recv_mmsg to always return total
number of received packets. If socket address cannot be correctly
obtained, it is left as the default value which is UNSPECIFIED:
https://github.com/solana-labs/solana/blob/01a096adc/sdk/src/packet.rs#L145
2022-01-04 21:06:59 +00:00
4b24499916
removes total-size from return value of recv_mmsg
2022-01-04 21:06:59 +00:00
6c65734330
Bump hidapi from 1.3.0 to 1.3.2 ( #22265 )
...
* Bump hidapi from 1.3.0 to 1.3.2
Bumps [hidapi](https://github.com/ruabmbua/hidapi-rs ) from 1.3.0 to 1.3.2.
- [Release notes](https://github.com/ruabmbua/hidapi-rs/releases )
- [Commits](https://github.com/ruabmbua/hidapi-rs/commits )
---
updated-dependencies:
- dependency-name: hidapi
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-01-04 10:47:58 -07:00
1460f00e0f
Consume from AccountsDataMeter ( #21994 )
2022-01-04 10:00:21 -06:00
01a096adc8
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
2022-01-04 13:53:40 +00:00
73a7741c49
uses std::net::IpAddr type for Packet.Meta.addr
2022-01-04 13:53:40 +00:00
aa9f7ed7e8
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
2022-01-04 13:53:40 +00:00
2486e21ffe
Lower vote-only-mode to 400 ( #22210 )
2022-01-04 12:49:14 +01:00
ca5591bfa0
Updates to the address lookup table proposal ( #22269 )
2022-01-04 11:35:20 +00:00
9665da9d0b
Documentation typos ( #22262 )
...
* Fix typo markdown link
* Add missing punctuation full stop
2022-01-04 18:49:14 +08:00
ca8fef5855
retransmit consecutive leader blocks ( #22157 )
2022-01-04 00:24:16 -08:00
2b5e00d36d
Limit number of accounts that a transaction can lock ( #22201 )
2022-01-04 14:25:23 +08:00
8b6310b179
fix: add owner to token balance type
2022-01-03 20:31:42 -08:00
e8b7f96a89
Add struct BlockstoreOptions ( #22121 )
2022-01-03 18:30:45 -10:00
33ad74fbcd
chore: add encoding param to getMultipleAccounts
2022-01-03 19:26:03 -08:00
6895eb7ef6
Correctly set CI_COMMIT when Buildkite provides HEAD instead of a real commit
2022-01-03 17:39:20 -08:00
25cb859ed0
Switch from arm64-apple-darwin to aarch64-apple-darwin to align with Rust's target names
2022-01-03 16:54:46 -08:00
5b6027bef0
Fixed issue #22124 -- missing historical data if slot updated later. ( #22193 )
...
* Fixed issue #22124 -- missing historical data if slot updated later.
* Fixed a couple of comments
2022-01-03 16:10:44 -08:00
ed0b47c6f8
Use experimential docker virtualization framework for arm64
2022-01-03 15:57:06 -08:00
20b61e28b6
Flip iter operations to keep associated address/header/packets together ( #22245 )
...
Flip iter operations to keep associated address/header/packets together
Before this change, if cast_socket_addr() returned a None for any
address/header pair, the subsequent zip() would misalign the
address/header pair and packet. So, this change zips all three together,
then does filter_map() so keep things aligned.
Additionally, compute total_size inline to avoid running through packets
a second time.
2022-01-03 17:15:50 -06:00
73e6038986
Refactor: Remove KeyedAccount
from program runtime ( #22226 )
...
* Makes error handling in BorrowedAccount optional.
Adds BorrowedAccount ::get_rent_epoch().
Exposes InstructionContext::get_index_in_transaction().
Turns accounts and account_keys into pinned boxed slices.
* Introduces "unsafe" to InvokeContext::push().
* Turns &TransactionContext into &mut TransactionContext in InvokeContext.
* Push and pop InstructionContext in InvokeContext.
Makes test_process_cross_program and test_native_invoke symmetric.
Removes the borrow check from test_invoke_context_verify.
* Removes keyed_accounts from prepare_instruction()
* Removes usage of invoke_stack.
* Removes keyed_accounts from program-test.
* Removes caller_write_privileges.
* Removes keyed_accounts from BPF parameter (de-)serialization.
2022-01-03 23:30:56 +01:00
672fed04cb
Bump serde from 1.0.132 to 1.0.133 ( #22233 )
...
* Bump serde from 1.0.132 to 1.0.133
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.132 to 1.0.133.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.132...v1.0.133 )
---
updated-dependencies:
- dependency-name: serde
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-01-03 22:19:39 +00:00
005592998d
Fix bug, add error specific timings ( #22225 )
2022-01-03 16:33:54 -05:00
69d71f8f86
removes epoch_authorized_voters from VoteTracker ( #22192 )
...
https://github.com/solana-labs/solana/pull/22169
verifies authorized-voter early on in vote-listener pipeline; and so
VoteTracker no longer needs to maintain and check for epoch authorized
voters.
2022-01-03 21:07:47 +00:00
b18462737e
Correctly set CI_OS_NAME for macOs buildkite agents
2022-01-03 12:54:05 -08:00
53777f2fbf
Add support for arm64-apple-darwin release/channel artifacts
2022-01-03 12:42:57 -08:00
bbe5b66324
Prevent lookup tables from being closed during deactivation slot ( #22221 )
2022-01-04 04:42:29 +08:00
0e4ede46d1
work around rust 39364 for stats_reporter_sender ( #22227 )
2022-01-03 11:46:02 -08:00
9029b46570
Fix token-balance owner type in docs ( #22240 )
2022-01-03 18:00:13 +00:00
ecbfc70bfa
Bump serde_json from 1.0.73 to 1.0.74 ( #22231 )
...
* Bump serde_json from 1.0.73 to 1.0.74
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.73 to 1.0.74.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.73...v1.0.74 )
---
updated-dependencies:
- dependency-name: serde_json
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-01-03 10:36:59 -07:00
56fd32bda2
Remove Xargo.toml reference
2022-01-03 17:12:45 +00:00
04b76eb066
Use AtomicUsize for next_bucket_to_flush ( #22095 )
2022-01-03 10:35:35 -06:00
fb62407232
AcctIdx: appendvecid: u32 ( #21842 )
2022-01-03 10:35:17 -06:00
2a00382d71
Refactor: cleanup solana_transaction_status crate ( #22230 )
2022-01-03 15:45:18 +00:00
86acd8f6f9
Update .gitignore
2022-01-03 19:30:09 +05:30
64b153fae0
connected github with vercel for preview deploy
2022-01-03 19:20:36 +05:30
ce6c76e45f
Remove unused serialization attributes from transaction status types ( #22228 )
2022-01-03 16:20:57 +08:00
d6ec103bee
Bump rbpf to v0.2.21 ( #22216 )
2022-01-01 20:22:48 +00:00
a2a7e91ad6
set secp256k1 cost similar to sigverify
2021-12-31 17:45:50 -06:00
d743c2917c
re-calibrate limit based on mainnet data, see issue #21917
2021-12-31 17:45:50 -06:00
0b1b36f088
Exit early on BigTable error ( #22200 )
2021-12-31 13:36:57 -07:00
8a43e2d889
Bump solana_rbpf to version v0.2.20 ( #22164 )
2021-12-31 19:50:45 +01:00
e529d03c11
Cleanup #22182 ( #22205 )
...
* Turns compute_units_consumed of ProcessInstructionResult into a &mut parameter.
* Removes second nesting level from test_process_instruction_compute_budget().
* Makes test_process_cross_program and test_native_invoke symmetric.
* Unifies test_process_cross_program(), test_native_invoke() and test_process_instruction_compute_budget() into test_process_instruction().
2021-12-31 17:55:27 +01:00
557d35ec79
Remove duplicate code in ledger_cleanup_compaction_test ( #22204 )
2021-12-31 11:19:33 -05:00
94a9b712b6
Fix check failure on ( #22202 )
2021-12-30 23:48:26 -10:00
f479ab7af2
ledger_cleanup test improvement (1/N) -- make the test lockless and simplify the logic ( #22090 )
2021-12-30 20:18:47 -10:00
d06e6c7425
Count compute units even when transaction errors ( #22182 )
2021-12-30 21:21:42 -05:00
95dfcc546a
bypass retransmission for slots without propagated stats ( #22176 )
2021-12-30 16:07:34 -08:00
4e4577afbe
chore: update transaction error links in docs ( #22189 )
2021-12-31 06:05:29 +08:00
736f974082
chore: fix typo in AccountInfo docs ( #22196 )
2021-12-31 06:03:42 +08:00
d421ccb330
simplifies parse [sanitized] vote transaction ( #22127 )
2021-12-30 16:03:03 +00:00
c0c6038654
checks for authorized voter early on in the vote-listener pipeline ( #22169 )
...
Before votes are verified that they are signed by the authorized voter,
they might be dropped in verified-vote-packets code. If there are
enough many spam votes from unauthorized voters, this may potentially
drop valid votes but keep the false ones.
https://github.com/solana-labs/solana/blob/57986f982/core/src/verified_vote_packets.rs#L165-L168
2021-12-30 15:03:14 +00:00
edb20d6909
Splits index of InstructionAccount into index_in_transaction and index_in_caller. ( #22165 )
2021-12-30 15:46:36 +01:00
3f88994e0f
explorer: Fix setting custom RPC URL ( #22187 )
2021-12-30 19:50:08 +08:00
29edb130cc
Update install/src/command.rs
...
Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com >
2021-12-30 00:47:46 -08:00
3c1416091e
Add connect timeout and change overall timeout to None
2021-12-30 00:47:46 -08:00
a1912f8400
fix: Installer increase download req timeout from 30 seconds to 6 minutes
2021-12-30 00:47:46 -08:00
70f6aff07f
explorer: Bump @solana/spl-token-registry to 0.2.1143 ( #22183 )
2021-12-30 08:24:15 +00:00
33d0b5e011
Revert "Count compute units even when transaction errors ( #22059 )" ( #22174 )
...
This reverts commit eaa8c67bde
.
2021-12-30 02:42:32 -05:00
135af08b8b
Add docs for notifying transactions via plugin ( #22097 )
...
* Added documentations for streaming transactions via plugin
* Updated comments for transaction info
* Updated doc on transaction format
* Removed a white space
* Apply suggestions from code review from Tyera
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2021-12-29 16:22:13 -08:00
972730924b
fix: add Sysvar PubKeys
...
* web3.js: Add Sysvar PubKeys
* remove fees sysvar
2021-12-29 16:30:34 -07:00
f14928a970
Stream additional block metadata via plugin ( #22023 )
...
* Stream additional block metadata through plugin
blockhash, block_height, block_time, rewards are streamed
2021-12-29 15:12:01 -08:00
c9c78622a8
discards serialized gossip crds votes if cannot parse tx ( #22129 )
2021-12-29 19:31:26 +00:00
b1d9a2e60e
Don't forward packets received from TPU forwards port ( #22078 )
...
* Don't forward packets received from TPU forwards port
* Add banking stage test
2021-12-29 19:34:31 +01:00
d20a3774db
Bump lru from 0.7.1 to 0.7.2 ( #22161 )
...
Bumps [lru](https://github.com/jeromefroe/lru-rs ) from 0.7.1 to 0.7.2.
- [Release notes](https://github.com/jeromefroe/lru-rs/releases )
- [Changelog](https://github.com/jeromefroe/lru-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/jeromefroe/lru-rs/compare/0.7.1...0.7.2 )
---
updated-dependencies:
- dependency-name: lru
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-29 10:47:37 -07:00
bac6821e19
get_signatures_for_address does not correctly account for result sets that span local and Bigtable sources ( #22115 )
...
* get_signatures_for_address does not correctly account for result sets that span Blockstore and Bigtable.
This causes Bigtable to return `RowNotFound` until the new tx is uploaded.
Check that `before` exists in Bigtable, and if not, set it to `None` to return the full data set.
References #21442
Closes #22110
* Differentiate between before sig not found and no newer signatures
* Dedupe bigtable results to account for potential upload race
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2021-12-29 10:25:10 -07:00
57986f982a
cargo-build-bpf: Add Windows support ( #20276 )
...
* cargo-build-bpf: Add Windows support
* Update error message
2021-12-28 18:37:35 -05:00
eaa8c67bde
Count compute units even when transaction errors ( #22059 )
2021-12-28 17:05:11 -05:00
f061059e45
Prevent log spam ( #22148 )
2021-12-28 17:04:48 -05:00
f8c97a3d1f
fix bank-benching test
2021-12-28 15:21:24 -06:00
3d6ab96587
push live packets straight to buffer, leader only process packets from buffer
2021-12-28 15:21:24 -06:00
c7b0917e1a
Fix program log filtering ( #22133 )
2021-12-28 12:13:03 -08:00
422a095647
Add (preflight) simulation to BanksClient ( #22084 )
...
* 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
2021-12-28 19:25:46 +00:00
e61a736d44
Revert host
...
Revert host
2021-12-28 18:22:20 +03:00
f2c51653e4
Update init
...
As know that hostname was changed
2021-12-28 17:35:45 +03:00
e3b20c443a
Use load_accounts_data_len() instead of Atomic .load() ( #22144 )
2021-12-28 13:38:20 +00:00
800472ddf5
Add AccountsDataMeter to InvokeContext ( #21813 )
2021-12-28 05:14:48 -06:00
e1a0660948
stopped explorer_preview.yml
...
after connecting the repo to the vercel we have to specify root directory in vercel setting
2021-12-28 11:38:54 +05:30
a06646631c
Feature: TransactionContext, InstructionContext and BorrowedAccount ( #21706 )
...
* Adds TransactionContext, InstructionContext and BorrowedAccount.
* Redirects the usage of accounts in InvokeContext through TransactionContext.
Also use the types declared in transaction_context.rs everywhere.
* Adjusts all affected tests.
2021-12-27 18:49:32 +01:00
bb97c8fdcd
Bump zstd from 0.9.0+zstd.1.5.0 to 0.9.1+zstd.1.5.1 ( #22105 )
...
* Bump zstd from 0.9.0+zstd.1.5.0 to 0.9.1+zstd.1.5.1
Bumps [zstd](https://github.com/gyscos/zstd-rs ) from 0.9.0+zstd.1.5.0 to 0.9.1+zstd.1.5.1.
- [Release notes](https://github.com/gyscos/zstd-rs/releases )
- [Commits](https://github.com/gyscos/zstd-rs/compare/0.9.0...0.9.1 )
---
updated-dependencies:
- dependency-name: zstd
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 >
2021-12-25 21:26:55 -07:00
f643a8b425
docs: fix typo ( #22116 )
2021-12-25 21:12:06 -07:00
0a0fc85282
Add PubsubClient::vote_subscribe
2021-12-25 13:21:05 -08:00
77b26b62e0
Bump anyhow from 1.0.51 to 1.0.52 ( #22106 )
...
* Bump anyhow from 1.0.51 to 1.0.52
Bumps [anyhow](https://github.com/dtolnay/anyhow ) from 1.0.51 to 1.0.52.
- [Release notes](https://github.com/dtolnay/anyhow/releases )
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.51...1.0.52 )
---
updated-dependencies:
- dependency-name: anyhow
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 >
2021-12-25 12:22:57 -07:00
cc947cad03
Refactor: CPI Instruction Recording ( #22111 )
...
* Unifies all InstructionRecorders of a transaction into one.
* Stops explicitly compiling CPI instructions for recording,
uses the indices gathered from instruction_accounts instead.
2021-12-25 13:35:43 +01:00
60ddd93d09
Cleanup: invoke_context.rs ( #22107 )
...
* Removes message::Message from invoke_context.rs completely.
* Simplifies sol_invoke_signed() of program-test
* Start search for non program accounts at front (instead of the back).
Program and programdata accounts use rposition(), everything else uses position().
2021-12-25 10:00:40 +01:00
b89cd8cd1a
Avoid cloning Vec<Entry> when calling entries_to_test_shreds() ( #22093 )
2021-12-24 12:32:43 -08:00
2ab4f34c02
Refactor: Remove Message
and CompiledInstruction
from InvokeContext
interfaces ( #22102 )
...
* Introduces InstructionAccount which is like AccountMeta but uses an index instead of a Pubkey
* Renames InvokeContext::create_message() to InvokeContext::prepare_instruction()
* Removes Message and CompiledInstruction from InvokeContext interfaces.
* Resolves TODOs of sol_invoke_signed() in program-test.
* Moves CompiledInstruction::visit_each_account() into invoke_context.rs
2021-12-24 16:17:55 +01:00
214b561a28
banks-client: Update return type to BanksClientError
( #22058 )
2021-12-24 09:44:19 -05:00
ec7536faf6
Add test to enforce that program id account info for CPI is optional ( #22069 )
...
* 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
2021-12-24 00:43:15 +01:00
b93ab5d295
validator: add contact-info query to admin port
2021-12-23 20:50:21 +00:00
d06c04d02c
Update checks.rs
2021-12-23 05:14:37 -08:00
52c1eb0160
Remove msg spam from deploying
2021-12-23 05:14:37 -08:00
93c776ce19
Refactor packet deduplication and harden bench test ( #22080 )
2021-12-22 23:05:10 -06:00
f10407dbc3
Update release documentation ( #22086 )
2021-12-22 22:51:32 -06:00
298c2d0f62
Display bpf-tools version in cargo-build-bpf version string ( #22061 )
...
* Display bpf-tools version in cargo-build-bpf version string
* Print cargo-build-bpf version in CI for reference in stable-bpf jobs
2021-12-22 23:10:25 +00:00
67c8034fe5
Update jsonrpc-api.md to document 'owner' property ( #22074 )
...
* Update jsonrpc-api.md to document 'owner' property
Documents 'owner' property on the token balances struct.
* Update docs/src/developing/clients/jsonrpc-api.md
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2021-12-22 21:48:27 +00:00
dd80a525ef
Leader QoS service metrics ( #21708 )
...
* - qos_service metrics tagged with leader thread ids to separate gossip/tpu votes and transactions;
- qos_service metrics is reported with bank slot;
- replaced timer-based reporting with signal via channel; removed async report test as qos_service now lives within a thread
* - add tpu live packets (eg, not buffered packets) states to qos metrics reporting
2021-12-22 21:39:59 +00:00
2be139ca61
Disk Buckets: cleanup api (is_free) ( #22068 )
2021-12-22 15:12:34 -06:00
37f6777ceb
Increment execution timings on errors as well ( #22053 )
2021-12-22 15:07:07 -05:00
f67ecd5c18
removes unused Cargo dependencies ( #22022 )
...
Also moving some to [dev-dependencies] so that they are not propagated
to other packages which depend on the package.
2021-12-22 17:01:33 +00:00
61cc7b10a9
AcctIdx: respect disk idx mem size param ( #22050 )
2021-12-22 09:54:05 -06:00
4d62f03297
uses enum instead of trait for VoteTransaction ( #22019 )
...
Box<dyn Trait> involves runtime dispatch, has significant overhead and
is slow. It also requires hacky boilerplate code for implementing Clone
or other basic traits:
https://github.com/solana-labs/solana/blob/e92a81b74/programs/vote/src/vote_state/mod.rs#L70-L102
Only limited known types can be VoteTransaction and they are all defined
in the same crate. So using a trait here only adds overhead.
https://github.com/solana-labs/solana/blob/e92a81b74/programs/vote/src/vote_state/mod.rs#L125-L165
https://github.com/solana-labs/solana/blob/e92a81b74/programs/vote/src/vote_state/mod.rs#L221-L264
2021-12-22 14:25:46 +00:00
d6de4a2f4e
Fix transaction pk violation ( #22057 )
...
* Handle PK violation issue for transaction notification. The transaction might be replayed due to
validator restart.
2021-12-22 00:58:51 -08:00
bf8fbf8383
Add code comment for handle_chaining in blockstore.rs ( #21876 )
2021-12-21 22:36:24 -08:00
3155a04189
Add comment block for insert_shreds_handle_duplicate in blockstore.rs ( #21877 )
2021-12-21 22:36:13 -08:00
ddde356b33
bump tarpc from 0.26.2 to 0.27.2 and add BanksClientError ( #21739 )
...
* chore: bump tarpc from 0.26.2 to 0.27.2
Bumps [tarpc](https://github.com/google/tarpc ) from 0.26.2 to 0.27.2.
- [Release notes](https://github.com/google/tarpc/releases )
- [Changelog](https://github.com/google/tarpc/blob/master/RELEASES.md )
- [Commits](https://github.com/google/tarpc/commits )
---
updated-dependencies:
- dependency-name: tarpc
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
* Accommodate breaking changes
* Reword incorrect error message
* Add error module
* Revert client Error type to io::Error; easy transition to BanksClientError
* Bump tracing crates in programs
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-12-22 02:31:02 +00:00
7cc6262b5a
Bump bpf-tools to v1.21
2021-12-21 16:40:42 -08:00
bdae2993e0
AcctIdx: hold ranges in memory uses multiple threads ( #22031 )
2021-12-21 17:31:48 -06:00
5b464a32f5
Disk Buckets: unlock verifies expected ( #22052 )
2021-12-21 16:35:59 -06:00
9c5d82557a
skip reporting all-zero stats
2021-12-21 16:20:36 -06:00
1c0cd2cbb4
DiskBuckets: remove unnecessary atomic on uid ( #22039 )
2021-12-21 15:50:39 -06:00
b36f7151fc
Disk buckets: abstract UID_UNLOCKED ( #22051 )
2021-12-21 14:51:38 -06:00
711856cad3
disk buckets: clone_from_slice -> copy_from_slice ( #22038 )
2021-12-21 13:52:03 -06:00
84eaaae062
disk_buckets: factor out unsafe code ( #22028 )
2021-12-21 13:50:04 -06:00
d896ff74ec
Remove Apple M1 resolver workaround
2021-12-21 08:30:36 -08:00
ba8e15848e
Fix #21986 ( #22035 )
...
* Partial revert "Updates documentation around what needs to be passed in CPI. (#21633 )"
* Enforces the program_id being passed explicitly by removing it from get_instruction_keyed_accounts().
* instruction_accounts => instructions_account
2021-12-21 12:53:22 +01:00
41ec7c8be9
chore: bump num_cpus from 1.13.0 to 1.13.1 ( #22044 )
...
* chore: bump num_cpus from 1.13.0 to 1.13.1
Bumps [num_cpus](https://github.com/seanmonstar/num_cpus ) from 1.13.0 to 1.13.1.
- [Release notes](https://github.com/seanmonstar/num_cpus/releases )
- [Changelog](https://github.com/seanmonstar/num_cpus/blob/master/CHANGELOG.md )
- [Commits](https://github.com/seanmonstar/num_cpus/compare/v1.13.0...v1.13.1 )
---
updated-dependencies:
- dependency-name: num_cpus
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 >
2021-12-21 00:06:14 -07:00
252b0554ca
docs: corrected the grammar ( #22046 )
2021-12-21 06:50:36 +00:00
69d0b08dd8
chore: bump lru from 0.7.0 to 0.7.1 ( #22018 )
...
Bumps [lru](https://github.com/jeromefroe/lru-rs ) from 0.7.0 to 0.7.1.
- [Release notes](https://github.com/jeromefroe/lru-rs/releases )
- [Changelog](https://github.com/jeromefroe/lru-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/jeromefroe/lru-rs/compare/0.7.0...0.7.1 )
---
updated-dependencies:
- dependency-name: lru
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-20 21:56:56 -07:00
3356c6afb2
chore: bump signal-hook from 0.3.12 to 0.3.13 ( #22037 )
...
Bumps [signal-hook](https://github.com/vorner/signal-hook ) from 0.3.12 to 0.3.13.
- [Release notes](https://github.com/vorner/signal-hook/releases )
- [Changelog](https://github.com/vorner/signal-hook/blob/master/CHANGELOG.md )
- [Commits](https://github.com/vorner/signal-hook/compare/v0.3.12...v0.3.13 )
---
updated-dependencies:
- dependency-name: signal-hook
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-20 21:40:16 -07:00
2347f65133
The sidebar for the plugin doc is showing the item as "Overview", corrected the styles ( #22033 )
2021-12-20 17:26:43 -08:00
755e816521
chore: bump bytemuck from 1.7.2 to 1.7.3 ( #22032 )
...
* chore: bump bytemuck from 1.7.2 to 1.7.3
Bumps [bytemuck](https://github.com/Lokathor/bytemuck ) from 1.7.2 to 1.7.3.
- [Release notes](https://github.com/Lokathor/bytemuck/releases )
- [Changelog](https://github.com/Lokathor/bytemuck/blob/main/changelog.md )
- [Commits](https://github.com/Lokathor/bytemuck/compare/v1.7.2...v1.7.3 )
---
updated-dependencies:
- dependency-name: bytemuck
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 >
2021-12-20 16:34:55 -07:00
f5d1115468
Add deactivation cooldown before address lookup tables can be closed ( #22011 )
2021-12-20 17:33:46 -06:00
c0c3d7c1f2
fix: add publickey toJSON ( #22004 )
2021-12-20 15:16:32 -06:00
e810400716
chore: bump futures from 0.3.18 to 0.3.19 ( #22020 )
...
* chore: bump futures from 0.3.18 to 0.3.19
Bumps [futures](https://github.com/rust-lang/futures-rs ) from 0.3.18 to 0.3.19.
- [Release notes](https://github.com/rust-lang/futures-rs/releases )
- [Changelog](https://github.com/rust-lang/futures-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/futures-rs/compare/0.3.18...0.3.19 )
---
updated-dependencies:
- dependency-name: futures
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 >
2021-12-20 20:45:19 +00:00
116517fb6d
Fix weird formatting of bullets ( #22013 )
2021-12-20 13:16:13 -07:00
b8eff3456c
Update program close docs ( #22026 )
2021-12-20 10:30:06 -08:00
eeb063b957
chore: bump futures-util from 0.3.18 to 0.3.19 ( #22017 )
...
* chore: bump futures-util from 0.3.18 to 0.3.19
Bumps [futures-util](https://github.com/rust-lang/futures-rs ) from 0.3.18 to 0.3.19.
- [Release notes](https://github.com/rust-lang/futures-rs/releases )
- [Changelog](https://github.com/rust-lang/futures-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/futures-rs/compare/0.3.18...0.3.19 )
---
updated-dependencies:
- dependency-name: futures-util
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 >
2021-12-20 09:35:34 -07:00
e92a81b741
typo: lanaguage -> language ( #22009 )
2021-12-19 22:33:21 -07:00
65d59f4ef0
tracks erasure coding shreds' indices explicitly ( #21822 )
...
The indices for erasure coding shreds are tied to data shreds:
https://github.com/solana-labs/solana/blob/90f41fd9b/ledger/src/shred.rs#L921
However with the upcoming changes to erasure schema, there will be more
erasure coding shreds than data shreds and we can no longer infer coding
shreds indices from data shreds.
The commit adds constructs to track coding shreds indices explicitly.
2021-12-19 22:37:55 +00:00
df6a4930b9
chore: add blockSubscribe api docs ( #22002 )
...
Co-authored-by: Zano <segfaultdoctor@protonmail.com >
2021-12-19 09:23:28 -07:00
301d585d47
chore: bump nix from 0.23.0 to 0.23.1 ( #21998 )
...
* chore: bump nix from 0.23.0 to 0.23.1
Bumps [nix](https://github.com/nix-rust/nix ) from 0.23.0 to 0.23.1.
- [Release notes](https://github.com/nix-rust/nix/releases )
- [Changelog](https://github.com/nix-rust/nix/blob/master/CHANGELOG.md )
- [Commits](https://github.com/nix-rust/nix/compare/v0.23.0...v0.23.1 )
---
updated-dependencies:
- dependency-name: nix
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 >
2021-12-18 11:04:45 -07:00
7476dfeec0
removes Select in favor of recv_timeout/try_iter ( #21981 )
...
crossbeam_channel::Select::ready_timeout might return with success spuriously.
2021-12-18 17:39:07 +00:00
3fe942ab30
new net-stats require a new table ( #21996 )
2021-12-18 00:13:16 -08:00
8f547a6c98
chore: bump serde from 1.0.131 to 1.0.132 ( #21989 )
...
* chore: bump serde from 1.0.131 to 1.0.132
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.131 to 1.0.132.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.131...v1.0.132 )
---
updated-dependencies:
- dependency-name: serde
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 >
2021-12-18 07:45:20 +00:00
7f6fb6937a
Ensure AncestorHashesSerice selects an open port ( #21919 )
2021-12-18 00:44:01 -05:00
97a1fa10a6
streamer send destination metrics for repair, gossip ( #21564 )
2021-12-17 15:21:05 -08:00
76098dd42a
RPC Block Subscription ( #21787 )
...
* add stuff
* compiling
* add notify block
* wip
* feat: add blockSubscribe pubsub method
* address PR comments
Co-authored-by: Lucas B <buffalu@jito.network >
Co-authored-by: Zano <segfaultdoctor@protonmail.com >
2021-12-17 16:03:09 -07:00
5f054cd51b
Update to reed-solomon-erasure 5.0.1, to get simd-accel on M1 macs
2021-12-17 14:19:39 -08:00
68a2570ebd
chore: bump digest from 0.10.0 to 0.10.1 ( #21977 )
...
* chore: bump digest from 0.10.0 to 0.10.1
Bumps [digest](https://github.com/RustCrypto/traits ) from 0.10.0 to 0.10.1.
- [Release notes](https://github.com/RustCrypto/traits/releases )
- [Commits](https://github.com/RustCrypto/traits/compare/digest-v0.10.0...digest-v0.10.1 )
---
updated-dependencies:
- dependency-name: digest
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 >
2021-12-17 14:30:42 -07:00
94aa9e568a
Mango instruction decoding: use generic helper from mango-client (which is often auto updated by dependabot) instead of relying on a manual instruction lookup table ( #21985 )
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com >
2021-12-17 19:46:34 +00:00
0f6e8d3385
Check file size of snapshot_version
when unarchiving snapshot ( #21925 )
2021-12-17 12:27:54 -06:00
70f96bda25
disk buckets: refactor ( #21972 )
2021-12-17 10:16:34 -06:00
8ed7ad5fa7
AcctIdx: hold range recognizes already held ranges ( #21937 )
2021-12-17 10:04:41 -06:00
056f2e9e67
removed explorer .travis.yml from main .travis.yml
2021-12-17 21:30:39 +05:30
729698e815
AcctIdx: items() uses held ranges ( #21954 )
2021-12-17 09:59:29 -06:00
af53d2f692
simplify api on reconstruct_single_storage ( #21970 )
2021-12-17 09:06:23 -06:00
c04737ae69
added explorer .travis.yml for PR related issues
2021-12-17 20:32:05 +05:30
89d66c3210
removes next_shred_index from return value of entries to shreds api ( #21961 )
...
next-shred-index is already readily available from returned data shreds.
The commit simplifies the api for upcoming changes to erasure coding
schema which will require explicit tracking of indices for coding shreds
as well as data shreds.
2021-12-17 15:01:55 +00:00
7ec39f5a1e
time based retransmit in replay_stage ( #21498 )
2021-12-17 05:44:40 -08:00
66fa8f9667
Refactor: Removes Rc
from Refcell<AccountSharedData>
in the program-runtime ( #21927 )
...
* Removes Rc from Rc<RefCell<AccountSharedData>> in the program-runtime.
* Adjusts tests in bpf_loader, system_instruction_processor, config_processor, vote_instruction and stake_instruction
2021-12-17 14:01:12 +01:00
56ec5245cc
chore: bump tokio from 1.14.0 to 1.15.0 ( #21966 )
...
* chore: bump tokio from 1.14.0 to 1.15.0
Bumps [tokio](https://github.com/tokio-rs/tokio ) from 1.14.0 to 1.15.0.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.14.0...tokio-1.15.0 )
---
updated-dependencies:
- dependency-name: tokio
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 >
2021-12-17 00:29:49 -07:00
c4389a6675
AcctIdx: held ranges search in lifo order ( #21964 )
2021-12-16 23:25:22 -06:00
5d40da5688
log "next_id" to track append vec ids ( #21971 )
2021-12-16 22:41:34 -06:00
6374995522
AcctIdx: share bucket map size for perf ( #21935 )
2021-12-16 21:25:54 -06:00
ba777f4f56
AcctIdx: remove Option from held ranges ( #21958 )
2021-12-16 21:22:04 -06:00
385efae4b3
Remove need to send bank in retransmit request from ReplayStage ( #21943 )
...
* Remove need to send bank in retransmitter
2021-12-16 21:11:01 -05:00
e11a1911ad
load_accounts_index_for_shrink ignores cached entries ( #21951 )
2021-12-16 16:37:08 -06:00
6ff0be6a82
Clean up demote program write lock feature ( #21949 )
...
* Clean up demote program write lock feature
* fix test
2021-12-16 17:27:22 -05:00
a5769c029f
chore: bump tar from 0.4.37 to 0.4.38 ( #21921 )
...
* chore: bump tar from 0.4.37 to 0.4.38
Bumps [tar](https://github.com/alexcrichton/tar-rs ) from 0.4.37 to 0.4.38.
- [Release notes](https://github.com/alexcrichton/tar-rs/releases )
- [Commits](https://github.com/alexcrichton/tar-rs/compare/0.4.37...0.4.38 )
---
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
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot-buildkite <dependabot-buildkite@noreply.solana.com >
2021-12-16 15:06:56 -07:00
347323cbb2
use bg thread pool for shrink ( #21950 )
2021-12-16 15:54:38 -06:00
3398f5a2f5
Update getSignaturesForAddress and getConfirmedSignaturesForAddress2 RPC call description ( #21955 )
...
* Update jsonrpc-api.md
* Update docs/src/developing/clients/jsonrpc-api.md
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
* Wrap 80chars
* Update docs/src/developing/clients/jsonrpc-api.md
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2021-12-16 19:19:41 +00:00
efd64a3862
simplifies ShredIndex api ( #21932 )
2021-12-16 19:17:32 +00:00
e83ca4bb28
Clean up test_ledger_cleanup_compaction prints ( #21875 )
...
- Use info!()/warn!() over println!()/eprintln!()
- Make status prints consistent
- Add default RUST_LOG filter to see test printouts
- Adjust reported data to show shreds and rates we care about
2021-12-16 11:24:29 -06:00
e97da0ea15
AcctIdx: define type for serialized AppendVecId ( #21938 )
2021-12-16 08:41:01 -06:00
18417e410e
AcctIdx: remove troublesome assert ( #21947 )
2021-12-16 08:37:05 -06:00
8183f28636
adds ErasureSetId identifying erasure coding sets of shreds ( #21928 )
2021-12-16 14:18:55 +00:00
49cb161203
Fixes the calculation of the "compute_meter_consumption" across process_instruction() and process_message(). ( #21944 )
2021-12-16 15:15:58 +01:00
82672b40fd
AcctIdx: streamline metric update ( #21936 )
2021-12-15 19:52:23 -06:00
1e0d3f13e6
AcctIdx: fix metrics bug ( #21934 )
2021-12-15 17:05:38 -06:00
635337d2ff
Bank gets accounts data len delta from MessageProcessor::process_message()
2021-12-15 16:41:38 -06:00
46e5350d8c
AcctInfo: store offset in AccountInfo as u32 ( #21895 )
2021-12-15 15:41:11 -06:00
e5be96d8bf
AcctIdx: consolidate next_id calls ( #21929 )
2021-12-15 15:39:54 -06:00
882f886450
Add comment block for commit_slot_meta_working_set in blockstore.rs ( #21852 )
2021-12-15 13:12:50 -08:00
e374fb1d60
Add code comment for get_slot_meta_entry in blockstore.rs ( #21844 )
2021-12-15 13:12:38 -08:00
5fb7da12f2
add caching_enabled option to test-validator
2021-12-15 11:45:31 -08:00
ed924e3bc4
Update argument name
2021-12-15 11:05:02 -08:00
9b06d64eb8
Add option to load accounts from file
...
This introduces the `--clone-from-file` option for
solana-test-validator. It allows specifying any number of files
(without extension) containing account info and data, which will be
loaded at genesis. This is similar to `--bpf-program` for programs
loading.
The files will be searched for in the CWD or in `tests/fixtures`.
Example: `solana-test-validator --clone-from-file SRM_token USD_token`
2021-12-15 11:05:02 -08:00
0e9e67b65d
Add complete account dump to file
...
This commit introduces the ability to dump the complete content of an
account to a JSON file (compact or not depending on the provided format
option).
Example:
```sh
solana account -u m \
--output json-compact \
--output-file SRM_token.json \
SRMuApVNdxXokk5GT7XD5cUUgXMBCoAz2LHeuAoKWRt
```
Note: Behavior remains untouched if format option `--output` is not
provided (only account data gets written to file).
2021-12-15 11:05:02 -08:00
9797af6f85
chore: bump backoff from 0.3.0 to 0.4.0 ( #21922 )
...
Bumps [backoff](https://github.com/ihrwein/backoff ) from 0.3.0 to 0.4.0.
- [Release notes](https://github.com/ihrwein/backoff/releases )
- [Commits](https://github.com/ihrwein/backoff/compare/v0.3.0...v0.4.0 )
---
updated-dependencies:
- dependency-name: backoff
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-12-15 11:20:04 -07:00
41dd31e5f4
AcctIdx: move cached store id to bit ( #21892 )
...
* AcctIdx: move cached store id to bit
* add comments/rename
2021-12-15 11:49:24 -06:00
02fa135815
AcctIdx: create test fn get_test() to isolate changes to AcctIdx::get() ( #21909 )
2021-12-15 09:09:56 -06:00
71b12b1f56
Add comment for clear_unconfirmed_slot() in blockstore.rs ( #21837 )
2021-12-15 00:37:09 -08:00
e476e17abf
Add code comment for check_insert_data_shred in blockstore.rs ( #21845 )
2021-12-15 00:36:11 -08:00
e124659aca
Restore solana_validator::test_validator export
2021-12-15 00:22:27 -08:00
c2a94a8fb0
add accountsdb-plugin-config to test-validator
2021-12-14 23:42:55 -08:00
8d22ca5076
Add helper crate to generate syscalls.txt
2021-12-14 21:20:13 -08:00
dcd2854829
Add json support for feature sets; also print output after feature list ( #21905 )
...
* Add json support for feature sets; also print output after feature list
* Move stringifying into Display implementation
2021-12-15 05:11:08 +00:00
7ba27e5cae
Update openssl-src package to resolve cargo audit complaint
2021-12-14 19:04:59 -08:00
2a6dcb2ffd
Futures 0.3.18 has been yanked, back off to .17
2021-12-14 14:14:43 -08:00
dcb5849484
Document solana_program::instruction ( #21817 )
...
* 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 >
2021-12-14 21:35:22 +00:00
e4f7af0b48
Eagerly receive records in sleepy tick producer ( #21832 )
2021-12-14 16:25:28 -05:00
9da826421a
Don't publish rbpf-cli to crates.io
2021-12-14 12:12:47 -08:00
003ba1f092
Don't publish poh-bench to crates.io
2021-12-14 12:09:39 -08:00
f4308bdb64
AcctIdx: StoredSize is u32 ( #21894 )
2021-12-14 13:50:19 -06:00
cb395abff7
Fix subtraction overflow ( #21871 )
2021-12-14 14:24:22 -05:00
e694acaf5f
AcctIdx: better types for AccountInfo ( #21893 )
2021-12-14 13:08:49 -06:00
8d980f07ba
uses Option<Slot> for SlotMeta.parent_slot ( #21808 )
...
SlotMeta.parent_slot for the head of a detached chain of slots is
unknown and that is indicated by u64::MAX which lacks type-safety:
https://github.com/solana-labs/solana/blob/6c108c8fc/ledger/src/blockstore_meta.rs#L203-L205
The commit changes the type to Option<Slot>. Backward compatibility is
maintained by customizing serde serialize/deserialize implementations.
2021-12-14 18:57:11 +00:00
d13a5056f1
Typo ( #21898 )
...
Sentence grammatically incomplete. "Typo"
2021-12-14 18:04:38 +00:00
4ceb2689f5
adds ShredId uniquely identifying each shred ( #21820 )
2021-12-14 17:34:02 +00:00
426f2507d5
chore: bump serde_yaml from 0.8.21 to 0.8.23 ( #21867 )
...
* chore: bump serde_yaml from 0.8.21 to 0.8.23
Bumps [serde_yaml](https://github.com/dtolnay/serde-yaml ) from 0.8.21 to 0.8.23.
- [Release notes](https://github.com/dtolnay/serde-yaml/releases )
- [Commits](https://github.com/dtolnay/serde-yaml/compare/0.8.21...0.8.23 )
---
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 >
2021-12-14 10:23:26 -07:00
ec583bd12d
AcctIdex: use StorageLocation ( #21853 )
2021-12-14 10:27:17 -06:00
b610e5503e
Fixed a typo in the SQL statement ( #21872 )
...
* Fixed a typo in the SQL statement
* Fixed additional two errors in the postgres database objects
2021-12-14 08:26:59 -08:00
e19c7923c3
chore: fix typo in shred.rs ( #21890 )
...
begining -> beginning
2021-12-14 11:19:27 -05:00
509bcd2e74
Bump rbpf to v0.2.19 ( #21880 )
...
* Bump rbpf to v0.2.19
Co-authored-by: Alexander Meißner <AlexanderMeissner@gmx.net >
2021-12-14 16:51:23 +01:00
a86fe899ac
AcctIdx: move zero lamport out of accounts index ( #21526 )
2021-12-14 09:31:42 -06:00
4adc8b133f
Refactor: Remove Rc from PreAccount and InvokeContext::get_account() ( #21882 )
...
* Removes Rc and RefCell from PreAccount
* Splits get_account() into find_index_of_account() and get_account_at_index()
in order to remove Rc from return type.
2021-12-14 15:44:31 +01:00
c92c09a8be
Remove activated feature for removing inactive delegations from stakes cache ( #21732 )
...
* Remove activated feature for removing inactive delegations from stakes cache
* Fix builtin purging
2021-12-14 09:23:36 -05:00
e5476913fe
Remove activated feature that checks tx signature len ( #21747 )
2021-12-14 09:23:05 -05:00
746869fdac
Add missing word "that" ( #21878 )
2021-12-14 09:20:31 -05:00
033106ed81
Add solana-cli-config link to rust-api.md ( #21840 )
2021-12-14 00:33:10 -07:00
8a63812c4e
chore: bump libc from 0.2.109 to 0.2.112 ( #21870 )
...
* chore: bump libc from 0.2.109 to 0.2.112
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.109 to 0.2.112.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.109...0.2.112 )
---
updated-dependencies:
- dependency-name: libc
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 >
2021-12-14 00:27:57 -07:00
4a9d7318d1
Rework test parameters to be shreds instead of entries ( #21780 )
...
The number of shreds that result from a given number of entries is
variable and in our test case, somewhat unintuitive to think about when
trying to determine how much data we're pushing into the blockstore. So,
this change converts the unit of test parameters from entries to shreds.
This change also cleans up some variable naming for clarity and prints.
2021-12-13 23:34:43 -06:00
018b54dbd7
chore: bump serde_json from 1.0.72 to 1.0.73 ( #21856 )
...
* chore: bump serde_json from 1.0.72 to 1.0.73
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.72 to 1.0.73.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.72...v1.0.73 )
---
updated-dependencies:
- dependency-name: serde_json
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 >
2021-12-14 04:08:22 +00:00
3202cc7eef
chore:(deps): bump typescript from 4.5.3 to 4.5.4 in /explorer ( #21868 )
...
Bumps [typescript](https://github.com/Microsoft/TypeScript ) from 4.5.3 to 4.5.4.
- [Release notes](https://github.com/Microsoft/TypeScript/releases )
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.5.3...v4.5.4 )
---
updated-dependencies:
- dependency-name: typescript
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 03:36:58 +00:00
6fc6673ead
AcctInfo: store_id private and add accessor ( #21839 )
2021-12-13 21:35:30 -06:00
f402cbe64e
chore:(deps): bump @solana/spl-token-registry in /explorer ( #21865 )
...
Bumps [@solana/spl-token-registry](https://github.com/solana-labs/token-list ) from 0.2.804 to 0.2.810.
- [Release notes](https://github.com/solana-labs/token-list/releases )
- [Changelog](https://github.com/solana-labs/token-list/blob/main/CHANGELOG.md )
- [Commits](https://github.com/solana-labs/token-list/compare/v0.2.804...v0.2.810 )
---
updated-dependencies:
- dependency-name: "@solana/spl-token-registry"
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 03:27:10 +00:00
98e5ea9dce
AcctIdx: simplify AccountIndexGetResult ( #21857 )
2021-12-13 21:16:17 -06:00
17cd14ad88
chore: bump fd-lock from 3.0.1 to 3.0.2 ( #21848 )
...
Bumps [fd-lock](https://github.com/yoshuawuyts/fd-lock ) from 3.0.1 to 3.0.2.
- [Release notes](https://github.com/yoshuawuyts/fd-lock/releases )
- [Commits](https://github.com/yoshuawuyts/fd-lock/commits )
---
updated-dependencies:
- dependency-name: fd-lock
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 02:58:19 +00:00
ed4897d715
chore:(deps): bump sass from 1.44.0 to 1.45.0 in /explorer ( #21862 )
...
Bumps [sass](https://github.com/sass/dart-sass ) from 1.44.0 to 1.45.0.
- [Release notes](https://github.com/sass/dart-sass/releases )
- [Changelog](https://github.com/sass/dart-sass/blob/main/CHANGELOG.md )
- [Commits](https://github.com/sass/dart-sass/compare/1.44.0...1.45.0 )
---
updated-dependencies:
- dependency-name: sass
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-12-14 02:45:20 +00:00
fd212fd2a4
Add notes about new v1.9 rpc apis
2021-12-13 19:02:21 -07:00
eebaf89874
Remove old notes referring to EOL versions
2021-12-13 19:02:21 -07:00
bed1b143a5
Restore ALL behavior; add enum variant, comments, and help text to make behavior clearer ( #21854 )
2021-12-13 19:00:29 -07:00
a8ba979360
chore:(deps): bump @blockworks-foundation/mango-client in /explorer ( #21860 )
...
Bumps [@blockworks-foundation/mango-client](https://github.com/blockworks-foundation/mango-client-v3 ) from 3.2.15 to 3.2.16.
- [Release notes](https://github.com/blockworks-foundation/mango-client-v3/releases )
- [Commits](https://github.com/blockworks-foundation/mango-client-v3/commits )
---
updated-dependencies:
- dependency-name: "@blockworks-foundation/mango-client"
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 01:41:18 +00:00
3bc3af2332
chore:(deps): bump @solana/spl-token-registry in /explorer ( #21855 )
...
Bumps [@solana/spl-token-registry](https://github.com/solana-labs/token-list ) from 0.2.801 to 0.2.804.
- [Release notes](https://github.com/solana-labs/token-list/releases )
- [Changelog](https://github.com/solana-labs/token-list/blob/main/CHANGELOG.md )
- [Commits](https://github.com/solana-labs/token-list/compare/v0.2.801...v0.2.804 )
---
updated-dependencies:
- dependency-name: "@solana/spl-token-registry"
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 00:07:14 +00:00
50f26ea9c0
AcctInfo: create AcctInfo with cache explicitly ( #21847 )
2021-12-13 17:35:07 -06:00
b81124deec
chore: bump etcd-client from 0.8.1 to 0.8.2 ( #21825 )
...
Bumps [etcd-client](https://github.com/etcdv3/etcd-client ) from 0.8.1 to 0.8.2.
- [Release notes](https://github.com/etcdv3/etcd-client/releases )
- [Commits](https://github.com/etcdv3/etcd-client/compare/0.8.1...0.8.2 )
---
updated-dependencies:
- dependency-name: etcd-client
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-13 16:20:22 -07:00
5a28f61f49
chore:(deps): bump @solana/spl-token-registry in /explorer ( #21846 )
...
Bumps [@solana/spl-token-registry](https://github.com/solana-labs/token-list ) from 0.2.720 to 0.2.801.
- [Release notes](https://github.com/solana-labs/token-list/releases )
- [Changelog](https://github.com/solana-labs/token-list/blob/main/CHANGELOG.md )
- [Commits](https://github.com/solana-labs/token-list/compare/v0.2.720...v0.2.801 )
---
updated-dependencies:
- dependency-name: "@solana/spl-token-registry"
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-13 20:44:59 +00:00
6155ef6377
AcctInfo: make offset private, add accessor ( #21838 )
2021-12-13 14:43:26 -06:00
8aa3d690b5
chore: bump dashmap from 4.0.2 to 5.0.0 ( #21824 )
...
* chore: bump dashmap from 4.0.2 to 5.0.0
Bumps [dashmap](https://github.com/xacrimon/dashmap ) from 4.0.2 to 5.0.0.
- [Release notes](https://github.com/xacrimon/dashmap/releases )
- [Commits](https://github.com/xacrimon/dashmap/commits/v5.0.0 )
---
updated-dependencies:
- dependency-name: dashmap
dependency-type: direct:production
update-type: version-update:semver-major
...
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 >
2021-12-13 13:23:58 -07:00
d5879bafe9
chore:(deps): bump @sentry/react from 6.15.0 to 6.16.1 in /explorer ( #21835 )
...
Bumps [@sentry/react](https://github.com/getsentry/sentry-javascript ) from 6.15.0 to 6.16.1.
- [Release notes](https://github.com/getsentry/sentry-javascript/releases )
- [Changelog](https://github.com/getsentry/sentry-javascript/blob/master/CHANGELOG.md )
- [Commits](https://github.com/getsentry/sentry-javascript/compare/6.15.0...6.16.1 )
---
updated-dependencies:
- dependency-name: "@sentry/react"
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-12-13 17:36:20 +00:00
9e9a1a4876
AcctIdx: AccountInfo.lamports private ( #21819 )
2021-12-13 10:59:33 -06:00
c9e0bde407
AcctIdx: AccountInfo::stored_size private ( #21821 )
2021-12-13 10:10:06 -06:00
4bc5bfb2df
Addressing leftover comments from #21531 ( #21782 )
...
* Addressing leftover comments from #21531
* Add feature flag
* Feature gate new vote instruction
* add clock & slot hashes sysvar to test
2021-12-13 07:52:22 -08:00
1149c1880d
cli: Order displayed feature list by status ( #21810 )
2021-12-13 07:42:57 -05:00
90f41fd9b7
use cost model to limit new account creation ( #21369 )
...
* use cost model to limit new account creation
* handle every system instruction
* remove &
* simplify match
* simplify match
* add datapoint for account data size
* add postgres error handling
* handle accounts:unlock_accounts
2021-12-12 14:57:18 -06:00
025a5a3b9c
AccountInfo: construct with new() ( #21788 )
2021-12-12 14:36:05 -06:00
825f8bcea4
use AppendVecId instead of usize ( #21792 )
2021-12-11 21:38:13 -06:00
c5b6ea74ef
replace some .lamports checks with trait ( #21783 )
2021-12-11 21:37:33 -06:00
4c0373b72a
introduce AtomicAppendVecId ( #21793 )
2021-12-11 21:34:35 -06:00
a400b5e63d
chore: bump async-trait from 0.1.51 to 0.1.52 ( #21765 )
...
* chore: bump async-trait from 0.1.51 to 0.1.52
Bumps [async-trait](https://github.com/dtolnay/async-trait ) from 0.1.51 to 0.1.52.
- [Release notes](https://github.com/dtolnay/async-trait/releases )
- [Commits](https://github.com/dtolnay/async-trait/compare/0.1.51...0.1.52 )
---
updated-dependencies:
- dependency-name: async-trait
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 >
2021-12-11 21:38:33 +00:00
ef7f49a21d
move AccountInfo to its own file ( #21784 )
2021-12-11 11:47:05 -06:00
c5c699a918
Remove the 5 integer msg! form
2021-12-11 09:37:11 -08:00
eeb97fe7ce
Add accounts_data_len to Bank ( #21781 )
2021-12-11 09:34:38 -06:00
e08139f949
uses Option<u64> for SlotMeta.last_index ( #21775 )
...
SlotMeta.last_index may be unknown and current code is using u64::MAX to
indicate that:
https://github.com/solana-labs/solana/blob/6c108c8fc/ledger/src/blockstore_meta.rs#L169-L174
This lacks type-safety and can introduce bugs if not always checked for
Several instances of slot_meta.last_index + 1 are also subject to
overflow.
This commit updates the type to Option<u64>. Backward compatibility is
maintained by customizing serde serialize/deserialize implementations.
2021-12-11 14:47:20 +00:00
254ef3e7b6
Rename Packets to PacketBatch ( #21794 )
2021-12-11 09:44:15 -05:00
379e3ec848
Add Accountsdb plugin documentations ( #21746 )
...
Add the public facing documentation about the plugin framework: explaining the interface, how to load plugin and the example PostgreSQL plugin implementation.
Updated the rust documentation for the plugin interfaces for accounts and slot.
This changes are targeted for v1.8. Information about transactions will be updated later.
2021-12-10 15:54:40 -08:00
2bbe1d875a
Deserialize accounts before acquiring stakes cache lock ( #21733 )
...
* Deserialize stored accounts before locking stakes cache
* fix test
2021-12-10 16:02:35 -05:00
9b41ddd9ba
Add address lookup table program ( #21616 )
...
* Add address lookup table program
* feedback
2021-12-10 16:02:16 -05:00
a5a0dabe7b
Bump solana_rbpf to version v0.2.18 ( #21774 )
2021-12-10 21:31:14 +01:00
49ba09b333
adds back ErasureMeta::first_coding_index field ( #21623 )
...
https://github.com/solana-labs/solana/pull/16646
removed first_coding_index since the field is currently redundant and
always equal to fec_set_index.
However, with upcoming changes to erasure coding schema, this will no
longer be the same as fec_set_index and so requires a separate field to
represent.
2021-12-10 20:08:04 +00:00
ec7e17787e
Compute accounts data len during generate_index() ( #21757 )
2021-12-10 13:27:59 -06:00
15a9fa6f53
Update to Rust 1.57.0
2021-12-10 11:07:19 -08:00
80eae20610
Fix master fmt
2021-12-10 11:33:39 -07:00
350845c513
Move type alias and use it more broadly ( #21763 )
2021-12-10 10:46:21 -07:00
65194c7ae8
Add NUM_WRITERS to ledger_cleanup to enable multiple writers. ( #21729 )
...
Summary:
* Add NUM_WRITERS to ledger_cleanup to enable multiple writers.
(Note that our insert_shreds() is still single threaded because
it has a lock that limits only one writer at a time.)
* Make pre-generated slots more performent by directly inserting
into the shared queue. Otherwise, the main-thread which
prepares the slots will be slower than the writers.
* Correct the shred insertion time -- before this diff it did not
wait for joining all writer threads.
2021-12-10 09:42:51 -08:00
6c108c8fc3
Migrate from address maps to address lookup tables ( #21634 )
...
* Migrate from address maps to address lookup tables
* update sanitize error
* cargo fmt
* update abi
2021-12-10 11:04:04 -05:00
fd175c1ea9
Add StakesCache struct to abstract away locking ( #21738 )
2021-12-10 10:51:33 -05:00
622fd7c7ec
testing for the latest changes
2021-12-10 19:44:22 +05:30
08940fff10
modifying event type
2021-12-10 18:10:10 +05:30
75385f657a
chore: bump tonic-build from 0.6.0 to 0.6.2 ( #21764 )
...
* chore: bump tonic-build from 0.6.0 to 0.6.2
Bumps [tonic-build](https://github.com/hyperium/tonic ) from 0.6.0 to 0.6.2.
- [Release notes](https://github.com/hyperium/tonic/releases )
- [Changelog](https://github.com/hyperium/tonic/blob/master/CHANGELOG.md )
- [Commits](https://github.com/hyperium/tonic/compare/v0.6.0...v0.6.2 )
---
updated-dependencies:
- dependency-name: tonic-build
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 >
2021-12-10 09:31:15 +00:00
b07fd1fead
chore:(deps): bump typescript from 4.5.2 to 4.5.3 in /explorer ( #21768 )
...
Bumps [typescript](https://github.com/Microsoft/TypeScript ) from 4.5.2 to 4.5.3.
- [Release notes](https://github.com/Microsoft/TypeScript/releases )
- [Commits](https://github.com/Microsoft/TypeScript/commits )
---
updated-dependencies:
- dependency-name: typescript
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-10 09:16:48 +00:00
b3c5a299be
chore:(deps): bump @solana/spl-token-registry in /explorer ( #21766 )
...
Bumps [@solana/spl-token-registry](https://github.com/solana-labs/token-list ) from 0.2.698 to 0.2.720.
- [Release notes](https://github.com/solana-labs/token-list/releases )
- [Changelog](https://github.com/solana-labs/token-list/blob/main/CHANGELOG.md )
- [Commits](https://github.com/solana-labs/token-list/compare/v0.2.698...v0.2.720 )
---
updated-dependencies:
- dependency-name: "@solana/spl-token-registry"
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-10 09:08:45 +00:00
d870f566ef
chore: bump serde from 1.0.130 to 1.0.131 ( #21758 )
...
* chore: bump serde from 1.0.130 to 1.0.131
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.130 to 1.0.131.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.130...v1.0.131 )
---
updated-dependencies:
- dependency-name: serde
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 >
2021-12-10 08:47:46 +00:00
f56eb7f882
chore: bump tonic from 0.6.1 to 0.6.2 ( #21754 )
...
Bumps [tonic](https://github.com/hyperium/tonic ) from 0.6.1 to 0.6.2.
- [Release notes](https://github.com/hyperium/tonic/releases )
- [Changelog](https://github.com/hyperium/tonic/blob/master/CHANGELOG.md )
- [Commits](https://github.com/hyperium/tonic/compare/v0.6.1...v0.6.2 )
---
updated-dependencies:
- dependency-name: tonic
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-10 00:22:45 -07:00
c1386d66e6
Nits in message-processor ( #21755 )
...
* Fixup typo
* Simplify types slightly
2021-12-09 23:38:36 -07:00
805d53fc10
program-runtime: add LogCollector::new_ref_with_limit() ( #21691 )
...
program-runtime: add LogCollector::new_ref_with_limit()
LogCollector::new_ref_with_limit(limit: Option<usize>) can be used to
initialize a collector with the given bytes limit. The limit can be None, in
which case logs are never truncated.
new_ref_with_limit(None) is used by cargo-run-bpf-tests so that the output of
cargo test --target=bpfel-unknown-unknown is not truncated.
2021-12-10 13:38:03 +11:00
16a6dceb6b
impl better debug for Ancestors ( #21737 )
2021-12-09 18:36:13 -06:00
f32216588d
Remove libcurl to prevent wasm-pack segfault in libssl
2021-12-09 15:53:58 -08:00
f4babb7566
Cargo.lock
2021-12-09 15:53:58 -08:00
a35df1cb02
Add initial wasm bindings for Instruction
, SystemProgram
and Transaction
2021-12-09 15:53:58 -08:00
03a956e8d9
Add wasm bindings for Hash
2021-12-09 15:53:58 -08:00
488dc37fec
Add wasm bindings for Pubkey
and Keypair
2021-12-09 15:53:58 -08:00
6919c4863b
Expand docs for Pubkey::create_program_address ( #21750 )
...
* Expand docs for Pubkey::create_program_address
* Update sdk/program/src/pubkey.rs
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2021-12-09 23:45:23 +00:00
f865392eee
chore: bump digest from 0.9.0 to 0.10.0 ( #21742 )
...
* chore: bump digest from 0.9.0 to 0.10.0
Bumps [digest](https://github.com/RustCrypto/traits ) from 0.9.0 to 0.10.0.
- [Release notes](https://github.com/RustCrypto/traits/releases )
- [Commits](https://github.com/RustCrypto/traits/compare/digest-v0.9.0...digest-v0.10.0 )
---
updated-dependencies:
- dependency-name: digest
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
* tree; multiple versions of digest required
* Bump sha3 as well
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2021-12-09 23:32:21 +00:00
1528f85112
Add return types to generate_index() ( #21735 )
2021-12-09 17:15:13 -06:00
c965517a6b
chore: bump signal-hook from 0.3.10 to 0.3.12 ( #21721 )
...
Bumps [signal-hook](https://github.com/vorner/signal-hook ) from 0.3.10 to 0.3.12.
- [Release notes](https://github.com/vorner/signal-hook/releases )
- [Changelog](https://github.com/vorner/signal-hook/blob/master/CHANGELOG.md )
- [Commits](https://github.com/vorner/signal-hook/compare/v0.3.10...v0.3.12 )
---
updated-dependencies:
- dependency-name: signal-hook
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-09 21:43:31 +00:00
6d18b6bab5
Fixed minor issues with the cluster overview docs which had confused some ( #21744 )
...
new users.
2021-12-09 13:11:52 -07:00
6fc329180b
Add more reporting for invalid stake cache members and prune them ( #21654 )
...
* Add more reporting for invalid stake cache members
* feedback
2021-12-09 14:12:11 -05:00
a2df1eb502
AcctIdx: disk generate index and filler accounts use more threads ( #21566 )
2021-12-09 11:54:14 -06:00
8063273d09
adds more sanity checks to shreds ( #21675 )
2021-12-09 16:43:57 +00:00
58a7d3fc0e
AcctIdx: disable direct to disk for filler account upsert ( #21710 )
2021-12-09 10:14:57 -06:00
0090916735
skip clean on startup, too ( #21718 )
2021-12-09 09:36:02 -06:00
7f48f67948
Update explorer_preview.yml
2021-12-09 17:39:18 +05:30
0a11be496a
reverting back to previous successful build
2021-12-09 17:33:32 +05:30
7b722abb63
Update explorer_preview.yml
2021-12-09 17:25:33 +05:30
c665fc7a9b
fixing indentation
2021-12-09 17:16:27 +05:30
84ef6462c2
handling last error of npm
2021-12-09 17:12:07 +05:30
b2ed9daada
updating explorer_preview.yml
...
it deploy preview on vercel
2021-12-09 17:00:33 +05:30
b0be0881a7
chore:(deps): bump @blockworks-foundation/mango-client in /explorer ( #21728 )
...
Bumps [@blockworks-foundation/mango-client](https://github.com/blockworks-foundation/mango-client-v3 ) from 3.2.14 to 3.2.15.
- [Release notes](https://github.com/blockworks-foundation/mango-client-v3/releases )
- [Commits](https://github.com/blockworks-foundation/mango-client-v3/commits )
---
updated-dependencies:
- dependency-name: "@blockworks-foundation/mango-client"
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-09 09:19:24 +00:00
91efd6e102
chore:(deps): bump @solana/spl-token-registry in /explorer ( #21727 )
...
Bumps [@solana/spl-token-registry](https://github.com/solana-labs/token-list ) from 0.2.662 to 0.2.698.
- [Release notes](https://github.com/solana-labs/token-list/releases )
- [Changelog](https://github.com/solana-labs/token-list/blob/main/CHANGELOG.md )
- [Commits](https://github.com/solana-labs/token-list/compare/v0.2.662...v0.2.698 )
---
updated-dependencies:
- dependency-name: "@solana/spl-token-registry"
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-09 09:08:47 +00:00
ae024f666a
reverting back to the original state
2021-12-09 13:16:05 +05:30
0fd8e3c5d7
using ssh for cloning
2021-12-09 11:49:19 +05:30
e020960f49
AcctIdx: generate index goes to mem not disk ( #21709 )
2021-12-08 19:48:12 -06:00
54862eba0d
AcctIdx: env var to enable testing of disk buckets ( #21494 )
2021-12-08 19:47:25 -06:00
b61b7189a5
chore: bump hmac from 0.11.0 to 0.12.0 ( #21681 )
...
* chore: bump hmac from 0.11.0 to 0.12.0
Bumps [hmac](https://github.com/RustCrypto/MACs ) from 0.11.0 to 0.12.0.
- [Release notes](https://github.com/RustCrypto/MACs/releases )
- [Commits](https://github.com/RustCrypto/MACs/compare/hmac-v0.11.0...hmac-v0.12.0 )
---
updated-dependencies:
- dependency-name: hmac
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
* Update dependabot-pr.sh
* Bump sha2 and pbkdf2 as well
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: axleiro <83293196+axleiro@users.noreply.github.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2021-12-08 18:12:35 -07:00
181c0092d6
AcctIdx: resize in-mem after startup for disk index ( #21676 )
2021-12-08 16:52:22 -06:00
824994db69
simulateTransaction now returns the correct error code if accounts are provided as input
2021-12-08 14:03:21 -08:00
8d1e5ac294
refactor and test scan abort code ( #21390 )
2021-12-08 14:09:34 -06:00
923720f529
SDK: Add stdlib.h include to pull in abort()
( #21700 )
2021-12-08 17:00:16 +01:00
7c9abaff2c
triggering the "system-performance-test" CI pipeline
2021-12-08 19:13:31 +05:30
40a04490ad
Replacing the "ssh" with the "https" link for cloning the GitHub repo
...
{
using:
git clone https://github.com/solana-labs/testnet-keypairs.git "${REPO_ROOT}"/net/keypairs
replacing :
#git clone git@github.com:solana-labs/testnet-keypairs.git "${REPO_ROOT}"/net/keypairs
}
2021-12-08 18:58:35 +05:30
99da25dc9d
testing for dependabot trigger
2021-12-08 16:25:31 +05:30
7cd5c0cd20
chore: bump @types/node from 16.11.11 to 16.11.12 in /web3.js ( #21689 )
...
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node ) from 16.11.11 to 16.11.12.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node )
---
updated-dependencies:
- dependency-name: "@types/node"
dependency-type: direct:development
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-08 09:19:00 +00:00
ea1b59f684
chore: bump prettier from 2.5.0 to 2.5.1 in /web3.js ( #21685 )
...
Bumps [prettier](https://github.com/prettier/prettier ) from 2.5.0 to 2.5.1.
- [Release notes](https://github.com/prettier/prettier/releases )
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md )
- [Commits](https://github.com/prettier/prettier/compare/2.5.0...2.5.1 )
---
updated-dependencies:
- dependency-name: prettier
dependency-type: direct:development
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-08 09:10:15 +00:00
f98e198dcf
resolving buildkite pull before push issue
...
Added:
git config pull.rebase false
git pull origin master --allow-unrelated-histories
2021-12-08 13:43:59 +05:30
483f5cce46
fixing "Updates were rejected because the remote contains work that you do"
...
adding git pull
2021-12-08 13:32:54 +05:30
0224a8b127
Update address map proposal to improve dev experience ( #21576 )
...
* Update address map proposal to improve dev experience
* another revision to match implementation
2021-12-07 22:58:18 -05:00
4da435f2a0
Avoid entropy sources when constructing a solana_program::message::Message.
...
The solana-program crate can be used in certain embedded environments (HSMs) where
the source of entropy, whether used for cryptographic purposes or not, is tightly
controlled. In these cases, using the default OS source of entrophy is not always
acceptable. Thus, using the default Rust stdlib entropy source for seeding its
default hasher, is prohibited. This means any use of HashMap/HashSet must be able
to be constructed and used with a custom hasher implementation.
This commit removes the use of Itertools::unique() to dedupe Instructions that are
being compiled into a new Message, which uses a default-configured HashMap
under-the-hood. Instead, we use a BTreeSet which does not invoke any entropy
source in order to seed a hash implementation.
2021-12-07 19:19:01 -08:00
f0acf7681e
Add vote instructions that directly update on chain vote state ( #21531 )
...
* Add vote state instructions
UpdateVoteState and UpdateVoteStateSwitch
* cargo tree
* extract vote state version conversion to common fn
2021-12-07 16:47:26 -08:00
1df88837c8
- Implicitly fixes invoke_context.return_data not being reset between instructions in process_message. ( #21671 )
...
- Lets InvokeContext::process_cross_program_instruction() handle the first invocation depth too.
- Marks InvokeContext::verify(), InvokeContext::verify_and_update() and InvokeContext::process_executable_chain() private.
- Renames InvokeContext::process_cross_program_instruction() to InvokeContext::process_instruction().
- Removes InvokeContext::new_mock_with_sysvars().
2021-12-07 23:00:04 +01:00
94b1cf47ca
Plumb verbose_level through ledger-tool slot subcommand ( #21670 )
...
* Add commas for readability and fix plurality in a printout
* Pass verbose_level into slot subcommand instead of default to max
This is useful for when a full printout isn't necessary, such as just
trying to determine the slot blockhash. The equivalent behavior before
this change would have been using "-vv" with the command.
2021-12-07 15:14:39 -06:00
31b8fd3109
Bumps solana_rbpf to v0.2.17 ( #21672 )
2021-12-07 22:12:09 +01:00
45e56c599d
Ensure we have keys to activate these features ( #21669 )
2021-12-07 18:58:59 +00:00
a2477c1f32
Docs: Solflare web/app updates ( #21540 )
...
* Update Solflare description
* Add Solflare to mobile wallets
* Sort mobile wallets alphabetically
* Sort web wollets alphabetically
* Update docs/src/wallet-guide/apps.md
* Update docs/src/wallet-guide/apps.md
* Update docs/src/wallet-guide/web-wallets.md
* Update docs/src/wallet-guide/web-wallets.md
* Update docs/src/wallet-guide/apps.md
Co-authored-by: Justin Starry <justin.m.starry@gmail.com >
2021-12-07 11:04:46 -05:00
b57097ef18
docs: Fix SOL staked formula ( #21615 )
...
Fix the formula on the proposal page: https://docs.solana.com/implemented-proposals/ed_overview/ed_validation_client_economics/ed_vce_state_validation_protocol_based_rewards
2021-12-07 10:36:36 -05:00
388e34f8e9
chore:(deps): bump @project-serum/serum in /explorer ( #21665 )
...
Bumps [@project-serum/serum](https://github.com/project-serum/serum-ts ) from 0.13.60 to 0.13.61.
- [Release notes](https://github.com/project-serum/serum-ts/releases )
- [Commits](https://github.com/project-serum/serum-ts/commits )
---
updated-dependencies:
- dependency-name: "@project-serum/serum"
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-07 08:48:06 -05:00
293629bdb5
chore:(deps): bump @testing-library/jest-dom in /explorer ( #21666 )
...
Bumps [@testing-library/jest-dom](https://github.com/testing-library/jest-dom ) from 5.16.0 to 5.16.1.
- [Release notes](https://github.com/testing-library/jest-dom/releases )
- [Changelog](https://github.com/testing-library/jest-dom/blob/main/CHANGELOG.md )
- [Commits](https://github.com/testing-library/jest-dom/compare/v5.16.0...v5.16.1 )
---
updated-dependencies:
- dependency-name: "@testing-library/jest-dom"
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-07 09:15:44 +00:00
c5811e5a14
chore:(deps): bump @solana/spl-token-registry in /explorer ( #21664 )
...
Bumps [@solana/spl-token-registry](https://github.com/solana-labs/token-list ) from 0.2.646 to 0.2.662.
- [Release notes](https://github.com/solana-labs/token-list/releases )
- [Changelog](https://github.com/solana-labs/token-list/blob/main/CHANGELOG.md )
- [Commits](https://github.com/solana-labs/token-list/compare/v0.2.646...v0.2.662 )
---
updated-dependencies:
- dependency-name: "@solana/spl-token-registry"
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-07 09:09:29 +00:00
cf5a1448c5
chore:(deps): bump @metaplex/js from 4.7.0 to 4.9.0 in /explorer ( #21662 )
...
Bumps [@metaplex/js](https://github.com/metaplex/js ) from 4.7.0 to 4.9.0.
- [Release notes](https://github.com/metaplex/js/releases )
- [Changelog](https://github.com/metaplex/js/blob/main/CHANGELOG.md )
- [Commits](https://github.com/metaplex/js/compare/v4.7.0...v4.9.0 )
---
updated-dependencies:
- dependency-name: "@metaplex/js"
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-12-07 09:09:16 +00:00
aff8e82705
chore:(deps): bump @types/node from 16.11.11 to 16.11.12 in /explorer ( #21661 )
...
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node ) from 16.11.11 to 16.11.12.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node )
---
updated-dependencies:
- dependency-name: "@types/node"
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-07 09:07:15 +00:00
205fd95722
Add option to reclaim accounts-cluster-bench accounts/lamports ( #21656 )
...
* Add option to reclaim accounts-cluster-bench accounts/lamports
* lint
2021-12-06 23:52:57 -07:00
f6801a4af4
chore: bump itertools from 0.10.1 to 0.10.3 ( #21643 )
...
* chore: bump itertools from 0.10.1 to 0.10.3
Bumps [itertools](https://github.com/rust-itertools/itertools ) from 0.10.1 to 0.10.3.
- [Release notes](https://github.com/rust-itertools/itertools/releases )
- [Changelog](https://github.com/rust-itertools/itertools/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-itertools/itertools/compare/v0.10.1...v0.10.3 )
---
updated-dependencies:
- dependency-name: itertools
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 >
2021-12-06 23:23:26 -07:00
92a1fc076c
chore:(deps): bump @testing-library/jest-dom in /explorer ( #21630 )
...
Bumps [@testing-library/jest-dom](https://github.com/testing-library/jest-dom ) from 5.15.1 to 5.16.0.
- [Release notes](https://github.com/testing-library/jest-dom/releases )
- [Changelog](https://github.com/testing-library/jest-dom/blob/main/CHANGELOG.md )
- [Commits](https://github.com/testing-library/jest-dom/compare/v5.15.1...v5.16.0 )
---
updated-dependencies:
- dependency-name: "@testing-library/jest-dom"
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-12-06 22:00:08 -05:00
da4015a959
Ensure that StakeDelegations and StakeHistory serde ( #21640 )
...
Add tests to StakeDelegations and StakeHistory to ensure that the outer
types serialize and deserialize correctly to/from the inner types.
2021-12-06 17:34:10 -06:00
a1adcb23b6
Remove activated feature for filtering invalid stakes from rewards ( #21641 )
2021-12-06 17:56:05 -05:00
873fe81bc0
Add offline and fee-payer utilities to CLI vote module ( #21579 )
...
* create-vote-account: add offline, nonce, fee_payer capabilities
* vote-authorize: add offline, nonce, fee-payer
* vote-update-things: add offline, nonce, fee-payer
* withdraw-vote: add offline, nonce, fee-payer
* close-vote-acct: add fee-payer
* Allow WithdrawVoteAccount to empty account, since offline operations cannot perform account state queries as in CloseVoteAccount
* Fix lint
* Update offline-signing docs
* Add some parse unit tests
* Add offline integration test
2021-12-06 15:54:50 -07:00
f493a88258
Fixup flaky tests ( #21617 )
...
* Fixup flaky tests
* Fixup listeners
2021-12-06 17:14:38 -05:00
e123883b26
Reject vote withdraws that create non-rent-exempt accounts ( #21639 )
...
* Reject vote withdraws that create non-rent-exempt accounts
* fix mocked instruction test
2021-12-06 17:01:20 -05:00
008655e3a4
chore: bump rustversion from 1.0.5 to 1.0.6 ( #21636 )
...
* chore: bump rustversion from 1.0.5 to 1.0.6
Bumps [rustversion](https://github.com/dtolnay/rustversion ) from 1.0.5 to 1.0.6.
- [Release notes](https://github.com/dtolnay/rustversion/releases )
- [Commits](https://github.com/dtolnay/rustversion/compare/1.0.5...1.0.6 )
---
updated-dependencies:
- dependency-name: rustversion
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 >
2021-12-06 14:47:26 -07:00
6f3f6eddb2
Updates documentation around what needs to be passed in CPI. ( #21633 )
2021-12-06 21:20:16 +01:00
3dab1e711d
Move transaction error code into new module ( #21635 )
2021-12-06 12:45:33 -05:00
df2b448993
Fix incorrect nonoverlapping test in sol_memcpy ( #21007 )
...
Thanks!
2021-12-06 09:26:46 -08:00
d1c101cde2
Rework docs for Pubkey::find_program_address and friends ( #21528 )
...
* Rework docs for Pubkey::find_program_address and friends
* Remove circular dependency
* Minor tweaks
* Apply suggestions from code review
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
* Sort solana-program dev-dependencies
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2021-12-06 17:00:50 +00:00
b5353e2130
chore: bump libc from 0.2.108 to 0.2.109 ( #21627 )
...
* chore: bump libc from 0.2.108 to 0.2.109
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.108 to 0.2.109.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.108...0.2.109 )
---
updated-dependencies:
- dependency-name: libc
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 >
2021-12-06 09:37:26 -07:00
cd9dda4701
chore:(deps): bump @blockworks-foundation/mango-client in /explorer ( #21632 )
...
Bumps [@blockworks-foundation/mango-client](https://github.com/blockworks-foundation/mango-client-v3 ) from 3.2.10 to 3.2.14.
- [Release notes](https://github.com/blockworks-foundation/mango-client-v3/releases )
- [Commits](https://github.com/blockworks-foundation/mango-client-v3/commits )
---
updated-dependencies:
- dependency-name: "@blockworks-foundation/mango-client"
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-06 09:28:42 +00:00
b8b721b7c2
chore:(deps): bump react-content-loader from 6.0.3 to 6.1.0 in /explorer ( #21631 )
...
Bumps [react-content-loader](https://github.com/danilowoz/react-content-loader ) from 6.0.3 to 6.1.0.
- [Release notes](https://github.com/danilowoz/react-content-loader/releases )
- [Commits](https://github.com/danilowoz/react-content-loader/compare/v6.0.3...v6.1.0 )
---
updated-dependencies:
- dependency-name: react-content-loader
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-12-06 09:18:29 +00:00
a75db69105
chore:(deps): bump prettier from 2.5.0 to 2.5.1 in /explorer ( #21628 )
...
Bumps [prettier](https://github.com/prettier/prettier ) from 2.5.0 to 2.5.1.
- [Release notes](https://github.com/prettier/prettier/releases )
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md )
- [Commits](https://github.com/prettier/prettier/compare/2.5.0...2.5.1 )
---
updated-dependencies:
- dependency-name: prettier
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-06 09:09:46 +00:00
f4e92f9b54
chore:(deps): bump @solana/spl-token-registry in /explorer ( #21629 )
...
Bumps [@solana/spl-token-registry](https://github.com/solana-labs/token-list ) from 0.2.588 to 0.2.646.
- [Release notes](https://github.com/solana-labs/token-list/releases )
- [Changelog](https://github.com/solana-labs/token-list/blob/main/CHANGELOG.md )
- [Commits](https://github.com/solana-labs/token-list/compare/v0.2.588...v0.2.646 )
---
updated-dependencies:
- dependency-name: "@solana/spl-token-registry"
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-06 09:09:32 +00:00
72669cad8c
chore:(deps): bump @metaplex/js from 4.6.0 to 4.7.0 in /explorer ( #21626 )
...
Bumps [@metaplex/js](https://github.com/metaplex/js ) from 4.6.0 to 4.7.0.
- [Release notes](https://github.com/metaplex/js/releases )
- [Changelog](https://github.com/metaplex/js/blob/main/CHANGELOG.md )
- [Commits](https://github.com/metaplex/js/compare/v4.6.0...v4.7.0 )
---
updated-dependencies:
- dependency-name: "@metaplex/js"
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-12-06 09:07:24 +00:00
f3c2803af9
Fix spelling of 'Borsh'
2021-12-05 21:06:13 -08:00
cd17f63d81
adds back position field to coding-shred-header ( #21600 )
...
https://github.com/solana-labs/solana/pull/17004
removed position field from coding-shred-header because as it stands the
field is redundant and unused.
However, with the upcoming changes to erasure coding schema this field
will no longer be redundant and needs to be populated.
2021-12-05 14:42:09 +00:00
3e5a5a834f
Bump RpcClient node versions ( #21612 )
...
* Bump blockhash/fee api check versions
* Bump snapshot api check version
2021-12-04 21:51:43 +00:00
f4ca87205f
If configured so, panic if there is an error saving transactions in the plugin ( #21602 )
2021-12-04 12:47:28 -08:00
d6f22433d0
Bump version to v1.10.0
2021-12-04 20:17:54 +00:00