Commit Graph

18386 Commits

Author SHA1 Message Date
b6903dab6e Explorer: Fix verified collection row rendering (#24269) 2022-04-12 08:22:42 +00:00
865a8307e2 Enable the explorer to render content from data URIs (#24235)
* Enable explorer to render images from data URIs

* Add regex to check for image mime type
2022-04-12 08:17:26 +00:00
077bc4f407 (LedgerStore) Change the default RocksDB perf sample rate to 1 / 1000. (#24234) 2022-04-12 04:12:47 +00:00
5a48ef72fd (LedgerStore) Skip sampling check when ROCKSDB_PERF_CONTEXT_SAMPLES_IN_1K_DEFAULT = 0 (#24221)
#### Problem
Currently, even if SOLANA_METRICS_ROCKSDB_PERF_SAMPLES_IN_1K == 0, we are still doing
the sampling check for every RocksDB read.

```
thread_rng().gen_range(0, METRIC_SAMPLES_1K) > *ROCKSDB_PERF_CONTEXT_SAMPLES_IN_1K
```

#### Summary of Changes
This PR skips the sampling check when SOLANA_METRICS_ROCKSDB_PERF_SAMPLES_IN_1K
is set to 0.
2022-04-11 20:39:46 -07:00
9b8850f99e test-validator: Add --max-compute-units flag (#24130)
* test-validator: Add `--max-compute-units` flag

* Add `RuntimeConfig` for tweaking runtime behavior

* Actually add the file

* Move RuntimeConfig to runtime
2022-04-12 02:28:10 +02:00
4fd184c131 Use Release/Acquire instead of SeqCst for is_bank_drop_callback_enabled (#24134) 2022-04-11 19:19:17 -05:00
6fbe2b936c fix comment (#24254) 2022-04-11 18:53:45 -05:00
77f9f7cd60 Update docs for measure!() (#24255) 2022-04-11 18:15:16 -05:00
8a754d45b3 Singlular syscall context (#24204) 2022-04-11 16:05:09 -07:00
c1687b0604 Switch to await-aware tokio::sync::Mutex 2022-04-11 18:15:03 -04:00
a2be810dbc Resolve new clippy complaints 2022-04-11 18:15:03 -04:00
552d684bdc Upgrade to Rust 1.60.0 2022-04-11 18:15:03 -04:00
8f9554b5b9 Build rust docker images for linux/amd64 2022-04-11 18:15:03 -04:00
a5e740431a Add resolver = 2 to fix Windows build error on Travis CI (#24196) 2022-04-11 16:39:14 -05:00
f7b00ada1b GetMinimumDelegation does not require a stake account (#24192) 2022-04-11 16:26:36 -05:00
b38833923d Use atomics instead of mutable statics in slot_hashes (#24091) 2022-04-11 15:12:50 -06:00
3871c85fd7 Add BenchTpsClient trait (#24208)
* Add BenchTpsClient

* Impl BenchTpsClient for used clients

* Use BenchTpsClient in do_bench

* Update integration test to use faucet via rpc

* Support keypairs from file that are not prefunded

* Remove old perf-utils
2022-04-11 13:45:40 -06:00
c0019edf00 document WaitableCondvar (#24252) 2022-04-11 14:45:23 -05:00
8a73badf3d Move helpers to solana-cli-config (#24246)
* Add solana-cli-utils crate

* Use cli-utils in cli

* Move println fn to cli-output

* Use cli-config instead
2022-04-11 12:56:51 -06:00
9ac2245970 remove clone (#24244) 2022-04-11 13:15:00 -05:00
60b2155bd3 Add accounts-filler-size command line option (#23896) 2022-04-11 13:10:09 -05:00
eb478d72d1 Add a measure! macro (#23084) (#24137)
Co-authored-by: Kwanwoo Sohn <kwan@Kwanwoos-MacBook-Air-2.local>
2022-04-11 12:50:52 -05:00
85e5b1e902 Bump solana-rbpf to v0.2.25 (#24213) 2022-04-11 10:38:47 -07:00
b22abbce7d Additional tests for proof verification when ElGamal pubkey is zeroed (#24243)
* zk-token-sdk: add edge case tests for withdraw withheld proof

* zk-token-sdk: add test cases for proof verification when pubkeys are invalid
2022-04-11 17:53:31 +01:00
e14933c54d move bank test fn to its test_utils mod (#24171) 2022-04-11 10:42:24 -05:00
f8628d39e0 Check tpu quic socket (#24122) 2022-04-11 16:48:36 +02:00
ecfa1964ff sdk: fix typo in lib.rs (#24240)
recieved -> received
2022-04-11 22:36:08 +08:00
8eef3d9713 Add tests to the blockhash queue (#24238) 2022-04-11 19:36:24 +08:00
91993d89b0 cli: sort option for validators by version 2022-04-11 00:47:47 -06:00
bf13fb4c4b Remove KeyedAccount in builtin program "stake" (#24210)
* Inline keyed_account_at_index() in all instructions of stake
which have more than one KeyedAccount parameter,
because these could cause a borrow collision.

* Uses transaction_context.get_key_of_account_at_index() in stake.

* Refactors stake::config::from to use BorrowedAccount instead of ReadableAccount.

* Replaces KeyedAccount by BorrowedAccount in stake.
2022-04-10 09:55:37 +02:00
1882434c69 test: add test for signature notifications 2022-04-09 19:43:15 -07:00
21a64db140 test: refactor notification tests on the basis of promises rather than polling 2022-04-09 19:43:15 -07:00
db50893fa1 test: reenable account change subscription test 2022-04-09 19:43:15 -07:00
35ee38b0f1 test: reenable log subscription test 2022-04-09 19:43:15 -07:00
ff3b6d2b8b Remove duplicate increment (#24219) 2022-04-09 15:21:39 -05:00
b2d502b461 zk-token-sdk: add support for scalar - ciphertext/commitment multiplication (#24120) 2022-04-09 14:19:29 +01:00
e98575743e chore:(deps): bump moment from 2.29.1 to 2.29.2 in /explorer (#24222)
Bumps [moment](https://github.com/moment/moment) from 2.29.1 to 2.29.2.
- [Release notes](https://github.com/moment/moment/releases)
- [Changelog](https://github.com/moment/moment/blob/develop/CHANGELOG.md)
- [Commits](https://github.com/moment/moment/compare/2.29.1...2.29.2)

---
updated-dependencies:
- dependency-name: moment
  dependency-type: indirect
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-09 13:03:00 +00:00
330bdc6580 filter the list before checking --no-snapshot-fetch 2022-04-09 00:41:56 -06:00
64abd008ca make ledger-tool arg help consistent (#24203) 2022-04-08 15:45:09 -05:00
a058f348a2 Address review comments 2022-04-08 14:37:55 -05:00
2ed29771f2 Unittest for cost tracker after process_and_record_transactions 2022-04-08 14:37:55 -05:00
924b8ea1eb Adjustments to cost_tracker updates
- don't store pending tx signatures and costs in CostTracker
- apply tx costs to global state immediately again
- go from commit_or_cancel to update_or_remove, where the cost tracker
  is either updated with the true costs for successful tx, or the costs
  of a retryable tx is removed
- move the function into qos_service and hold the cost tracker lock for
  the whole loop
2022-04-08 14:37:55 -05:00
9e07272af8 - Only commit successfully executed transactions' cost to cost_tracker;
- In-fly transactions are pended in cost_tracker until being committed
  or cancelled;
2022-04-08 14:37:55 -05:00
2e5042d8bd Remove KeyedAccount in builtin program "vote" (#24189)
* Uses transaction_context.get_key_of_account_at_index() in vote.

* Inline keyed_account_at_index() in all instructions of vote
which have more than one KeyedAccount parameter,
because these could cause a borrow collision.

* Replaces KeyedAccount by BorrowedAccount in vote.
2022-04-08 20:40:50 +02:00
fad9bd0538 Removes KeyedAccount parameter from get_if_mergeable(). (#24190) 2022-04-08 20:40:09 +02:00
c090418f26 List cmake as a package to install in build instructions (#24199) 2022-04-08 12:45:09 -05:00
6ca84f8a40 Move PurgeType enum to blockstore_purge.rs (#24185) 2022-04-08 11:46:12 -05:00
d2702201ca Bump tonic, tonic-build, prost, and etcd-client (#24147)
* Bump tonic, prost, and etcd-client

* Restore doc ignores
2022-04-08 10:21:45 -06:00
689064a4f4 Bump sbf-tools version to v1.24 2022-04-08 09:06:40 -07:00
03ed334ebb Double the chunk size for sending the program binary data in tx 2022-04-08 09:06:40 -07:00