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
apfitzge
5e6b2e49dc
fix typo in cluster docs ( #24706 )
2022-04-27 19:24:04 -05:00
behzad nouri
1e86d3ab59
moves shredder out of the shred module ( #24755 )
...
Working towards embedding versioning into shreds binary; so Shredder can
no longer depend on internals of Shred.
2022-04-27 22:00:04 +00:00
steveluscher
8541704267
chore: add @types/sinon-chai
2022-04-27 14:38:42 -07:00
Pankaj Garg
0910d9a209
Increase worker thread limits in quic streamer runtime ( #24751 )
...
* Resurrect "Increase worker thread limits in quic streamer runtime (#24535 )""
* Fix test_quic_server_block_multiple_connections
* remove sleep
2022-04-27 20:50:08 +00:00
Pankaj Garg
ded6ac6696
Swap quic counters with 0 while reporting ( #24754 )
2022-04-27 20:17:40 +00:00
Tyera Eulberg
a1b066a438
Support token-2022 in RPC instruction parsing ( #24537 )
...
* Use token-2022 dependency in parse_token and add tests for new variants
* Remove test hack
* Bump spl-token-2022 and use new AuthorityType::CloseMint
* Add zk-token-sdk to patch-crates.sh
2022-04-27 19:42:00 +00:00
steveluscher
7b5aee7576
chore: update web3.js lockfiles
2022-04-27 11:43:57 -07:00
Steven Luscher
442e6c325f
fix: eliminate circular dependencies in web3.js ( #24729 )
...
* chore: enable circular dependency warnings on build
* fix: eliminate circular dependencies in web3.js
2022-04-27 11:41:14 -07:00
Steven Luscher
69725df6b0
chore: delete unused Rollup config in web3.js test dir ( #24733 )
2022-04-27 11:36:04 -07:00
behzad nouri
0f60665100
replaces Shred::new_empty_coding with Shred::new_from_parity_shard ( #24749 )
...
Removing implementation details of shreds and payload offsets from
shredder, so that shredder does not need to mutate payload:
https://github.com/solana-labs/solana/blob/71ad12128/ledger/src/shred.rs#L968-L977
Also, Shred::new_from_data can simply obtain a slice as opposed to
Option<&[u8]>:
https://github.com/solana-labs/solana/blob/71ad12128/ledger/src/shred.rs#L268-L278
2022-04-27 18:04:10 +00:00
sakridge
cdce19be29
Use batch send instead of individual send ( #24628 )
2022-04-27 19:28:16 +02:00
Steven Luscher
27a1757612
chore: compile tests with the same compiler as the build itself ( #24728 )
2022-04-27 09:53:24 -07:00