Yueh-Hsuan Chiang
b56c091b37
(LedgerStore) Hidden validator argument for RocksDB perf samples ( #24682 )
...
#### Problem
Currently, the number of RocksDB perf samples is controlled by an env arg
which is later handled using a lazy_static variable. However, there is a known
performance overhead of using lazy_static as mentioned in
https://github.com/solana-labs/solana/pull/6472 .
#### Summary of Changes
Instead, this PR uses a hidden validator argument, --rocksdb-perf-sample-interval,
for controlling how often RocksDB read/write performance sample is collected.
2022-04-29 15:28:50 -07:00
Brooks Prumo
cb501807ca
cli stake tests: Increase stake amounts to handle raising minimum delegation ( #24835 )
2022-04-29 16:37:18 -05:00
Justin Starry
45314a89b0
explorer: Hide compute units if log parsing fails ( #24848 )
2022-04-30 04:11:59 +08:00
Justin Starry
2d7e29477a
cli: Feature status improvements ( #24745 )
...
* cli: Display feature activation epoch instead of slot
* cli: Always display feature statuses for specific queries
* cli: Add epoch column and show epoch for pending features
* cli: Remove epoch column and clarify statuses
* skip serializing bookkeeping fields
* Add activation slot to feature status table
2022-04-30 04:08:57 +08:00
Code Monkey
aee17f3b50
fix typo on validator help ( #24844 )
...
Co-authored-by: Austin <support@thetaproxies.com>
2022-04-29 13:47:04 -06:00
behzad nouri
08e1727926
minor edits in shred and shredder ( #24841 )
...
Removed Default implementation for ShredType. ShredType should always be
explicitly specified, and not rely on default values.
Simplified single-arg Shred Error variants to use shorter syntax.
Renamed erasure blocks to shards, to be consistent with reed_solomon
crate and not to confuse with FEC blocks.
2022-04-29 19:42:15 +00:00
Justin Starry
c0981a9f8c
docs: Update outdated compute budget docs ( #24737 )
...
* docs: Update outdated compute budget docs
* docs: Add section about reducing tx fees
2022-04-30 03:38:59 +08:00
Pankaj Garg
21ee012c18
Add some timing measure for get_connection() ( #24814 )
...
* Add some timing measure for get_connection()
* fix build issue
2022-04-29 09:58:01 -07:00
Brooks Prumo
a73f99823d
Do not hold lock unnecessarily when hashing ( #24815 )
2022-04-29 08:40:28 +00:00
Justin Starry
a61652104b
Avoid holding lock guards in match expressions ( #24805 )
...
* Avoid holding bank forks read lock for RPC requests
* Avoid using lock guards in temporaries
* revert fetch stage change
2022-04-29 16:32:46 +08:00
dependabot[bot]
9a136aa684
chore: bump cross-fetch from 3.1.4 to 3.1.5 in /docs ( #24812 )
...
Bumps [cross-fetch](https://github.com/lquixada/cross-fetch ) from 3.1.4 to 3.1.5.
- [Release notes](https://github.com/lquixada/cross-fetch/releases )
- [Commits](https://github.com/lquixada/cross-fetch/compare/v3.1.4...v3.1.5 )
---
updated-dependencies:
- dependency-name: cross-fetch
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-29 15:18:06 +08:00
axleiro
ebcdd3b18d
adding solana-private.sh
...
for a new pipeline
2022-04-29 11:36:21 +05:30
Yueh-Hsuan Chiang
27efcae16c
(LedgerStore) Convert Rocks from tuple to struct with named fields ( #24761 )
...
#### Problem
The RocksDB wrapper,`Rocks`, under blockstore_db is currently implemented
as a tuple with unnamed fields. Accessing its fields requires syntax like `self.0`
which limits readability.
#### Summary of Changes
This PR converts Rocks from tuple to struct so that it has more human-readable
fields.
2022-04-28 21:32:48 -07:00
steveluscher
0e0065a3f2
fix: restore export of PACKET_DATA_SIZE to web3.js
2022-04-28 20:03:57 -07:00
Dan Albert
ad7c95b8a5
Update non-circulating supply list ( #24817 )
...
Co-authored-by: publish-docs.sh <maintainers@solana.com>
2022-04-29 02:57:54 +00:00
behzad nouri
008860bb36
removes SHRED_PAYLOAD_SIZE from shred public interface ( #24806 )
2022-04-28 23:42:37 +00:00
Steven Luscher
2e617ba4fd
fix: the one where we fix client subscriptions ( #24473 )
...
* chore: create a first-class type to distinguish client subscription ids from server subscription ids
* chore: add fast-stable-stringify as a dependency to web3.js
* fix: reimplement the subscription tracker as a state machine
* test: updated tests to recognize that signatureUnsubscribe happens synchronously
* chore: add sinon-chai so that we can make assertions on calling spies
* test: coverage for the full range of subscription state transitions
* fix: special case auto-disposing subscriptions like signatureSubscribe
* fix: document Subscription type (SQUASH THIS)
* fix: strict undefined checks (SQUASH THIS)
* fix: naming (SQUASH THIS)
* fix: move defaulting to source (SQUASH THIS)
* fix: build RPC args first, then produce the subscription topic hash (SQUASH THIS)
* fix: dispose handles no longer track whether they've been called (SQUASH THIS)
* fix: shore up the auto-disposing sub tests now that double-free doesn't fatal (SQUASH THIS)
* fix: write documentation explaining how and why to apply a default commitment (SQUASH THIS)
* fix: skip subscriptions that have been deleted when recursing (SQUASH THIS)
* fix: bail on async responses when the connection has been recycled (SQUASH THIS)
* fix: typo in comment (SQUASH THIS)
* chore: comment on why notification callbacks are ts-ignored
* chore: start all the new stuff out as private members of the Connection class
2022-04-28 16:21:39 -07:00
Brooks Prumo
b4ade0d48a
Make stake integration tests aware of stake minimum delegation ( #24809 )
2022-04-28 18:11:39 -05:00
Steven Luscher
8f6e469d92
test: repair web3.js getBlocks tests ( #24813 )
2022-04-28 16:09:08 -07:00
Jon Cinque
b4503d4110
token: Add features for new program releases ( #24742 )
...
* token: Add features for new program releases
* Add PR number
2022-04-28 23:43:57 +02:00
Justin Starry
4e58b3870c
Update all BankForks methods to return owned values ( #24801 )
2022-04-28 18:51:00 +00:00
dependabot[bot]
b22a14ca68
chore: bump etcd-client from 0.9.0 to 0.9.1 ( #24774 )
...
* chore: bump etcd-client from 0.9.0 to 0.9.1
Bumps [etcd-client](https://github.com/etcdv3/etcd-client ) from 0.9.0 to 0.9.1.
- [Release notes](https://github.com/etcdv3/etcd-client/releases )
- [Commits](https://github.com/etcdv3/etcd-client/compare/v0.9.0...v0.9.1 )
---
updated-dependencies:
- dependency-name: etcd-client
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-04-28 12:30:37 -06:00
dependabot[bot]
9f941bd191
chore: bump tokio from 1.17.0 to 1.18.0 ( #24773 )
...
* chore: bump tokio from 1.17.0 to 1.18.0
Bumps [tokio](https://github.com/tokio-rs/tokio ) from 1.17.0 to 1.18.0.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.17.0...tokio-1.18.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-04-28 12:30:19 -06:00
Tyera Eulberg
e189603d17
Make test less brittle ( #24803 )
2022-04-28 12:09:01 -06:00
Tyera Eulberg
e7074bc61b
Parse token-2022 account extensions (mostly) ( #24621 )
...
* Parse most account/mint extensions
* Add comments
2022-04-28 09:48:20 -06:00
Lijun Wang
431c8412ef
Leader info refresher ( #24597 )
...
In PR review https://github.com/solana-labs/solana/pull/24083/files#r852661162 . We are concerned the leader info might be out dated if the retry queue is long causing large number transactions sent to outdated leaders and increasing the load in the network.
A leader info refresher is used to ensure the leader info is up-to-date before being used in sending transactions. The refresher can update the new leader with updated endpoints.
2022-04-28 08:35:42 -07:00
Brooks Prumo
7b6880f652
Make test_bank_cloned_stake_delegations() aware of stake minimum delegation ( #24753 )
2022-04-28 09:35:07 -05:00
dependabot[bot]
c2a44cfcee
chore: bump rollup-plugin-dts from 4.2.0 to 4.2.1 in /web3.js ( #24794 )
...
Bumps [rollup-plugin-dts](https://github.com/Swatinem/rollup-plugin-dts ) from 4.2.0 to 4.2.1.
- [Release notes](https://github.com/Swatinem/rollup-plugin-dts/releases )
- [Changelog](https://github.com/Swatinem/rollup-plugin-dts/blob/master/CHANGELOG.md )
- [Commits](https://github.com/Swatinem/rollup-plugin-dts/compare/v4.2.0...v4.2.1 )
---
updated-dependencies:
- dependency-name: rollup-plugin-dts
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>
2022-04-28 12:20:38 +00:00
dependabot[bot]
e88afbede8
chore: bump rollup from 2.60.2 to 2.70.2 in /web3.js ( #24793 )
...
Bumps [rollup](https://github.com/rollup/rollup ) from 2.60.2 to 2.70.2.
- [Release notes](https://github.com/rollup/rollup/releases )
- [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rollup/rollup/compare/v2.60.2...v2.70.2 )
---
updated-dependencies:
- dependency-name: rollup
dependency-type: direct:development
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-04-28 12:07:45 +00:00
dependabot[bot]
779f768504
chore: bump sinon from 12.0.1 to 13.0.2 in /web3.js ( #24792 )
...
Bumps [sinon](https://github.com/sinonjs/sinon ) from 12.0.1 to 13.0.2.
- [Release notes](https://github.com/sinonjs/sinon/releases )
- [Changelog](https://github.com/sinonjs/sinon/blob/main/docs/changelog.md )
- [Commits](https://github.com/sinonjs/sinon/compare/v12.0.1...v13.0.2 )
---
updated-dependencies:
- dependency-name: sinon
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-28 11:55:20 +00:00
dependabot[bot]
dec9715e82
chore: bump tslib from 2.3.1 to 2.4.0 in /web3.js ( #24791 )
...
Bumps [tslib](https://github.com/Microsoft/tslib ) from 2.3.1 to 2.4.0.
- [Release notes](https://github.com/Microsoft/tslib/releases )
- [Commits](https://github.com/Microsoft/tslib/compare/2.3.1...2.4.0 )
---
updated-dependencies:
- dependency-name: tslib
dependency-type: direct:development
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-04-28 11:42:18 +00:00
dependabot[bot]
e9f100c88e
chore: bump eslint-plugin-import from 2.25.3 to 2.26.0 in /web3.js ( #24790 )
...
Bumps [eslint-plugin-import](https://github.com/import-js/eslint-plugin-import ) from 2.25.3 to 2.26.0.
- [Release notes](https://github.com/import-js/eslint-plugin-import/releases )
- [Changelog](https://github.com/import-js/eslint-plugin-import/blob/main/CHANGELOG.md )
- [Commits](https://github.com/import-js/eslint-plugin-import/compare/v2.25.3...v2.26.0 )
---
updated-dependencies:
- dependency-name: eslint-plugin-import
dependency-type: direct:development
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-04-28 11:29:50 +00:00
dependabot[bot]
3725d4391a
chore: bump @commitlint/travis-cli from 16.2.3 to 16.2.4 in /web3.js ( #24789 )
...
Bumps [@commitlint/travis-cli](https://github.com/conventional-changelog/commitlint/tree/HEAD/@commitlint/travis-cli ) from 16.2.3 to 16.2.4.
- [Release notes](https://github.com/conventional-changelog/commitlint/releases )
- [Changelog](https://github.com/conventional-changelog/commitlint/blob/master/@commitlint/travis-cli/CHANGELOG.md )
- [Commits](https://github.com/conventional-changelog/commitlint/commits/v16.2.4/@commitlint/travis-cli )
---
updated-dependencies:
- dependency-name: "@commitlint/travis-cli"
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>
2022-04-28 11:17:08 +00:00
dependabot[bot]
c080f6e40f
chore: bump rpc-websockets from 7.4.17 to 7.4.18 in /web3.js ( #24788 )
...
Bumps [rpc-websockets](https://github.com/elpheria/rpc-websockets ) from 7.4.17 to 7.4.18.
- [Release notes](https://github.com/elpheria/rpc-websockets/releases )
- [Commits](https://github.com/elpheria/rpc-websockets/compare/v7.4.17...v7.4.18 )
---
updated-dependencies:
- dependency-name: rpc-websockets
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-04-28 11:05:53 +00:00
Justin Starry
898b3529ff
explorer: Support filtering block transactions by account ( #24787 )
2022-04-28 19:01:12 +08:00
dependabot[bot]
8f2680687d
chore: bump @types/mocha from 9.1.0 to 9.1.1 in /web3.js ( #24781 )
...
Bumps [@types/mocha](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/mocha ) from 9.1.0 to 9.1.1.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/mocha )
---
updated-dependencies:
- dependency-name: "@types/mocha"
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>
2022-04-28 18:53:11 +08:00
Justin Starry
aa1d34b09e
explorer: Allow sorting block transactions by compute ( #24786 )
2022-04-28 10:23:33 +00:00
Justin Starry
1d6df736a3
explorer: Improvements to block transactions list ( #24785 )
...
* explorer: Show CPI programs in block transactions list
* explorer: Hide votes from block transactions and display compute col
* explorer: Add greater than sign to compute if tx logs truncated
2022-04-28 18:15:01 +08:00
dependabot[bot]
b730d1da00
chore:(deps): bump react and react-dom in /explorer ( #24783 )
...
Bumps [react](https://github.com/facebook/react/tree/HEAD/packages/react ) and [react-dom](https://github.com/facebook/react/tree/HEAD/packages/react-dom ). These dependencies needed to be updated together.
Updates `react` from 17.0.2 to 18.1.0
- [Release notes](https://github.com/facebook/react/releases )
- [Changelog](https://github.com/facebook/react/blob/main/CHANGELOG.md )
- [Commits](https://github.com/facebook/react/commits/v18.1.0/packages/react )
Updates `react-dom` from 17.0.2 to 18.1.0
- [Release notes](https://github.com/facebook/react/releases )
- [Changelog](https://github.com/facebook/react/blob/main/CHANGELOG.md )
- [Commits](https://github.com/facebook/react/commits/v18.1.0/packages/react-dom )
---
updated-dependencies:
- dependency-name: react
dependency-type: direct:production
update-type: version-update:semver-major
- dependency-name: react-dom
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-28 08:46:48 +00:00
Justin Starry
34c109d6e9
explorer: Improve displayed transaction instruction logs ( #24780 )
2022-04-28 08:46:15 +00:00
dependabot[bot]
d3460acee0
chore:(deps): bump @types/chai from 4.2.22 to 4.3.1 in /explorer ( #24782 )
...
Bumps [@types/chai](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/chai ) from 4.2.22 to 4.3.1.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/chai )
---
updated-dependencies:
- dependency-name: "@types/chai"
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-04-28 08:38:15 +00:00
dependabot[bot]
eda77f188d
chore:(deps): bump sass from 1.47.0 to 1.51.0 in /explorer ( #24779 )
...
Bumps [sass](https://github.com/sass/dart-sass ) from 1.47.0 to 1.51.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.47.0...1.51.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-04-28 08:32:03 +00:00
dependabot[bot]
9d913ae3f1
chore:(deps): bump @testing-library/react in /explorer ( #24772 )
...
Bumps [@testing-library/react](https://github.com/testing-library/react-testing-library ) from 12.1.2 to 12.1.5.
- [Release notes](https://github.com/testing-library/react-testing-library/releases )
- [Changelog](https://github.com/testing-library/react-testing-library/blob/main/CHANGELOG.md )
- [Commits](https://github.com/testing-library/react-testing-library/compare/v12.1.2...v12.1.5 )
---
updated-dependencies:
- dependency-name: "@testing-library/react"
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-04-28 08:25:39 +00:00
Justin Starry
f71b51f9a7
explorer: Show address for unknown programs in logs ( #24770 )
2022-04-28 16:25:24 +08:00
dependabot[bot]
bd2ba41bfb
chore: bump @rollup/plugin-replace from 3.1.0 to 4.0.0 in /web3.js ( #24775 )
...
Bumps [@rollup/plugin-replace](https://github.com/rollup/plugins/tree/HEAD/packages/replace ) from 3.1.0 to 4.0.0.
- [Release notes](https://github.com/rollup/plugins/releases )
- [Changelog](https://github.com/rollup/plugins/blob/master/packages/replace/CHANGELOG.md )
- [Commits](https://github.com/rollup/plugins/commits/url-v4.0.0/packages/replace )
---
updated-dependencies:
- dependency-name: "@rollup/plugin-replace"
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-28 08:25:10 +00:00
Jack May
224e0b27a1
Simplify register and bind ( #24724 )
...
* Revert "Bumps solana_rbpf to v0.2.27 (#24694 )"
This reverts commit f3d27cc400
.
* Simplify syscall register and bind (#24546 )
* declare syscalls with macro (#24564 )
2022-04-28 10:24:42 +02:00
dependabot[bot]
1168b9f9ab
chore:(deps): bump bignumber.js from 9.0.1 to 9.0.2 in /explorer ( #24771 )
...
Bumps [bignumber.js](https://github.com/MikeMcl/bignumber.js ) from 9.0.1 to 9.0.2.
- [Release notes](https://github.com/MikeMcl/bignumber.js/releases )
- [Changelog](https://github.com/MikeMcl/bignumber.js/blob/master/CHANGELOG.md )
- [Commits](https://github.com/MikeMcl/bignumber.js/compare/v9.0.1...v9.0.2 )
---
updated-dependencies:
- dependency-name: bignumber.js
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-04-28 08:24:25 +00:00
sakridge
5a430c15e2
Separate sigverify metrics for each verifier ( #24744 )
2022-04-28 01:16:17 -07:00
Tyera Eulberg
b6a18e0e87
Fix get_first_available_block for genesis; also make get_blocks(_with_limit) consistent ( #24760 )
...
* Handle genesis more appropriately in get_first_available_block
* Add unit test
* Make get_blocks starting-slots consistent with other methods
2022-04-28 00:36:19 -06:00
T.J. Kyner
8be726aa67
typo fix in javascript-api docs ( #24085 )
2022-04-28 11:06:41 +08:00