chaseeb
4625231e30
Update web-wallet.md to add phantom with fixed link ( #17161 )
...
* Update web-wallet.md to add phantom with fixed link
Update web-wallet.md to add phantom with fixed link
* Update web-wallets.md for phantom
removing trailing whitespaces
* Update docs/src/wallet-guide/web-wallets.md
Co-authored-by: Michael Vines <mvines@gmail.com>
2021-05-11 04:23:13 +00:00
Tyera Eulberg
a5ec3a0547
SignerSource: rename input scheme to `prompt`, default to bip44 solana base key ( #17154 )
...
* Rename ask to prompt
* Default to Solana bip44 base if no derivation-path
* Add SignerSource legacy field, support legacy ASK
* Update docs
* Fix docs: validator current doesn't support uri SignerSources
2021-05-10 19:28:47 -06:00
Jack May
8eb05d6ed4
Add Keccak256 syscall and sdk support ( #16498 )
2021-05-10 16:16:58 -07:00
Christian Machacek
e511c442e6
fix: improve findProgramAddress error when MAX_SEED_LENGTH is exceeded ( #17151 )
2021-05-10 15:55:51 -07:00
Jack May
82fb6712e7
fix c program deploy help ( #17152 )
2021-05-10 15:38:01 -07:00
Jon Cinque
4b60b2863e
sdk: Add get_instance_packed_len for variable-size types ( #17092 )
...
* sdk: Add get_instance_packed_len for variable-size types
* Add comment for get_packed_len
* Add more tests
2021-05-10 23:31:02 +02:00
Tyera Eulberg
6e9deaf1bd
Move block-time caching earlier ( #17109 )
...
* Require that blockstore block-time only be recognized slot, instead of root
* Move cache_block_time to after Bank freeze
* Single use statement
* Pass transaction_status_sender by reference
* Remove unnecessary slot-existence check before caching block time altogether
* Move block-time existence check into Blockstore::cache_block_time, Blockstore no longer needed in blockstore_processor helper
2021-05-10 13:14:56 -06:00
Jeff Washington (jwash)
f39dda00e0
type AccountSecondaryIndexes = HashSet ( #17108 )
2021-05-10 14:22:48 +00:00
Jeff Washington (jwash)
a6a1355b80
fix secondary index test ( #17111 )
2021-05-10 08:54:30 -05:00
Ryo Onodera
c616c34825
Add comment for another unspoken eager collection subtlety ( #17137 )
2021-05-10 22:44:46 +09:00
behzad nouri
81ad795d46
removes position field in coding-shred-header
...
CodingShredHeader.position is equal to
ShredCommonHeader.index - ShredCommonHeader.fec_set_index
and is so redundant. The extra position field can add bugs if not
consistent with index and fec_set_index.
2021-05-10 13:20:56 +00:00
dependabot[bot]
ad92414be3
chore: bump @solana/spl-token from 0.1.3 to 0.1.4 in /web3.js ( #17142 )
...
Bumps [@solana/spl-token](https://github.com/solana-labs/solana-program-library ) from 0.1.3 to 0.1.4.
- [Release notes](https://github.com/solana-labs/solana-program-library/releases )
- [Commits](https://github.com/solana-labs/solana-program-library/compare/@solana/spl-token@v0.1.3...@solana/spl-token@v0.1.4 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-10 12:27:18 +00:00
dependabot[bot]
a74cbb2f93
chore: bump @rollup/plugin-commonjs from 18.1.0 to 19.0.0 in /web3.js ( #17141 )
...
Bumps [@rollup/plugin-commonjs](https://github.com/rollup/plugins/tree/HEAD/packages/commonjs ) from 18.1.0 to 19.0.0.
- [Release notes](https://github.com/rollup/plugins/releases )
- [Changelog](https://github.com/rollup/plugins/blob/master/packages/commonjs/CHANGELOG.md )
- [Commits](https://github.com/rollup/plugins/commits/commonjs-v19.0.0/packages/commonjs )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-10 12:22:05 +00:00
dependabot[bot]
442ce816ac
chore: bump @types/chai-as-promised from 7.1.3 to 7.1.4 in /web3.js ( #17140 )
...
Bumps [@types/chai-as-promised](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/chai-as-promised ) from 7.1.3 to 7.1.4.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/chai-as-promised )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-10 11:39:51 +00:00
dependabot[bot]
6ee90759c8
chore: bump @types/chai from 4.2.17 to 4.2.18 in /web3.js ( #17139 )
...
Bumps [@types/chai](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/chai ) from 4.2.17 to 4.2.18.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/chai )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-10 11:31:48 +00:00
dependabot[bot]
9983d6af77
chore: bump eslint from 7.25.0 to 7.26.0 in /web3.js ( #17138 )
...
Bumps [eslint](https://github.com/eslint/eslint ) from 7.25.0 to 7.26.0.
- [Release notes](https://github.com/eslint/eslint/releases )
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md )
- [Commits](https://github.com/eslint/eslint/compare/v7.25.0...v7.26.0 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-10 11:27:04 +00:00
behzad nouri
22c02b917e
reads gossip push messages off crds ordinal index
...
Having an ordinal index on crds values based on insert order allows to
efficiently filter values using a cursor. In particular
CrdsGossipPush::push_messages hash-map can be replaced with a cursor,
saving on the bookkeepings, purging, etc
2021-05-09 22:40:41 +00:00
behzad nouri
dfa3e7a61c
indexes crds values by their insert order
2021-05-09 22:40:41 +00:00
Christian Machacek
ff95e2aaa6
Add a make target to run the readelf utility on a compiled program
...
The readelf utility (already shipped with the solana tools) shows meta-information about ELF files, such as symbol tables. It is useful for investigating "unresolved symbol" errors that crop up at runtime.
This commit also fixes the objdump flags (two dashes are required and there is no "color" option) as well as a few typos.
2021-05-08 18:49:14 -07:00
Justin Starry
a1df57a4ea
Add chinese translations to docs ( #17125 )
...
* import zh translations
* Fix broken links
* fix whitespace
2021-05-09 00:46:24 +08:00
Christian Machacek
6927d0c77e
Fix syscalls in the C SDK failing at runtime when compiled as C++ ( #17124 )
...
Some syscalls are wrongly declared "static" in solana_sdk.h, which makes clang++ assume they are local to the compilation unit. It therefore ignores the extern "C" {} block and mangles their names. While that doesn't break C++ compilation, the syscall fails at runtime with something along the lines of "ELF error: Unresolved symbol (_ZL26sol_create_program_addressPK13SolSignerSeediPK9SolPubkeyS4_)".
2021-05-08 16:31:50 +00:00
Justin Starry
0a6fa1999a
explorer: Fix bonfida dependency ( #17120 )
...
* explorer: Fix bonfida dependency
* fix import
2021-05-08 15:09:14 +08:00
dependabot[bot]
35f20b8b6a
chore:(deps): bump @solana/web3.js from 1.9.0 to 1.9.1 in /explorer ( #17079 )
...
Bumps [@solana/web3.js](https://github.com/solana-labs/solana-web3.js ) from 1.9.0 to 1.9.1.
- [Release notes](https://github.com/solana-labs/solana-web3.js/releases )
- [Changelog](https://github.com/solana-labs/solana-web3.js/blob/master/.releaserc.json )
- [Commits](https://github.com/solana-labs/solana-web3.js/compare/v1.9.0...v1.9.1 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-08 14:00:24 +08:00
Michael Vines
d6c076f1b6
getBlockProduction now correctly reports block production
2021-05-07 19:04:51 -07:00
Michael Vines
ec2b06d81d
`solana-validator exit` now uses `process::exit()` to ensure prompt termination
2021-05-07 10:33:51 -07:00
dependabot[bot]
640883a9a9
chore: bump mocha from 8.3.2 to 8.4.0 in /web3.js ( #17101 )
...
Bumps [mocha](https://github.com/mochajs/mocha ) from 8.3.2 to 8.4.0.
- [Release notes](https://github.com/mochajs/mocha/releases )
- [Changelog](https://github.com/mochajs/mocha/blob/master/CHANGELOG.md )
- [Commits](https://github.com/mochajs/mocha/compare/v8.3.2...v8.4.0 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-07 09:22:07 +00:00
dependabot[bot]
97429744af
chore: bump codecov from 3.8.1 to 3.8.2 in /web3.js ( #17100 )
...
Bumps [codecov](https://github.com/codecov/codecov-node ) from 3.8.1 to 3.8.2.
- [Release notes](https://github.com/codecov/codecov-node/releases )
- [Changelog](https://github.com/codecov/codecov-node/blob/master/CHANGELOG.md )
- [Commits](https://github.com/codecov/codecov-node/compare/v3.8.1...v3.8.2 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-07 09:18:10 +00:00
Justin Starry
f43f0afa55
feat: add Keypair class and deprecate Account ( #17098 )
...
* feat: add Keypair class and deprecate Account
* chore: fix lint issues
* chore: rename TransactionSigner to Signer
2021-05-07 08:59:51 +00:00
steviez
0b5167bf51
Add pubkey for stevecz ( #17094 )
2021-05-06 21:52:39 -05:00
Jeff Washington (jwash)
225ec00ec4
add comment ( #17059 )
2021-05-06 15:17:41 -05:00
Tyera Eulberg
ddfbae260f
Add ledger-tool for restoring roots to the Roots CF ( #17045 )
...
* Add ledger-tool for restoring roots to the Roots CF
* Print successful repair data, and repair in chunks
* Add parameter to limit num slots checked for root repair
2021-05-06 14:12:01 -06:00
Jeff Washington (jwash)
dc0429f5e6
add metric for assumption ( #17061 )
2021-05-06 15:04:13 -05:00
steviez
edc2ab3e48
Test account index and store alignment ( #17038 )
...
* Use ReclaimResult::Default() instead of building subtypes
* Add test to ensure account_db store and index are aligned
2021-05-06 14:13:44 -05:00
behzad nouri
fa86a335b0
implements cursor for gossip crds table queries ( #16952 )
...
VersionedCrdsValue.insert_timestamp is used for fetching crds values
inserted since last query:
https://github.com/solana-labs/solana/blob/ec37a843a/core/src/cluster_info.rs#L1197-L1215
https://github.com/solana-labs/solana/blob/ec37a843a/core/src/cluster_info.rs#L1274-L1298
So it is crucial that insert_timestamp does not go backward in time when
new values are inserted into the table. However std::time::SystemTime is
not monotonic, or due to workload, lock contention, thread scheduling,
etc, ... new values may be inserted with a stalled timestamp way in the
past. Additionally, reading system time for the above purpose is
inefficient/unnecessary.
This commit adds an ordinal index to crds values indicating their insert
order. Additionally, it implements a new Cursor type for fetching values
inserted since last query.
2021-05-06 14:04:17 +00:00
Ryo Onodera
d19526e6c2
Dump rent_collector/inflation with ledger-tool cap ( #17069 )
2021-05-06 19:29:46 +09:00
dependabot[bot]
2541809c45
chore: bump @babel/preset-env from 7.14.0 to 7.14.1 in /web3.js ( #17078 )
...
Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env ) from 7.14.0 to 7.14.1.
- [Release notes](https://github.com/babel/babel/releases )
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md )
- [Commits](https://github.com/babel/babel/commits/v7.14.1/packages/babel-preset-env )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-06 09:46:48 +00:00
dependabot[bot]
9cd55e0d98
chore: bump @rollup/plugin-commonjs from 18.0.0 to 18.1.0 in /web3.js ( #17077 )
...
Bumps [@rollup/plugin-commonjs](https://github.com/rollup/plugins/tree/HEAD/packages/commonjs ) from 18.0.0 to 18.1.0.
- [Release notes](https://github.com/rollup/plugins/releases )
- [Changelog](https://github.com/rollup/plugins/blob/master/packages/commonjs/CHANGELOG.md )
- [Commits](https://github.com/rollup/plugins/commits/commonjs-v18.1.0/packages/commonjs )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-06 09:36:35 +00:00
dependabot[bot]
b8fc69a45b
chore: bump @typescript-eslint/eslint-plugin in /web3.js ( #17076 )
...
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin ) from 4.22.0 to 4.22.1.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases )
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md )
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.22.1/packages/eslint-plugin )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-06 09:34:14 +00:00
dependabot[bot]
5103bc11b4
chore:(deps): bump @solana/spl-token-registry in /explorer ( #17075 )
...
Bumps [@solana/spl-token-registry](https://github.com/solana-labs/token-list ) from 0.2.68 to 0.2.71.
- [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.68...v0.2.71 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-06 09:18:09 +00:00
dependabot[bot]
66d0348c72
chore:(deps): bump superstruct from 0.15.1 to 0.15.2 in /explorer ( #17073 )
...
Bumps [superstruct](https://github.com/ianstormtaylor/superstruct ) from 0.15.1 to 0.15.2.
- [Release notes](https://github.com/ianstormtaylor/superstruct/releases )
- [Changelog](https://github.com/ianstormtaylor/superstruct/blob/main/Changelog.md )
- [Commits](https://github.com/ianstormtaylor/superstruct/compare/v0.15.1...v0.15.2 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-06 09:00:57 +00:00
Trent Nelson
cb5e000615
CLI: Print gossip nodes with `cli-output` crate
2021-05-06 07:49:47 +00:00
dependabot[bot]
d4aa7d512c
chore: bump rollup from 2.46.0 to 2.47.0 in /web3.js ( #17030 )
...
Bumps [rollup](https://github.com/rollup/rollup ) from 2.46.0 to 2.47.0.
- [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.46.0...v2.47.0 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-06 11:41:43 +08:00
dependabot[bot]
5d655eb516
chore:(deps): bump @types/react from 17.0.4 to 17.0.5 in /explorer ( #17053 )
...
Bumps [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react ) from 17.0.4 to 17.0.5.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-06 11:41:29 +08:00
Justin Starry
9c92531ea0
explorer: update package-lock.json to v2 ( #17067 )
2021-05-06 02:34:14 +00:00
Ashwin Sekar
12c2cd4e86
Fix net shaper script to properly query interfaces ( #17065 )
...
Previously was using ifconfig which is not available on gce
2021-05-05 19:02:38 -07:00
Michael Vines
7d1637d89a
RpcClient now respects the retry-after server response header when getting rate limited
2021-05-05 18:11:57 -07:00
Brooks Prumo
9bca18603b
Add Brooks's pubkey to authorized keys ( #17063 )
2021-05-05 23:11:20 +00:00
Jeff Washington (jwash)
ffbe8906ed
get root lock once ( #16829 )
2021-05-05 15:17:45 -05:00
Brooks Prumo
e6f49a3e79
Clean unrooted unfrozen banks ( #16580 ) ( #17003 )
...
Cleanup pubkeys when an unrooted, unfrozen bank is dropped. This is a
continuation of PR #16911 .
2021-05-05 15:02:02 -05:00
Michael Vines
9ba2c53b85
Add --tower argument to specify where tower files are persisted
2021-05-05 12:20:39 -07:00