Commit Graph

21192 Commits

Author SHA1 Message Date
TJDawson10 9679bc6d1f
chore: typecheck web3.js tests (#29422)
* fix: web3.js test typescript errors

Fixes the typescript errors throughout the
web3.js test suite

* fix: node14 test

AbortController is a default in node16 but needs
to be imported for node14

* fix: additional typescript errors

Adds the tests to the tsconfig to auto-include mocha
and fixes remaining typescript errors

* fix: graphql-tools to work with typescript

version of graphql-tools initially installed has incompatible
types preventing ./scripts/typegen.sh from passing when tests
are added to the include path of tsconfig.json

* Don't build typedefs for tests

Co-authored-by: steveluscher <me+github@steveluscher.com>
2022-12-29 15:02:21 -08:00
gr8den 84e0d12f91
fix typo in rpc client (#29434)
* fix typo in runtime docs

* fix typo in rpc client
2022-12-29 15:03:28 -07:00
behzad nouri 1de161c13a
simplifies shreds sigverify (#29436)
Simplifying this code in preparation of removing merkle roots from
shreds binary.
2022-12-29 20:51:57 +00:00
Steven Luscher 0665569d26
Crank Stalebot's operations limit up to a level that should handle all issues
This thing seems to have been humming along at 300 in the dead zone between NA night and Europe morning. Let's see if it can handle the entire corpus.
2022-12-28 19:46:41 -08:00
behzad nouri fba4a57060
expands test coverage for sign_shreds_gpu (#29429) 2022-12-29 00:33:51 +00:00
behzad nouri d172ab342f
expands test coverage for merkle/legacy shreds sigverify (#29424) 2022-12-28 17:42:24 +00:00
kirill lykov 5d18a5c738
replaced ./cargo with cargo in build docs (#29375) 2022-12-28 00:52:49 +01:00
Ashwin Sekar 17b64005d3
Add more logging and documentation to flaky optimistic confirmation tests (#29418)
* Revert "add retry for flakey local cluster test (#29228)"

This reverts commit 7a97121747.

* Add logging for repair
2022-12-27 10:47:45 -07:00
Steven Luscher ec5e5dbffa
Double the Stalebot operations limit 2022-12-27 07:49:53 -08:00
Steven Luscher 7429df5176
Increase the Stalebot operations limit by another 50%. 2022-12-26 16:03:46 -08:00
behzad nouri 456d06785d
experiments different turbine fanouts for propagating shreds (#29393)
The commit allocates 2% of slots to running experiments with different
turbine fanouts based on the slot number.
The experiment is feature gated with an additional feature to disable
the experiment.
2022-12-26 14:18:56 +00:00
Ashwin Sekar f2ba16ee87
Plumb dumps from replay_stage to repair (#29058)
* Plumb dumps from replay_stage to repair

When dumping a slot from replay_stage as a result of duplicate or
ancestor hashes, properly update repair subtrees to keep weighting and
forks view accurate.

* add test

* pr comments
2022-12-25 09:58:30 -07:00
Dmitri Makarov 2681720557
Re-enable cargo-build-sbf tests (#29415) 2022-12-25 07:25:22 -05:00
Yihau Chen d39237891b
ci: fix web3-commit-lint (#29414)
chore: update web3 package-lock.json
2022-12-24 19:37:27 +00:00
Dmitri Makarov 3a14e52eb7
Bump sbf-tools to v1.32 (#29325)
* Bump sbf-tools to v1.32

This version of sbf-tools is based on Rust 1.65.0 and LLVM 15.0.

* Temporary ignore build-sbf tests until issue with buildkite cache resolved
2022-12-24 11:34:12 -08:00
Yihau Chen 3cfd1b244d
test: fix get inflation rate test failed at test:live (#29413) 2022-12-25 02:24:49 +08:00
Dmitri Makarov b0c8e0ff03
Enable full output of cargo-build-sbf tests (#29411) 2022-12-24 09:28:44 -08:00
Dmitri Makarov 33946f5007
Add an option to reinstall sbf-tool binaries by cargo-build-sbf (#29410) 2022-12-24 08:54:55 -08:00
Dmitri Makarov f05eb4a022
Temporary increase the build redundancy threshold (#29412) 2022-12-24 08:05:54 -08:00
TJDawson10 c0e6065ac9
feat: add getInflationRate RPC call to web3.js (#29377)
* Add getInflationRate RPC call

* Fix code formatting

Co-authored-by: steveluscher <me+github@steveluscher.com>
2022-12-23 22:08:23 -08:00
Steven Luscher b619b0d33f
Increase Stalebot's operation consumption limit by another 50% 2022-12-23 21:53:19 -08:00
Nico Schapeler 5f4752a29e
feat: Allow for verifying the sigs of partially signed txs in web3.js (#29249)
* feat: allow for verifying the sigs of partially signed txs

* fix: make comment ab verifying sigs more specific

Co-authored-by: Steven Luscher <steveluscher@users.noreply.github.com>

* feat: add tests for partial signed tx verification

* fix: revert lockfile changes

* fix: make tests more modular

* fix: run linter

Co-authored-by: Steven Luscher <steveluscher@users.noreply.github.com>
2022-12-23 21:50:53 -08:00
steviez 1cc8917b9f
Adjust ledger-tool bigtable upload starting-slot default value (#29384)
Currently, if starting-slot is unspecified, a value of 0 will be chosen.
In the common case where someone is operating on a much more recent
range, this would result in a ton of wasted operations & time.

Instead, choose a smarter default value for starting-slot based on what
we detect is currently in the blockstore.
2022-12-23 21:35:07 +00:00
steviez 58d66e1113
Minor cleanup on bigtable_upload (#29379)
Adjust some logs, and remove an unnecessary cloned().
2022-12-23 20:19:15 +00:00
Tyera 81394cf92c
Fix BigTable upload early return (#29378)
* Change Err when slot range is empty to Ok and log; add method docs

* Update var and log to be more correct

* Promote log level to warn
2022-12-23 18:11:27 +00:00
Daniel Kilimnik 892e23ce08
Security TXT: Add source_release and source_revision fields (#29392) 2022-12-23 14:33:25 +01:00
Yihau Chen d32c34822b
ci: trigger stable-sbf pipeline when cargo-[test|build]-[bpf|sbf] is modified (#29391) 2022-12-23 20:59:37 +08:00
Yihau Chen 0f99f70519
ci: trigger downstream pipeline when cargo-[test|build]-[bpf|sbf] is modified (#29390) 2022-12-23 20:56:30 +08:00
Jon Cinque 968b158494
vote: Prevent commission update in the second half of epochs (#29362)
* vote: Prevent commission update in the second half of epochs

* Address feedback

* Fix tests

* Make the feature enabled by single-contributor

* Use a cooler pubkey
2022-12-23 12:24:39 +01:00
kirill lykov 8d11b28bc0
get rid of ./cargo when building downstream projects (#29372) 2022-12-23 17:02:23 +08:00
dependabot[bot] 65391a70cb
chore: bump futures-util from 0.3.24 to 0.3.25 (#29337)
* chore: bump futures-util from 0.3.24 to 0.3.25

Bumps [futures-util](https://github.com/rust-lang/futures-rs) from 0.3.24 to 0.3.25.
- [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.24...0.3.25)

---
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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot-buildkite <dependabot-buildkite@noreply.solana.com>
2022-12-22 22:42:18 -07:00
Lijun Wang 0a7d8520b8
Make connection cache to support specified client endpoint (#29240)
ConnectionCache is being used for managing connections for sending messages using quic. In the current implementation the connection's endpoint is created in a lazy initialized fashion and set to one per connection pool. In repair we need all connections to use the same Endpoint so that the server can send back the response to the same Endpoint.
2022-12-22 12:35:32 -08:00
kirill lykov 49f4e2ae05
replace ./cargo with cargo in sbf/bpf build scripts (#29371) 2022-12-22 20:17:11 +01:00
Tyera d33129193f
Add fee-payer arg to solana feature activate (#29367) 2022-12-22 10:07:56 -07:00
Brian Anderson edd5f6f3be
Expand solana-sdk API docs. (#29063)
* Expand solana-sdk API docs.

* Update sdk/src/genesis_config.rs

Co-authored-by: Tyera <teulberg@gmail.com>

* Update sdk/src/hard_forks.rs

Co-authored-by: Tyera <teulberg@gmail.com>

* Update sdk/src/builtins.rs

Co-authored-by: Tyera <teulberg@gmail.com>

* Update sdk/src/builtins.rs

Co-authored-by: Tyera <teulberg@gmail.com>

* Update sdk/src/rpc_port.rs

Co-authored-by: Tyera <teulberg@gmail.com>

* Update sdk/src/lib.rs

Co-authored-by: Tyera <teulberg@gmail.com>

* Clarify derivation_path docs

* 'entry point' -> 'entrypoint'

Co-authored-by: Tyera <teulberg@gmail.com>
2022-12-22 08:58:06 +00:00
Yihau Chen bf18613a2e
fix: client-test timeout (#29364)
* fix: retry counter doesn't count

* set timeout for wait_for
2022-12-22 16:50:19 +08:00
Alessandro Decina 0a5164d887
Remove checks for activated feature check_physical_overlapping (#29355) 2022-12-22 19:07:08 +11:00
Nick Frostbutter d8da242e5e
docs: transactions fees/confirmation and deploying programs (#28895)
docs: adds and updates
2022-12-21 22:51:49 -06:00
Nick Frostbutter 12de7637f1
[docs] Updated transactions overview page (#29345)
fix: added broad overview
2022-12-21 22:38:47 -06:00
Nick Frostbutter 5918d6f09d
[docs] updating the "writing programs" section (#29197)
* docs: added limitations page

* fix: updated deprecated cargo test-bpf

* docs: moved content off of overview

* fix: added compute budget description

* fix: updated compute buddget

* fix: rearranged sections

* fix: update code snippet

* docs: overview page and links
2022-12-21 22:27:10 -06:00
Tyera 1e0d3931fd
Fix "tranaction" typo in code base (#29347)
Fix typos
2022-12-21 18:02:36 -07:00
Jeff Washington (jwash) 0f7ef085a0
introduce ShrinkInProgress (#29329)
* introduce ShrinkInProgress

* remove redundant check

* add comments
2022-12-21 09:03:29 -08:00
Jeff Washington (jwash) 4a64f6d421
test_utils::create_test_accounts pre-allocates an append vec first (#29336)
* test_utils::create_test_accounts pre-allocates an append vec first

* remove comment
2022-12-21 09:02:42 -08:00
Tao Zhu 0244b0144a
Add metrics for min/max priority fee per slot, and counters for fee/non-fee transactions (#29330)
* Add metrics for min/max priority fee per slot, and counters for fee/non-fee txs

* get fee range of prioritized transactions only

* Update runtime/src/prioritization_fee.rs

Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com>

* Update runtime/src/prioritization_fee.rs

Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com>

* fix format

Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com>
2022-12-21 16:42:26 +00:00
Tao Zhu 926debd18c
exclude Vote transactions from updating min-fee-cache (#29341) 2022-12-20 20:05:46 +00:00
Tyera 067facfbef
Remove println (#29342) 2022-12-20 19:31:40 +00:00
Jeff Washington (jwash) c3ca5b78b2
remove acctdb.min_num_stores (#29335) 2022-12-20 10:39:20 -08:00
behzad nouri 558292466b
rolls back merkle shreds on testnet (#29340)
https://github.com/solana-labs/solana/pull/29339
adds hash domain to merkle shreds. In order to merge that change, need
to temporarily disable merkle shreds on testnet.
2022-12-20 18:33:48 +00:00
Jeff Washington (jwash) 098b86b883
test_minimize_accounts_db uses write cache correctly (#29333) 2022-12-20 09:50:56 -08:00
Brooks 053775ad77
Elides unnecessary lifetimes (#29299) 2022-12-20 12:44:17 -05:00