2798271da0
Add memory operation syscalls (backport #16447 ) ( #17648 )
...
* Add memory operation syscalls (#16447 )
(cherry picked from commit 2b50529265
)
# Conflicts:
# programs/bpf/Cargo.lock
* Resolve conflicts
Co-authored-by: Jack May <jack@solana.com >
2021-06-01 18:43:50 -07:00
dc258cebab
Add create-stake command to solana-tokens CLI ( #17550 ) ( #17649 )
...
* Add create-stake command to solana-tokens CLI
* Add --unlocked-sol arg
Thanks @CriesofCarrots!
(cherry picked from commit 1b7f8777d6
)
Co-authored-by: Greg Fitzgerald <greg@solana.com >
2021-06-02 01:16:48 +00:00
4b8c5194c7
Purge expired BlockHeight data from blockstore (backport #17634 ) ( #17641 )
...
* Purge expired BlockHeight data from blockstore (#17634 )
* Purge expired BlockHeight data from blockstore
* Also call compact_storage and add comment....
(cherry picked from commit 96cdbfdcc0
)
# Conflicts:
# ledger/src/blockstore_db.rs
* Fix conflict
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2021-06-02 01:04:11 +00:00
3c7c6dacfb
Add BPF rustc option to reduce the optimizations to safer level ( #17590 ) ( #17594 )
...
(cherry picked from commit 831e87c65d
)
Co-authored-by: Dmitri Makarov <dmakarov@users.noreply.github.com >
2021-05-31 19:15:56 +00:00
e36337a764
Make the sys-tuner oneliner actually copy-pastable ( #17615 ) ( #17619 )
...
* Make the sys-tuner oneliner actually copy-pastable
* Use `command -v`
(cherry picked from commit 41975016b9
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2021-05-31 18:13:47 +00:00
a49856b898
Rework #17486 (backport #17566 ) ( #17597 )
...
* Revert "Improve missing default signer error messaging (#17486 )"
This reverts commit 6d40d0d141
.
(cherry picked from commit ca8c1c6c42
)
* Improve missing default filepath signer error messaging
(cherry picked from commit 06a926f2f4
)
* CI: temporarily skip spl downstream build
(cherry picked from commit d01b4f80f9
)
Co-authored-by: Trent Nelson <trent@solana.com >
2021-05-31 17:28:06 +00:00
8ca2f52041
Make initialize
public ( #17605 ) ( #17607 )
...
(cherry picked from commit 2896fc3987
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2021-05-31 08:51:05 +00:00
2f7f243022
Always bail if program modifies a ro account (backport #17569 ) ( #17584 )
...
* Always bail if program modifies a ro account (#17569 )
(cherry picked from commit a3240aebde
)
* resolve conflicts
* nudge
Co-authored-by: Jack May <jack@solana.com >
2021-05-28 20:34:10 +00:00
7e443770d7
test-validator: add an arg to control faucet genesis balance ( #17582 )
...
(cherry picked from commit 974a96738a
)
Co-authored-by: Trent Nelson <trent@solana.com >
2021-05-28 17:50:44 +00:00
8ec09884b8
Revert bpf-tools to version 1.8 because of a codegen bug suspicion ( #17568 ) ( #17577 )
...
(cherry picked from commit 2316ddb90a
)
Co-authored-by: Dmitri Makarov <dmakarov@users.noreply.github.com >
2021-05-28 11:10:14 +00:00
88c7e636d6
Bump console from 0.11.3 to 0.14.1 ( #16301 ) ( #17552 )
...
* Bump console from 0.11.3 to 0.14.1
Bumps [console](https://github.com/mitsuhiko/console ) from 0.11.3 to 0.14.1.
- [Release notes](https://github.com/mitsuhiko/console/releases )
- [Changelog](https://github.com/mitsuhiko/console/blob/master/CHANGELOG.md )
- [Commits](https://github.com/mitsuhiko/console/compare/0.11.3...0.14.1 )
Signed-off-by: dependabot[bot] <support@github.com >
* Update all Cargo lock files
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tyera Eulberg <tyera@solana.com >
(cherry picked from commit ec1a307a7c
)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-27 21:30:17 +00:00
add3fd479d
chore: bump chrono-humanize from 0.1.1 to 0.2.1 ( #16895 ) ( #17549 )
...
* chore: bump chrono-humanize from 0.1.1 to 0.2.1
Bumps [chrono-humanize](https://gitlab.com/imp/chrono-humanize-rs ) from 0.1.1 to 0.2.1.
- [Release notes](https://gitlab.com/imp/chrono-humanize-rs/tags )
- [Commits](https://gitlab.com/imp/chrono-humanize-rs/compare/0.1.1...0.2.1 )
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 <anatoly+githubjenkins@solana.io >
(cherry picked from commit 4f74c77146
)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-27 20:37:42 +00:00
70410536b9
Bump serde_bytes from 0.11.4 to 0.11.5 ( #16299 ) ( #17546 )
...
* Bump serde_bytes from 0.11.4 to 0.11.5
Bumps [serde_bytes](https://github.com/serde-rs/bytes ) from 0.11.4 to 0.11.5.
- [Release notes](https://github.com/serde-rs/bytes/releases )
- [Commits](https://github.com/serde-rs/bytes/compare/0.11.4...0.11.5 )
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 >
(cherry picked from commit 6e2ae68643
)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-27 20:04:59 +00:00
6f3f9b485c
Allow configuring testnet slots-per-epoch ( #17545 ) ( #17551 )
...
(cherry picked from commit cb1fb28247
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2021-05-27 19:46:49 +00:00
bd9ce3590d
Remove redundant copy from RocksDB get_cf() wrapper ( #17529 ) ( #17543 )
...
(cherry picked from commit 983828a2a9
)
Co-authored-by: steviez <steven@solana.com >
2021-05-27 18:58:47 +00:00
49402b7d82
Only add keys with multiple index entries to the clean set ( #17473 )
2021-05-27 16:31:24 +02:00
3973bf08f1
move local out of call ( #17519 )
2021-05-27 08:53:11 -05:00
dd3cf27ab0
chore:(deps): bump @project-serum/serum in /explorer ( #17539 )
...
Bumps [@project-serum/serum](https://github.com/project-serum/serum-ts ) from 0.13.37 to 0.13.38.
- [Release notes](https://github.com/project-serum/serum-ts/releases )
- [Commits](https://github.com/project-serum/serum-ts/commits )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-27 09:03:41 +00:00
02a433307c
chore:(deps): bump typescript from 4.2.4 to 4.3.2 in /explorer ( #17538 )
...
Bumps [typescript](https://github.com/Microsoft/TypeScript ) from 4.2.4 to 4.3.2.
- [Release notes](https://github.com/Microsoft/TypeScript/releases )
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.2.4...v4.3.2 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-27 08:55:42 +00:00
44f7fd5eef
chore: bump sinon from 11.1.0 to 11.1.1 in /web3.js ( #17537 )
...
Bumps [sinon](https://github.com/sinonjs/sinon ) from 11.1.0 to 11.1.1.
- [Release notes](https://github.com/sinonjs/sinon/releases )
- [Changelog](https://github.com/sinonjs/sinon/blob/master/CHANGELOG.md )
- [Commits](https://github.com/sinonjs/sinon/compare/v11.1.0...v11.1.1 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-27 08:47:14 +00:00
a47d55c75c
chore: bump eslint-plugin-mocha from 8.2.0 to 9.0.0 in /web3.js ( #17535 )
...
Bumps [eslint-plugin-mocha](https://github.com/lo1tuma/eslint-plugin-mocha ) from 8.2.0 to 9.0.0.
- [Release notes](https://github.com/lo1tuma/eslint-plugin-mocha/releases )
- [Changelog](https://github.com/lo1tuma/eslint-plugin-mocha/blob/master/CHANGELOG.md )
- [Commits](https://github.com/lo1tuma/eslint-plugin-mocha/compare/8.2.0...9.0.0 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-27 08:20:57 +00:00
c4c2beca19
chore: bump rollup from 2.49.0 to 2.50.1 in /web3.js ( #17511 )
...
Bumps [rollup](https://github.com/rollup/rollup ) from 2.49.0 to 2.50.1.
- [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.49.0...v2.50.1 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-26 22:52:45 -07:00
ab581dafc2
Add block height to ConfirmedBlock structs ( #17523 )
...
* Add BlockHeight CF to blockstore
* Rename CacheBlockTimeService to be more general
* Cache block-height using service
* Fixup previous proto mishandling
* Add block_height to block structs
* Add block-height to solana block
* Fallback to BankForks if block time or block height are not yet written to Blockstore
* Add docs
* Review comments
2021-05-26 22:16:16 -06:00
9541411c15
Plumb transaction-level rewards (aka "rent debits") into the getTransaction
RPC method
2021-05-27 03:05:05 +00:00
7dfc1d9790
Fix typo in docs
2021-05-26 19:49:23 -07:00
52dccc656a
Purge slots greater than new last index ( #16071 )
2021-05-26 16:12:57 -07:00
cbce440af4
simulateTransaction can now return accounts modified by the simulation
2021-05-26 14:20:23 -07:00
54f0fc9f0f
Use type alias for DownloadProgress callback ( #17518 )
...
Convert to use type alias for the callback and cascade the changes to callers. Thanks @jeffwashington for the help making it possible.
Changed the closure for the progress update in the validator main to FnMut and modify the abort count in the closure which is more reliable.
2021-05-26 13:26:07 -07:00
6abe089740
Add custom error for tx-history queries when node does not support ( #17494 )
2021-05-26 13:27:41 -06:00
3f9e3c7375
Remove copied shrink code ( #17385 )
2021-05-26 19:27:18 +02:00
6b9d8d41a3
add --limit_load_slot_count_from_snapshot to ledger-tool ( #17417 )
2021-05-26 10:36:12 -05:00
bb72ab7f1b
docs: Add find_program_address
and example ( #17515 )
2021-05-26 15:25:05 +00:00
179856c13a
explorer: Display correct list of block programs ( #17489 )
2021-05-26 08:21:07 -07:00
9a5330b7eb
Move gossip modules into solana-gossip crate ( #17352 )
...
* Move gossip modules to solana-gossip
* Update Protocol abi digest due to move
* Move gossip benches and hook up CI
* Remove unneeded Result entries
* Single use statements
2021-05-26 09:15:46 -06:00
752cd7d15e
feat: use specialized explorer endpoints ( #17516 )
2021-05-26 07:09:35 -07:00
302b83a198
chore: bump @types/sinon from 10.0.0 to 10.0.1 in /web3.js ( #17514 )
...
Bumps [@types/sinon](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/sinon ) from 10.0.0 to 10.0.1.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/sinon )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-26 09:40:02 +00:00
0bb8c4f3ea
chore: bump sinon from 11.0.0 to 11.1.0 in /web3.js ( #17512 )
...
Bumps [sinon](https://github.com/sinonjs/sinon ) from 11.0.0 to 11.1.0.
- [Release notes](https://github.com/sinonjs/sinon/releases )
- [Changelog](https://github.com/sinonjs/sinon/blob/master/CHANGELOG.md )
- [Commits](https://github.com/sinonjs/sinon/commits )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-26 08:40:40 +00:00
37c2a2810f
chore:(deps): bump @types/react from 17.0.6 to 17.0.8 in /explorer ( #17510 )
...
Bumps [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react ) from 17.0.6 to 17.0.8.
- [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-26 08:22:39 +00:00
aed8e4c242
chore: bump eslint-plugin-mocha from 8.1.0 to 8.2.0 in /web3.js ( #17509 )
...
Bumps [eslint-plugin-mocha](https://github.com/lo1tuma/eslint-plugin-mocha ) from 8.1.0 to 8.2.0.
- [Release notes](https://github.com/lo1tuma/eslint-plugin-mocha/releases )
- [Changelog](https://github.com/lo1tuma/eslint-plugin-mocha/blob/master/CHANGELOG.md )
- [Commits](https://github.com/lo1tuma/eslint-plugin-mocha/compare/8.1.0...8.2.0 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-26 08:19:36 +00:00
2a6c5ed0ac
add tests from RentDebits
2021-05-26 08:19:10 +00:00
97eab7edf9
runtime: add rent debit charges to block metadata
2021-05-26 08:19:10 +00:00
e9bc1c6b07
Add last valid block height to rpc Fees ( #17506 )
...
* Add last_valid_block_height to fees rpc
* Add getBlockHeight rpc
* Update docs
2021-05-26 07:26:19 +00:00
7ce910f459
Add a hacky shell for fun code reading ( #17503 )
2021-05-26 14:39:57 +09:00
3d40ec3c88
Add missing fields from getClusterNodes documentation
2021-05-26 02:00:30 +00:00
6d40d0d141
Improve missing default signer error messaging ( #17486 )
2021-05-25 18:31:27 -07:00
660d37aadf
sigVerify conflicts with replace, add tests
2021-05-25 17:32:00 -07:00
e14f3eb529
rename flag
2021-05-25 17:32:00 -07:00
96cef5260c
Add a flag to simulateTransaction to use most recent blockhash
2021-05-25 17:32:00 -07:00
4eb6deee2d
Update sysvar docs ( #17493 )
2021-05-25 16:57:53 -07:00
64bfc14a75
docs: Add RPC node HW recommendations
2021-05-25 15:12:51 -06:00
3dfe87973b
Propagate dead slots up to replay ( #17227 )
2021-05-25 13:43:47 -07:00
7a1446a3ed
explorer: Update web3 to 1.14.0 ( #17487 )
2021-05-25 20:30:36 +00:00
7e433ddf83
chore: fix formatting ( #17483 )
2021-05-25 19:39:11 +00:00
a5c2067273
fixup! Ancestors to HashSet: From(Vec) ( #17447 ) ( #17481 )
2021-05-25 12:24:34 -05:00
0dbe926efe
feat: add getBlock and getTransaction apis ( #17449 )
2021-05-25 10:12:47 -07:00
3ae4806dae
Fix missing builtins in C programs linking with compiler_builtins ( #17475 )
2021-05-25 17:11:02 +00:00
a03230338a
docs: Add inner instruction and cross-program invocation ( #17476 )
2021-05-25 18:42:54 +02:00
4c17243157
snapshot download enhancement ( #17415 )
...
1. Allow the validator bootstrap code to specify the minimal snapshot download speed. If the snapshot download speed is detected below that, a different RPC can be retried. The default is 10MB/sec.
2. To prevent spinning on a number of sub-optimal choices and not making progress, the abort/retry logic is implemented with the following safe guards:
2.1 at maximum we do this retry for 5 times -- this number is configurable with default 5.
2.2 if the download in one notification round (5 second) is more than 2%, do not do retry -- it is not as bad anyway.
2.3 if the remaining estimate time is less than 1 minutes, do not abort retry as it will be done quickly anyway.
2.4 We do this abort/retry logic only at the first notification to avoid wasting download efforts -- the reasoning is being opportunistic and too greedy may not achieve overall shorter download time.
3. The download_snapshot and download_file is modified with the option allowing caller to notified of download progress via a callback. This allows the business logic of retrying to the place it belongs.
2021-05-25 09:32:12 -07:00
98f1b11edd
Ancestors to HashSet: From(Vec) ( #17447 )
...
* ancestors.large_range_slots becomes HashSet
* Ancestors to HashSet: From(Vec)
2021-05-25 11:01:11 -05:00
d39a327138
ancestors.large_range_slots becomes HashSet ( #17446 )
2021-05-25 11:00:50 -05:00
2019558f03
docs: budget program is gone, link to SPL Token multisig
2021-05-25 15:40:31 +00:00
40bb6577fc
initialize purge stats ( #17345 )
2021-05-25 09:24:38 -05:00
e39cb49f13
chore:(deps): bump @solana/web3.js from 1.12.0 to 1.13.0 in /explorer ( #17474 )
...
Bumps [@solana/web3.js](https://github.com/solana-labs/solana-web3.js ) from 1.12.0 to 1.13.0.
- [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.12.0...v1.13.0 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-25 08:21:43 +00:00
85b647d80f
Bump solana_rbpf to version 0.2.11 ( #17404 )
2021-05-25 08:05:35 +00:00
1108cb32b5
chore:(deps): bump @testing-library/react in /explorer ( #17470 )
...
Bumps [@testing-library/react](https://github.com/testing-library/react-testing-library ) from 11.2.6 to 11.2.7.
- [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/v11.2.6...v11.2.7 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-25 04:50:22 +00:00
a7ba6c84d0
chore:(deps): bump @types/node from 15.3.0 to 15.6.1 in /explorer ( #17469 )
...
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node ) from 15.3.0 to 15.6.1.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-25 04:41:52 +00:00
ddff4fdbf3
chore:(deps): bump @bonfida/bot from 0.5.0 to 0.5.3 in /explorer ( #17468 )
...
Bumps [@bonfida/bot](https://github.com/bonfida/bonfida-bot ) from 0.5.0 to 0.5.3.
- [Release notes](https://github.com/bonfida/bonfida-bot/releases )
- [Commits](https://github.com/bonfida/bonfida-bot/commits )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-25 04:35:19 +00:00
1f204660be
chore:(deps): bump @solana/spl-token-registry in /explorer ( #17467 )
...
Bumps [@solana/spl-token-registry](https://github.com/solana-labs/token-list ) from 0.2.71 to 0.2.114.
- [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.71...v0.2.114 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-24 21:24:25 -07:00
744f4dd834
chore:(deps): bump prettier from 2.2.1 to 2.3.0 in /explorer ( #17454 )
...
* chore:(deps): bump prettier from 2.2.1 to 2.3.0 in /explorer
Bumps [prettier](https://github.com/prettier/prettier ) from 2.2.1 to 2.3.0.
- [Release notes](https://github.com/prettier/prettier/releases )
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md )
- [Commits](https://github.com/prettier/prettier/compare/2.2.1...2.3.0 )
Signed-off-by: dependabot[bot] <support@github.com >
* format
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Justin Starry <justin@solana.com >
2021-05-24 21:24:11 -07:00
dbd7be5ff1
feat: generate random keypair with constructor ( #17448 )
2021-05-24 21:04:05 -07:00
fda8cb176a
chore: bump prettier from 2.2.1 to 2.3.0 in /web3.js ( #17143 )
...
* chore: bump prettier from 2.2.1 to 2.3.0 in /web3.js
Bumps [prettier](https://github.com/prettier/prettier ) from 2.2.1 to 2.3.0.
- [Release notes](https://github.com/prettier/prettier/releases )
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md )
- [Commits](https://github.com/prettier/prettier/compare/2.2.1...2.3.0 )
Signed-off-by: dependabot[bot] <support@github.com >
* chore: bump
* chore: format
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Justin Starry <justin@solana.com >
2021-05-25 03:53:16 +00:00
fd43446bfa
chore:(deps): bump @solana/web3.js from 1.11.0 to 1.12.0 in /explorer ( #17464 )
...
Bumps [@solana/web3.js](https://github.com/solana-labs/solana-web3.js ) from 1.11.0 to 1.12.0.
- [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.11.0...v1.12.0 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-24 20:44:08 -07:00
eeaa032791
chore: bump sinon from 10.0.1 to 11.0.0 in /web3.js ( #17465 )
...
Bumps [sinon](https://github.com/sinonjs/sinon ) from 10.0.1 to 11.0.0.
- [Release notes](https://github.com/sinonjs/sinon/releases )
- [Changelog](https://github.com/sinonjs/sinon/blob/master/CHANGELOG.md )
- [Commits](https://github.com/sinonjs/sinon/commits )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-25 02:04:08 +00:00
26fe60a0cd
chore:(deps): bump @project-serum/serum in /explorer ( #17463 )
...
Bumps [@project-serum/serum](https://github.com/project-serum/serum-ts ) from 0.13.34 to 0.13.37.
- [Release notes](https://github.com/project-serum/serum-ts/releases )
- [Commits](https://github.com/project-serum/serum-ts/commits )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-25 01:47:54 +00:00
bc03102efd
chore: bump start-server-and-test from 1.12.2 to 1.12.3 in /web3.js ( #17462 )
...
Bumps [start-server-and-test](https://github.com/bahmutov/start-server-and-test ) from 1.12.2 to 1.12.3.
- [Release notes](https://github.com/bahmutov/start-server-and-test/releases )
- [Commits](https://github.com/bahmutov/start-server-and-test/compare/v1.12.2...v1.12.3 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-25 01:44:19 +00:00
f193ea96f7
chore: bump jayson from 3.6.2 to 3.6.3 in /web3.js ( #17461 )
...
Bumps [jayson](https://github.com/tedeh/jayson ) from 3.6.2 to 3.6.3.
- [Release notes](https://github.com/tedeh/jayson/releases )
- [Commits](https://github.com/tedeh/jayson/compare/v3.6.2...v3.6.3 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-25 01:39:38 +00:00
70d9347514
chore:(deps): bump @types/react from 17.0.5 to 17.0.6 in /explorer ( #17460 )
...
Bumps [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react ) from 17.0.5 to 17.0.6.
- [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-25 01:31:09 +00:00
f4bdb11949
chore:(deps): bump @sentry/react from 6.3.6 to 6.4.1 in /explorer ( #17459 )
...
Bumps [@sentry/react](https://github.com/getsentry/sentry-javascript ) from 6.3.6 to 6.4.1.
- [Release notes](https://github.com/getsentry/sentry-javascript/releases )
- [Changelog](https://github.com/getsentry/sentry-javascript/blob/master/CHANGELOG.md )
- [Commits](https://github.com/getsentry/sentry-javascript/compare/6.3.6...6.4.1 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-25 01:27:57 +00:00
3a0c6950cb
chore: bump @typescript-eslint/parser from 4.23.0 to 4.25.0 in /web3.js ( #17458 )
...
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser ) from 4.23.0 to 4.25.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases )
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md )
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.25.0/packages/parser )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-25 01:25:47 +00:00
d53dba546a
chore: bump rollup-plugin-dts from 3.0.1 to 3.0.2 in /web3.js ( #17457 )
...
Bumps [rollup-plugin-dts](https://github.com/Swatinem/rollup-plugin-dts ) from 3.0.1 to 3.0.2.
- [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/v3.0.1...v3.0.2 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-25 01:15:08 +00:00
4541c6e596
chore:(deps): bump @types/socket.io-client in /explorer ( #17456 )
...
Bumps [@types/socket.io-client](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/socket.io-client ) from 1.4.36 to 3.0.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/socket.io-client )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-25 01:05:44 +00:00
91416b2075
chore:(deps): bump react-select from 4.3.0 to 4.3.1 in /explorer ( #17455 )
...
Bumps [react-select](https://github.com/JedWatson/react-select ) from 4.3.0 to 4.3.1.
- [Release notes](https://github.com/JedWatson/react-select/releases )
- [Changelog](https://github.com/JedWatson/react-select/blob/master/docs/CHANGELOG.md )
- [Commits](https://github.com/JedWatson/react-select/compare/react-select@4.3.0...react-select@4.3.1 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-25 01:02:09 +00:00
5e04d6438f
chore: bump @types/node from 15.6.0 to 15.6.1 in /web3.js ( #17453 )
...
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node ) from 15.6.0 to 15.6.1.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-25 00:58:21 +00:00
27b84dda4e
chore: bump rollup from 2.47.0 to 2.49.0 in /web3.js ( #17452 )
...
Bumps [rollup](https://github.com/rollup/rollup ) from 2.47.0 to 2.49.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.47.0...v2.49.0 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-25 00:47:39 +00:00
06a0788385
chore: bump @typescript-eslint/eslint-plugin in /web3.js ( #17450 )
...
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin ) from 4.24.0 to 4.25.0.
- [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.25.0/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-25 00:24:23 +00:00
a0c57de387
chore:(deps): bump @testing-library/user-event in /explorer ( #17260 )
...
Bumps [@testing-library/user-event](https://github.com/testing-library/user-event ) from 13.1.8 to 13.1.9.
- [Release notes](https://github.com/testing-library/user-event/releases )
- [Changelog](https://github.com/testing-library/user-event/blob/master/CHANGELOG.md )
- [Commits](https://github.com/testing-library/user-event/compare/v13.1.8...v13.1.9 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-24 17:13:03 -07:00
efd85b8e28
chore:(deps): bump @types/react-dom from 17.0.3 to 17.0.5 in /explorer ( #17258 )
...
Bumps [@types/react-dom](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-dom ) from 17.0.3 to 17.0.5.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-dom )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-24 17:12:58 -07:00
7157233275
chore:(deps): bump @types/chai from 4.2.17 to 4.2.18 in /explorer ( #17118 )
...
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-24 17:12:52 -07:00
6b13373e4b
chore: bump eslint from 7.26.0 to 7.27.0 in /web3.js ( #17433 )
...
Bumps [eslint](https://github.com/eslint/eslint ) from 7.26.0 to 7.27.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.26.0...v7.27.0 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-24 17:12:27 -07:00
2aac716626
chore: bump @babel/preset-env from 7.14.1 to 7.14.2 in /web3.js ( #17207 )
...
Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env ) from 7.14.1 to 7.14.2.
- [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.2/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-24 17:01:41 -07:00
99313a4ba2
add ledger-tool verify option to verify hash calculation ( #17412 )
2021-05-24 18:15:57 -05:00
d4fc9e7ed4
ad metric for collect ( #17418 )
2021-05-24 18:14:52 -05:00
dd22ae047b
ancestors is set instead of map ( #17363 )
2021-05-24 17:01:02 -05:00
d8bc56fa51
Refactor purge_slots_from_cache_and_store() and handle_reclaims() ( #17319 )
2021-05-24 13:51:17 -07:00
41ec1c8d50
Add blockstore-root-scan for api nodes on boot ( #17402 )
...
* Add blockstore-root-scan for api nodes on boot
* Ensure cluster-confirmed root and parents are set as root in blockstore in load_frozen_forks()
* Plumb rpc-scan-and-fix-roots validator flag
2021-05-24 13:24:47 -06:00
30b60a976b
Avoid ip_echo_server unwrap
2021-05-24 12:10:50 -07:00
ad1f24d487
runtime: Executor usage counts retain only single-epoch memory ( #17162 )
2021-05-24 12:01:56 -07:00
e867d7f3b8
removes Crds::lookup and lookup_versioned ( #17438 )
2021-05-24 18:21:54 +00:00
a8dca3976b
Refactor genesis download/load/check functions ( #17276 )
...
* Refactor genesis ingest functions
* Consolidate genesis.bin/genesis.tar.bz2 references
2021-05-24 16:45:36 +02:00
9d112cf41f
encapsulates purged values bookkeeping into crds module ( #17265 )
...
For all code paths (gossip push, pull, purge, etc) that remove or
override a crds value, it is necessary to record hash of values purged
from crds table, in order to exclude them from subsequent pull-requests;
otherwise the next pull request will likely return outdated values,
wasting bandwidth:
https://github.com/solana-labs/solana/blob/ed51cde37/core/src/crds_gossip_pull.rs#L486-L491
Currently this is done all over the place in multiple modules, and this
has caused bugs in the past where purged values were not recorded.
This commit encapsulated this bookkeeping into crds module, so that any
code path which removes or overrides a crds value, also records the hash
of purged value in-place.
2021-05-24 13:47:21 +00:00
060332c704
indexes crds votes by insert order ( #17340 )
...
Crds::get_votes is scanning over all votes in the crds table only to
return those inserted since the given cursor:
https://github.com/solana-labs/solana/blob/2ae57c172/core/src/crds.rs#L250-L266
Having votes indexed by insert order avoids the table scan and will be
more efficient.
2021-05-24 13:35:01 +00:00
8aec50a275
chore: bump ts-node from 9.1.1 to 10.0.0 in /web3.js ( #17432 )
...
Bumps [ts-node](https://github.com/TypeStrong/ts-node ) from 9.1.1 to 10.0.0.
- [Release notes](https://github.com/TypeStrong/ts-node/releases )
- [Commits](https://github.com/TypeStrong/ts-node/compare/v9.1.1...v10.0.0 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-24 12:10:12 +00:00
b58ebb7bcd
chore: bump @babel/core from 7.14.2 to 7.14.3 in /web3.js ( #17431 )
...
Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core ) from 7.14.2 to 7.14.3.
- [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.3/packages/babel-core )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-24 11:50:41 +00:00
702d0a4d10
chore: bump start-server-and-test from 1.12.1 to 1.12.2 in /web3.js ( #17430 )
...
Bumps [start-server-and-test](https://github.com/bahmutov/start-server-and-test ) from 1.12.1 to 1.12.2.
- [Release notes](https://github.com/bahmutov/start-server-and-test/releases )
- [Commits](https://github.com/bahmutov/start-server-and-test/compare/v1.12.1...v1.12.2 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-24 11:32:38 +00:00
65f6949376
chore: bump rpc-websockets from 7.4.11 to 7.4.12 in /web3.js ( #17429 )
...
Bumps [rpc-websockets](https://github.com/elpheria/rpc-websockets ) from 7.4.11 to 7.4.12.
- [Release notes](https://github.com/elpheria/rpc-websockets/releases )
- [Commits](https://github.com/elpheria/rpc-websockets/compare/v7.4.11...v7.4.12 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-24 11:09:39 +00:00
e13cd33290
chore: bump @babel/plugin-transform-runtime in /web3.js ( #17428 )
...
Bumps [@babel/plugin-transform-runtime](https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-transform-runtime ) from 7.14.2 to 7.14.3.
- [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.3/packages/babel-plugin-transform-runtime )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-24 09:58:13 +00:00
c8169a2f1b
chore: bump @typescript-eslint/eslint-plugin in /web3.js ( #17427 )
...
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin ) from 4.23.0 to 4.24.0.
- [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.24.0/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-24 09:30:56 +00:00
2d63e15023
chore: bump @types/node from 15.0.3 to 15.6.0 in /web3.js ( #17426 )
...
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node ) from 15.0.3 to 15.6.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-24 09:01:23 +00:00
db38ba81ee
chore: bump eslint-plugin-import from 2.22.1 to 2.23.3 in /web3.js ( #17425 )
...
Bumps [eslint-plugin-import](https://github.com/benmosher/eslint-plugin-import ) from 2.22.1 to 2.23.3.
- [Release notes](https://github.com/benmosher/eslint-plugin-import/releases )
- [Changelog](https://github.com/benmosher/eslint-plugin-import/blob/master/CHANGELOG.md )
- [Commits](https://github.com/benmosher/eslint-plugin-import/compare/v2.22.1...v2.23.3 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-24 08:40:34 +00:00
5567305a5f
rolls back min number of bloom items for debug builds ( #17420 )
...
coverage ci builds are have become flaky presumably because of the
overhead added in https://github.com/solana-labs/solana/pull/17236
for very small test clusters.
This commit uses a smaller min number of bloom items condition on that
if debug assertions are enabled or not.
Previous attempt at fixing the flakiness:
https://github.com/solana-labs/solana/pull/17408
2021-05-23 16:50:19 +00:00
8664b2cc39
Fix bad assertion ( #17401 )
2021-05-22 20:18:13 -07:00
cf1acfb021
uses Duration type for gossip discover timeout
2021-05-22 19:17:36 +00:00
d6496376ce
increases timeout duration for gossip discover
2021-05-22 19:17:36 +00:00
a7870cda8d
records hash of timed-out pull responses
...
Gossip should record hash of pull responses which are timed out and
fail to insert:
https://github.com/solana-labs/solana/blob/ed51cde37/core/src/crds_gossip_pull.rs#L397-L400
so that they are excluded from the next pull request:
https://github.com/solana-labs/solana/blob/ed51cde37/core/src/crds_gossip_pull.rs#L486-L491
otherwise the next pull request will likely include the same timed out
values and waste bandwidth.
2021-05-22 17:02:24 +00:00
d41266e4e9
rpc: add context toggle to getProgramAccounts ( #17399 )
...
* fix(rpc): return context in get_program_accounts
* doc(rpc): document withContext flag
* fix(rpc): fix comment
Co-authored-by: Michael Vines <mvines@gmail.com >
* fix(rpc): fix doc
Co-authored-by: Michael Vines <mvines@gmail.com >
Co-authored-by: Michael Vines <mvines@gmail.com >
2021-05-22 07:12:21 +00:00
51178ccb33
account-decoder: don't use strings to convert between Pubkey types ( #17391 )
...
* account-decoder: don't use strings to convert between Pubkey types
* transaction-status: don't use strings to convert between Pubkey types
2021-05-21 22:53:53 +00:00
855ae79598
Fix InvokeContext::push() account_deps ( #17350 )
...
* Reverts aliasing of account_deps with the previous invocation stack frame in InvokeContext::push().
* Adds explicit assert of programdata account content in test_program_bpf_upgrade_via_cpi.
2021-05-21 22:34:07 +02:00
9471ba61c5
removes redundant slots sort in push_epoch_slots
2021-05-21 19:17:15 +00:00
9339a6f8f3
locks gossip only once in push_epoch_slots
...
push_epoch_slots is unlocking and locking again gossip when iterating
over epoch slot indices which is wasteful:
https://github.com/solana-labs/solana/blob/0486df02b/core/src/cluster_info.rs#L915-L929
2021-05-21 19:17:15 +00:00
8758e9ed82
Remove const qualifier from syscall out-parameters ( #17382 )
2021-05-21 12:09:22 -07:00
3f3324231d
Hold read lock during startup shrink ( #17309 )
...
* hold read lock during account scan of shrink
* rename and improve rusty
2021-05-21 13:59:32 -05:00
96cde36784
SetLockup now requires the authorized withdrawer when the lockup is not in force
2021-05-21 11:49:01 -07:00
ff0e623d30
removes the nested for loop from retransmit-stage
...
The code can be simplified by just flattening the vector of packets.
2021-05-21 17:10:56 +00:00
71de021177
adds metric for turbine retransmit tree mismatch
...
In order to remove port-based forwarding logic in turbine, we need to
first track how often the turbine retransmit/broadcast trees mismatch
across nodes.
One consistency condition is that if the node is on the critical path
(i.e. the first node in each neighborhood), then we expect that the
packet arrives at tvu socket as opposed to tvu-forwards.
This commit adds a metric to track how often above condition is not met.
2021-05-21 17:10:56 +00:00
019bccab51
stake: merge accounts with mismatched, but expired lockups
2021-05-21 10:50:27 -06:00
74ac6ab80f
stake: plumb can_merge_expired_lockups
feature flag
2021-05-21 10:50:27 -06:00
8c073b2c94
Update getrandom bpf dependency
2021-05-21 08:55:47 -07:00
2adce67260
extends crds values timeouts if stakes are unknown ( #17261 )
...
If stakes are unknown, then timeouts will be short, resulting in values
being purged from the crds table, and consequently higher pull-response
load when they are obtained again from gossip. In particular, this slows
down validator start where almost all values obtained from entrypoint
are immediately discarded.
2021-05-21 15:55:22 +00:00
44831c18d2
reuse work in is_non_loader_key ( #16521 )
2021-05-21 10:07:04 -05:00
8143ee5502
add AccountsIndex AccountMapsReadLock type ( #17365 )
2021-05-21 10:02:14 -05:00
2f55547d37
remove flatten in storage scan ( #17354 )
...
* remove flatten in storage scan
* fix tests
2021-05-21 09:26:46 -05:00
5e6b00fe98
prioritizes more recent values in pull responses ( #17238 )
...
On the receiving end, the outdated values are discarded, and they will
only waste bandwidth:
https://github.com/solana-labs/solana/blob/3f0480d06/core/src/crds_gossip_pull.rs#L385-L400
This is also exacerbating validator start, since the entrypoint is
returning old values in pull responses, and the validator immediately
discards those; resulting in huge delay until the validator obtains
contact-info of the entrypoint and is able to adopt shred-version and
fully start.
2021-05-21 14:07:46 +00:00
e8b35a4f7b
bumps up min number of bloom items in gossip pull requests ( #17236 )
...
When a validator starts, it has an (almost) empty crds table and it only
sends one pull-request to the entrypoint. The bloom filter in the
pull-request targets 10% false rate given the number of items. So, if
the `num_items` is very wrong, it makes a very small bloom filter with a
very high false rate:
https://github.com/solana-labs/solana/blob/2ae57c172/runtime/src/bloom.rs#L70-L80
https://github.com/solana-labs/solana/blob/2ae57c172/core/src/crds_gossip_pull.rs#L48
As a result, it is very unlikely that the validator obtains entrypoint's
contact-info in response. This exacerbates how long the validator will
loop on:
> Waiting to adopt entrypoint shred version
https://github.com/solana-labs/solana/blob/ed51cde37/validator/src/main.rs#L390-L412
This commit increases the min number of bloom items when making gossip
pull requests. Effectively this will break the entrypoint crds table
into 64 shards, one pull-request for each, a larger bloom filter for
each shard, and increases the chances that the response will include
entrypoint's contact-info, which is needed for adopting shred version
and validator start.
2021-05-21 13:59:26 +00:00
662c2aaeec
programs/stake: cancel deactivate ( #17344 )
...
fix: remove stray println
add error for inconsistent input.
fix: lamports don't need to match when redelegating to same vote account
Improve comments
bump
Apply suggestions from code review
Add assert in test
Use stake_program_v4
Co-Authored-By: Trent Nelson <trent.a.b.nelson@gmail.com >
Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com >
2021-05-21 05:31:55 +00:00
e320af99a0
clap-utils: Fix signer resolution on Windows
2021-05-21 02:12:57 +00:00
91f2b6185e
Prevent withrawing Initialized stake account to zero stake ( #17366 )
2021-05-21 02:01:08 +00:00
2c99b23ad7
Add get_sysvar() helper to sdk
2021-05-21 01:30:12 +00:00
45552d271a
take mutex once in process_dead_slots ( #17357 )
2021-05-20 19:50:58 -05:00
a1a0d6f84b
Add stake_program_v4 feature
2021-05-20 21:15:18 +00:00
741f99ebb6
Explorer: introduce rewards tab for stake/vote accounts ( #16851 )
...
* feat: introduce staking rewards tab
* feat: take into consideration stake activation
* fix: report fetch errors
* fix: find rewards all the way to epoch 0
* fix: find rewards all the way to epoch 0
* fix: autocomplete error
* fix: load one page at a time
2021-05-20 14:00:48 -07:00
0486df02ba
don't limit to thread pool when cleaning on startup ( #17317 )
2021-05-20 14:36:35 -05:00
dd13a31a5a
restore Serum in CI downstream job ( #17346 )
2021-05-20 15:33:19 +00:00
33ab9c4e8d
batch insert account_index items in generate_index ( #17290 )
2021-05-20 10:29:13 -05:00
9b74988fc6
calculate_accounts_hash does not throttle threads on startup ( #17338 )
2021-05-20 10:25:54 -05:00
a9aa533684
replace Ancestors HashMap for performance ( #16477 )
...
* replace Ancestors HashMap for performance
* add ancestors module
2021-05-20 10:11:56 -05:00
ddfc15b9f2
docs: Update transaction expiration time ( #17347 )
2021-05-20 14:55:34 +00:00
2ae57c172a
Bump bpf-tools version to 1.9
...
- upgrade rustc to 1.52.1 and clang to 12.0
2021-05-20 11:35:37 +02:00
a544010b03
don't log shrink metrics on first call ( #17328 )
...
* don't log shrink metrics on first call
* simplify logic
2021-05-20 00:15:35 +00:00
32ec8341f9
generate_index inserts ideal initial data ( #17247 )
...
* improve insert into map initially
* rework towards single code path
* rename
* update test
2021-05-19 16:21:24 -05:00
13b032b2d4
removes manual trait impl for contact-info ( #17332 )
...
The current implementations use only the id and disregard other fields,
in particular wallclock. This can lead to bugs where an outdated
contact-info shadows or overrides a current one because they compare
equal.
2021-05-19 20:56:10 +00:00
477898f682
Optimize aligned memory used by the runtime ( #17324 )
2021-05-19 13:43:59 -07:00
e7073ecab1
adds gossip metrics for number of staked nodes ( #17330 )
2021-05-19 19:25:21 +00:00
b5302e7619
add calc_stored_meta_us metric ( #17318 )
2021-05-19 12:29:41 -05:00
f1b4a0a2e0
Fix typo ( #17326 )
2021-05-19 11:24:08 -06:00
c20b27bc8f
shink all in parallel on startup ( #17308 )
2021-05-19 12:15:24 -05:00
ed9cbd50f0
move Ancestors to its own module ( #17316 )
2021-05-19 11:50:34 -05:00
0781fe1b4f
Upgrade Rust to 1.52.0 ( #17096 )
...
* Upgrade Rust to 1.52.0
update nightly_version to newly pushed docker image
fix clippy lint errors
1.52 comes with grcov 0.8.0, include this version to script
* upgrade to Rust 1.52.1
* disabling Serum from downstream projects until it is upgraded to Rust 1.52.1
2021-05-19 09:31:47 -05:00
4788976517
rework slot list update ( #17232 )
2021-05-19 08:48:46 -05:00
7fe24c455c
simplify generate_index ( #17292 )
2021-05-19 08:11:41 -05:00
305d9dd3f4
Validator progress bars are now rendered when stdout is not a terminal
2021-05-19 07:32:39 +00:00
827355a6b1
Create solana-rpc crate and move subscriptions ( #17320 )
...
* Move non_circulating_supply to runtime
* Add solana-rpc crate and move max_slots
* Move subscriptions to solana-rpc
* Single use statements
2021-05-19 00:54:28 -06:00
a3c0833a1c
tests: cleanup test ( #17305 )
...
* tests: cleanup test
* 2 more replacements
2021-05-18 18:08:37 -05:00
63b97729e6
get_program_accounts_with_config() now correctly defaults to RpcClient's commitment level
2021-05-18 19:57:40 +00:00
cfcae50022
fix test ( #17310 )
2021-05-18 11:46:42 -07:00
00e198d169
feat: add borsh utilities and public key support ( #17239 )
...
* feat: add borsh utilities and public key support
* fix: make bn internal for flow
* fix: add Buffer import in borsh file
2021-05-18 19:33:06 +02:00
75335b4f58
datapoint for verify_snapshot_bank ( #17306 )
2021-05-18 12:14:43 -05:00
6cba53421e
Disallow bad combination of arguments in keygen grind ( #17251 )
...
* Use constant for outfile sentinel value
* Require --use-mnemonic flag when --no-outfile flag passed to keygen grind
2021-05-18 10:35:07 -05:00
f7b0184f81
patches flaky test_new_mark_creation_time ( #17288 )
2021-05-18 13:39:35 +00:00
2175fc0625
calculate account infos before lock ( #17245 )
2021-05-18 08:06:19 -05:00
ab871ed4b7
Bump bpf-tools version to 1.8
2021-05-18 08:10:57 +02:00
c65c4475f6
Add Contextual Search ( #17299 )
...
* this should prevent other language results appearing in the search area
2021-05-18 05:47:19 +00:00
3a56a56d69
StoredMetaWriteVersion ( #17293 )
2021-05-17 23:58:36 +00:00
f15dd1b4ef
Add C Serialization Tests for #17217 ( #17294 )
2021-05-17 16:33:58 -07:00
7ea1131090
Clear release cache for stable-perf ( #17287 )
2021-05-17 17:28:52 -06:00
bcbe155575
Minor test cleanup and comments ( #17283 )
2021-05-18 07:22:43 +09:00
d461aba6a4
don't try to build secondary indexes if we don't need them ( #17246 )
2021-05-17 17:21:15 -05:00
8a574baae2
Explorer: add token market prices from Coingecko ( #17289 )
...
* feat: add coingecko prices to tokens with associated coingeckoId
* feat: useCoingecko util
2021-05-17 12:43:18 -07:00
9d6837c904
fix comment ( #17286 )
2021-05-17 14:06:25 -05:00
d1db5448b9
hold lock to speed up insert ( #17194 )
...
* hold lock to speed up insert
* add tests
2021-05-17 11:58:33 -05:00
3805874c86
Add --no-wait option to CLI's stake-authorize command ( #17244 )
2021-05-17 16:54:33 +00:00
de76adbdf3
Update docs/src/running-validator/validator-start.md
2021-05-17 10:22:10 -06:00
02157f4753
Update keypair configuration output
...
While going through the tutorial to start a validator I noticed that the output I received from running...
```
solana config set --keypair ~/validator-keypair.json
```
...different from the output I was seeing. Wondering whether the docs are out of date I thought I'd propose an update to the docs just in case.
2021-05-17 10:22:10 -06:00
1f322b8a9c
Add two more testnet entrypoints
2021-05-17 08:07:38 -07:00
611628a402
fixed getProgramAccounts fields list ( #17278 )
2021-05-17 14:23:30 +00:00
d6ab4196ea
Remove duplicate std::net reference ( #17254 )
2021-05-16 18:51:41 -06:00
ed51cde37b
chore:(deps): bump @sentry/react from 6.3.5 to 6.3.6 in /explorer ( #17259 )
...
Bumps [@sentry/react](https://github.com/getsentry/sentry-javascript ) from 6.3.5 to 6.3.6.
- [Release notes](https://github.com/getsentry/sentry-javascript/releases )
- [Changelog](https://github.com/getsentry/sentry-javascript/blob/master/CHANGELOG.md )
- [Commits](https://github.com/getsentry/sentry-javascript/compare/6.3.5...6.3.6 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-15 17:44:37 +00:00
2fe864aa48
chore:(deps): bump @types/node from 15.0.2 to 15.3.0 in /explorer ( #17257 )
...
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node ) from 15.0.2 to 15.3.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-15 17:30:45 +00:00
031a6373ae
feat: bump web3.js to 1.11.0 ( #17256 )
2021-05-15 17:19:24 +00:00
e02b4e1192
Fix a bug in input deserialization in the C SDK ( #17217 )
...
When the input contains more accounts than the user has requested to be deserialized, and one of the excess ones is a dup, the input pointer is not adjusted correctly.
Compare the lines added by this commit to line 401: "input += 7; // padding". Since the input data layout does not depend on the number of accounts the user wants to deserialize, this adjustment by 7 bytes must happen in both branches.
2021-05-14 16:41:55 -06:00
7be3171f4a
fix: update devnet and testnet urls
2021-05-14 16:20:39 -06:00
ec621e71dc
docs: update old devnet and testnet url references
2021-05-14 16:20:39 -06:00
ae5a10dffd
fix: cluster test
2021-05-14 16:20:39 -06:00
0f3045fb68
feat: update api urls
2021-05-14 16:20:39 -06:00
515f8a21d5
Add NEW labels for RPC methods introduced in v1.7
2021-05-14 21:22:52 +00:00
0c07f1ffe4
add data point for ledger processing ( #17210 )
2021-05-14 15:58:31 -05:00
3745e0babc
minor refactoring of AccountsIndex in preparation of bigger things ( #17237 )
2021-05-14 15:27:10 -05:00
fd88db7339
ancestors::new -> default ( #17195 )
2021-05-14 15:20:59 -05:00
3f0480d060
Fix deprecated trait object without an explicit dyn warning ( #17231 )
2021-05-14 17:33:07 +00:00
2c8dde7224
test-validator: Hint at airdrop when wallet is unavailable
2021-05-14 11:14:27 -06:00
5e642a174c
docs: remove missig link ( #17212 )
2021-05-14 09:27:58 -06:00
c6f7867aa1
log mismatch ( #17209 )
2021-05-14 09:50:11 -05:00
76dfacca61
Add documentation for BankForks::prune_non_rooted() ( #17213 )
2021-05-14 07:47:48 -05:00
754c708473
test-validator: Display more cluster info in dash
2021-05-14 08:36:08 +00:00
67e6a3106f
rpc: plumb shred_version through RpcContactInfo
2021-05-14 08:36:08 +00:00
26afc7620b
Update clusters.md ( #17220 )
2021-05-14 04:13:28 +00:00
b074e86ad2
Fix clippy ( #17214 )
...
Newer clippy from +nightly have new errors about where annotations can and
cannot go. This commit fixes two of them.
2021-05-13 17:51:36 -05:00
27004f1b76
Return error for excluded secondary-index keys ( #17193 )
...
* Add runtime helpers to check secondary indexes for key
* Add custom rpc error
* Check secondary-index key inclusion in rpc
* Clone complete AccountSecondaryIndexes into rpc to avoid bank query
2021-05-13 21:04:21 +00:00
3dbc7744ab
metrics for generating index time ( #17192 )
...
* metrics for generating index time
* update metrics to include scan time
2021-05-13 14:32:19 -05:00
3e0c0abb53
Update docs/src/developing/test-validator.md
2021-05-13 17:28:31 +00:00
7868df3211
Update docs/src/developing/test-validator.md
2021-05-13 17:28:31 +00:00
3214105a21
Update docs/src/developing/test-validator.md
...
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2021-05-13 17:28:31 +00:00
e08687acfd
Update docs/src/developing/test-validator.md
...
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2021-05-13 17:28:31 +00:00
38d7e9a4c4
Update docs/src/developing/test-validator.md
...
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2021-05-13 17:28:31 +00:00
5b13d4057b
Update docs/src/developing/test-validator.md
...
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2021-05-13 17:28:31 +00:00
056c1a7b50
Update docs/src/developing/test-validator.md
...
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2021-05-13 17:28:31 +00:00
768a2ebe9d
docs: Add docs for solana-test-validator
2021-05-13 17:28:31 +00:00
0e646d10bb
prunes received-cache only once per unique owner's key ( #17039 )
2021-05-13 13:50:16 +00:00
0aa7824884
retains one node-instance per pubkey ( #17187 )
...
crds table retains up to 32 node-instance values per each pubkey. This
is so because if there are multiple running instances of the same node,
then we want gossip to propagate node-instance values associated with
both instances, therefore the corresponding label/key includes the
randomly generated token in addition to the pubkey:
https://github.com/solana-labs/solana/blob/9c42a89a4/core/src/crds_value.rs#L448
https://github.com/solana-labs/solana/pull/14037
As a result, the number of such values per pubkey are effectively
unbounded, requiring custom mitigations implemented in:
https://github.com/solana-labs/solana/pull/14467
but still taking redundant extra memory and bandwidth.
This commit instead retains only one node-instance per pubkey by
extending crds values override logic. If a crds value is of type
node-instance, it will always override an existing one with the same key
if it has more recent starting timestamp (not wallclock). As a result,
gossip will always propagate the node-instance with more recent
timestamp. Since the check_duplicate logic will stop the node with older
timestamp, this change should preserve existing functionality.
2021-05-13 13:35:46 +00:00
8b9c9aa790
chore: bump @babel/plugin-transform-runtime in /web3.js ( #17206 )
...
Bumps [@babel/plugin-transform-runtime](https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-transform-runtime ) from 7.13.15 to 7.14.2.
- [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.2/packages/babel-plugin-transform-runtime )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-13 10:09:25 +00:00
e8090f45f2
chore: bump @babel/core from 7.14.0 to 7.14.2 in /web3.js ( #17205 )
...
Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core ) from 7.14.0 to 7.14.2.
- [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.2/packages/babel-core )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-13 09:55:46 +00:00
8e9c730f40
chore: bump @types/node from 15.0.2 to 15.0.3 in /web3.js ( #17203 )
...
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node ) from 15.0.2 to 15.0.3.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-13 09:37:28 +00:00
0a4cdc8a85
chore: bump semantic-release from 17.4.2 to 17.4.3 in /web3.js ( #17202 )
...
Bumps [semantic-release](https://github.com/semantic-release/semantic-release ) from 17.4.2 to 17.4.3.
- [Release notes](https://github.com/semantic-release/semantic-release/releases )
- [Commits](https://github.com/semantic-release/semantic-release/compare/v17.4.2...v17.4.3 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-13 09:27:36 +00:00
6bc27e8864
chore: bump @commitlint/config-conventional in /web3.js ( #17201 )
...
Bumps [@commitlint/config-conventional](https://github.com/conventional-changelog/commitlint ) from 12.1.3 to 12.1.4.
- [Release notes](https://github.com/conventional-changelog/commitlint/releases )
- [Changelog](https://github.com/conventional-changelog/commitlint/blob/master/CHANGELOG.md )
- [Commits](https://github.com/conventional-changelog/commitlint/compare/v12.1.3...v12.1.4 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-13 08:27:01 +00:00
d9f96f71d4
chore: bump @commitlint/travis-cli from 12.1.3 to 12.1.4 in /web3.js ( #17200 )
...
Bumps [@commitlint/travis-cli](https://github.com/conventional-changelog/commitlint ) from 12.1.3 to 12.1.4.
- [Release notes](https://github.com/conventional-changelog/commitlint/releases )
- [Changelog](https://github.com/conventional-changelog/commitlint/blob/master/CHANGELOG.md )
- [Commits](https://github.com/conventional-changelog/commitlint/compare/v12.1.3...v12.1.4 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-13 08:19:12 +00:00
248f2309ef
docs: fix fixed banner layout
2021-05-13 04:27:17 +00:00
a821c4d57f
docs: lock update missed in 545e037e38
2021-05-13 04:27:17 +00:00
239ab8799c
Remove bloat from secondary indexes ( #17048 )
2021-05-12 15:29:30 -07:00
597373f5fa
Update devnet and testnet endpoints ( #17188 )
2021-05-12 19:39:15 +00:00
b437b0a49d
Add bip32 support to solana-keygen recover ( #17180 )
...
* Fix spelling
* Add validator for SignerSources
* Add helper to generate Keypair from supporting SignerSources
* Add bip32 support to solana-keygen recover
* Make SignerSourceKind const strs, use for Debug impl and URI schemes
2021-05-12 19:33:11 +00:00
9c42a89a43
Issue #17008 -- make snapshot archives to hold on to configurable. ( #17158 )
...
* purge_old_snapshot_archives is changed to take an extra argument 'maximum_snapshots_to_retain' to control the max number of latest snapshot archives to retain. Note the oldest snapshot is always retained as before and is not subjected to this new options.
* The validator and ledger-tool executables are modified with a CLI argument --maximum-snapshots-to-retain. And the options are propagated down the call chains. Their corresponding shell scripts were changed accordingly.
* SnapshotConfig is modified to have an extra field for the maximum_snapshots_to_retain
* Unit tests are developed to cover purge_old_snapshot_archives
2021-05-12 10:32:27 -07:00
e3d722bb42
chore: bump @commitlint/travis-cli from 12.1.1 to 12.1.3 in /web3.js ( #17184 )
...
Bumps [@commitlint/travis-cli](https://github.com/conventional-changelog/commitlint ) from 12.1.1 to 12.1.3.
- [Release notes](https://github.com/conventional-changelog/commitlint/releases )
- [Changelog](https://github.com/conventional-changelog/commitlint/blob/master/CHANGELOG.md )
- [Commits](https://github.com/conventional-changelog/commitlint/compare/v12.1.1...v12.1.3 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-12 08:18:18 +00:00
64a200b1c1
chore: bump @commitlint/config-conventional in /web3.js ( #17183 )
...
Bumps [@commitlint/config-conventional](https://github.com/conventional-changelog/commitlint ) from 12.1.1 to 12.1.3.
- [Release notes](https://github.com/conventional-changelog/commitlint/releases )
- [Changelog](https://github.com/conventional-changelog/commitlint/blob/master/CHANGELOG.md )
- [Commits](https://github.com/conventional-changelog/commitlint/compare/v12.1.1...v12.1.3 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-12 08:12:16 +00:00
7d96f78821
include/exclude keys on account secondary index ( #17110 )
...
* AccountSecondaryIndexes.include/exclude
* use normal scan if key is not indexed
* add a test to ask for a scan for an excluded secondary index
* fix up cli args
2021-05-11 22:06:22 +00:00
4ed828e4ee
Enable RBPF trace output for BPF tests that are not using bpf_loader
2021-05-11 23:50:42 +02:00
88626b2945
Bump bpf-tools version to 1.7 ( #17176 )
2021-05-11 19:51:20 +00:00
dbac38702a
sdk: keypair - drop superfluous iter()
2021-05-11 13:07:58 -06:00
967840aed6
sdk: Move signers
module into signer
module
2021-05-11 13:07:58 -06:00
b71e4bdc61
sdk: Move NullSigner
to signer
module
2021-05-11 13:07:58 -06:00
12bf6c06c3
sdk: Move Presigner
to signer
module
2021-05-11 13:07:58 -06:00
0eba6eb401
sdk: Move Keypair
to signer
module
2021-05-11 13:07:58 -06:00
af6f3d776e
sdk: Move Signer
trait to own module
2021-05-11 13:07:58 -06:00
d4ffd909a4
chore: bump @typescript-eslint/parser from 4.22.0 to 4.23.0 in /web3.js ( #17167 )
...
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser ) from 4.22.0 to 4.23.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases )
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md )
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.23.0/packages/parser )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-11 09:25:03 +00:00
77272a17b3
Fix dump postprocessing in cargo-build-bpf ( #17165 )
2021-05-11 09:24:12 +00:00
e21ad02288
chore: bump @typescript-eslint/eslint-plugin in /web3.js ( #17166 )
...
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin ) from 4.22.1 to 4.23.0.
- [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.23.0/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-11 09:07:33 +00:00
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
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
8eb05d6ed4
Add Keccak256 syscall and sdk support ( #16498 )
2021-05-10 16:16:58 -07:00
e511c442e6
fix: improve findProgramAddress error when MAX_SEED_LENGTH is exceeded ( #17151 )
2021-05-10 15:55:51 -07:00
82fb6712e7
fix c program deploy help ( #17152 )
2021-05-10 15:38:01 -07:00
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
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
f39dda00e0
type AccountSecondaryIndexes = HashSet ( #17108 )
2021-05-10 14:22:48 +00:00
a6a1355b80
fix secondary index test ( #17111 )
2021-05-10 08:54:30 -05:00
c616c34825
Add comment for another unspoken eager collection subtlety ( #17137 )
2021-05-10 22:44:46 +09:00
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
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
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
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
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
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
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
dfa3e7a61c
indexes crds values by their insert order
2021-05-09 22:40:41 +00:00
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
a1df57a4ea
Add chinese translations to docs ( #17125 )
...
* import zh translations
* Fix broken links
* fix whitespace
2021-05-09 00:46:24 +08:00
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
0a6fa1999a
explorer: Fix bonfida dependency ( #17120 )
...
* explorer: Fix bonfida dependency
* fix import
2021-05-08 15:09:14 +08:00
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
d6c076f1b6
getBlockProduction now correctly reports block production
2021-05-07 19:04:51 -07:00
ec2b06d81d
solana-validator exit
now uses process::exit()
to ensure prompt termination
2021-05-07 10:33:51 -07:00
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
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
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
0b5167bf51
Add pubkey for stevecz ( #17094 )
2021-05-06 21:52:39 -05:00
225ec00ec4
add comment ( #17059 )
2021-05-06 15:17:41 -05:00
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
dc0429f5e6
add metric for assumption ( #17061 )
2021-05-06 15:04:13 -05:00
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
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
d19526e6c2
Dump rent_collector/inflation with ledger-tool cap ( #17069 )
2021-05-06 19:29:46 +09:00
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
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
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
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
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
cb5e000615
CLI: Print gossip nodes with cli-output
crate
2021-05-06 07:49:47 +00:00
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
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
9c92531ea0
explorer: update package-lock.json to v2 ( #17067 )
2021-05-06 02:34:14 +00:00
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
7d1637d89a
RpcClient now respects the retry-after server response header when getting rate limited
2021-05-05 18:11:57 -07:00
9bca18603b
Add Brooks's pubkey to authorized keys ( #17063 )
2021-05-05 23:11:20 +00:00
ffbe8906ed
get root lock once ( #16829 )
2021-05-05 15:17:45 -05:00
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
9ba2c53b85
Add --tower argument to specify where tower files are persisted
2021-05-05 12:20:39 -07:00
769136f586
feat: associated token program card ( #17043 )
2021-05-05 11:49:05 -07:00
ab7c96aa81
insert accounts in parallel when building initial index ( #17040 )
...
* insert accounts in parallel when building initial index
* rename nits from pr review
* rename nits from pr review
* rename nits from pr review
* rename nits from pr review
2021-05-05 17:08:45 +00:00
3e0fed48e7
Don't recognize temp snapshots as possible snapshots to open
2021-05-05 08:45:03 -07:00
5786be13a4
flatten_hash_intermediate sets capacity first ( #17013 )
...
* flatten_hash_intermediate sets capacity first
* use iterator instead of for
2021-05-05 09:07:05 -05:00
a125388f6e
chore: bump @types/node from 15.0.1 to 15.0.2 in /web3.js ( #17056 )
...
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node ) from 15.0.1 to 15.0.2.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-05 10:28:50 +00:00
33443170de
chore: bump @typescript-eslint/parser from 4.22.0 to 4.22.1 in /web3.js ( #17055 )
...
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser ) 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/parser/CHANGELOG.md )
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.22.1/packages/parser )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-05 10:04:58 +00:00
4b7083c38a
chore: bump @rollup/plugin-node-resolve in /web3.js ( #17054 )
...
Bumps [@rollup/plugin-node-resolve](https://github.com/rollup/plugins/tree/HEAD/packages/node-resolve ) from 11.2.1 to 13.0.0.
- [Release notes](https://github.com/rollup/plugins/releases )
- [Changelog](https://github.com/rollup/plugins/blob/master/packages/node-resolve/CHANGELOG.md )
- [Commits](https://github.com/rollup/plugins/commits/commonjs-v13.0.0/packages/node-resolve )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-05 09:54:27 +00:00
a8f84a5622
fix: fix flow type declaration ( #17049 )
...
* fix: fix flow type declaration
* chore: fix prettier
2021-05-05 17:50:55 +08:00
34599ad57d
chore: bump @rollup/plugin-commonjs from 18.0.0 to 18.1.0 in /web3.js ( #17052 )
...
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-05 09:25:25 +00:00
e619b101c9
chore: bump @typescript-eslint/eslint-plugin in /web3.js ( #17051 )
...
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-05 09:16:49 +00:00
7e774ee90f
chore:(deps): bump @types/node from 15.0.1 to 15.0.2 in /explorer ( #17050 )
...
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node ) from 15.0.1 to 15.0.2.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-05 09:07:23 +00:00
8f0b410714
chore: bump @babel/preset-env from 7.14.0 to 7.14.1 in /web3.js ( #17031 )
...
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-05 14:31:19 +08:00
6d11d5dd9f
chore: conflate use statement
2021-05-04 08:34:35 -07:00
4ede5117f9
fix: add bpf_loader_upgradeable to ProgramTest default builtins
2021-05-04 08:34:35 -07:00
9abfa65920
Document that Transaction::sign might panic ( #17026 )
2021-05-04 08:32:21 -07:00
46d2755205
Correct days/year ( #17024 )
2021-05-04 10:00:30 +00:00
f5862c03ec
chore: bump codecov from 3.8.1 to 3.8.2 in /web3.js ( #17029 )
...
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-04 09:15:55 +00:00
efbb4a5a00
chore:(deps): bump @solana/spl-token-registry in /explorer ( #17028 )
...
Bumps [@solana/spl-token-registry](https://github.com/solana-labs/token-list ) from 0.2.67 to 0.2.68.
- [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.67...v0.2.68 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-04 09:07:16 +00:00
f17b80236f
test-validator: Plumb --limit-ledger-size
2021-05-04 08:45:24 +00:00
bc7e741514
Integrate gossip votes into switching threshold ( #16973 )
2021-05-04 00:51:42 -07:00
9ff17a1c18
Update web3.js import sample
2021-05-03 23:32:45 -07:00
0ebfa08860
Remove ramp-tps
2021-05-04 02:06:50 +00:00
694c674aa6
Implement Bip32 for seed-phrase/passphrase signing ( #16942 )
...
* Add Keypair helpers for bip32 derivation
* Plumb bip32 for SignerSourceKind::Ask
* Support full-path querystring
* Use as_ref
* Add public wrappers for from_uri cases
* Support master root derivations (and fix too-deep print
* Add ask:// HD documentation
* Update ASK elsewhere in docs
2021-05-03 19:58:56 -06:00
6318705607
Add keys
2021-05-03 17:18:54 -07:00
b948a18841
Key rotation
2021-05-03 17:18:54 -07:00
b2778f34f5
Rotate keys
2021-05-03 17:18:54 -07:00
7cea2c4466
validates gossip addresses before sending pull-requests
...
IP addresses need to be validated before sending packets to them.
This commit, sends a ping packet to nodes before any pull requests.
Pull requests are then only sent to the nodes which have responded with
the correct hash of their respective ping packet.
2021-05-03 18:21:06 +00:00
2231017b35
uses Mutex instead of RwLock for ping_cache
2021-05-03 18:21:06 +00:00
d94e4ef7c9
More docs for bank.rs ( #17006 )
2021-05-03 17:37:18 +00:00
92b8b20ca5
AccountSharedData.lamports private ( #16985 )
2021-05-03 17:25:31 +00:00
a698e34744
patches local pending push messages processing ( #16833 )
...
process_push_messages writes local pending push messages to the crds
table, but it discards the return value:
https://github.com/solana-labs/solana/blob/cf779c63c/core/src/crds_gossip.rs#L96-L102
In order to exclude outdated values from the next pull-request, we need
to record the hash of values purged/overridden by the local push
messages, otherwise pull-responses will return outdated values back to
the node:
https://github.com/solana-labs/solana/blob/c1829dd00/core/src/crds_gossip_pull.rs#L447-L452
Additionally, gossip packets arrive and are processed out of order. So,
local pending push messages should be flushed *before* generating bloom
filters for pull-requests, preventing pull-responses returning the same
values back to the node itself. This requires flipping order of
generating pull and push messages:
https://github.com/solana-labs/solana/blob/cf779c63c/core/src/cluster_info.rs#L1757-L1762
Both above bugs cause redundant traffic and bandwidth waste in gossip
pull-responses.
2021-05-03 16:00:17 +00:00
541aa5ad85
tests: lamports -> lamports() ( #16982 )
2021-05-03 10:45:54 -05:00
744ac1535f
tests: lamports -> ReadableAccount ( #16983 )
2021-05-03 10:45:15 -05:00
40c31f87e0
Fixing a broken link in the docs ( #16975 )
2021-05-03 10:04:55 -05:00
8fe2668e99
chore:(deps): bump @sentry/react from 6.3.4 to 6.3.5 in /explorer ( #17002 )
...
Bumps [@sentry/react](https://github.com/getsentry/sentry-javascript ) from 6.3.4 to 6.3.5.
- [Release notes](https://github.com/getsentry/sentry-javascript/releases )
- [Changelog](https://github.com/getsentry/sentry-javascript/blob/master/CHANGELOG.md )
- [Commits](https://github.com/getsentry/sentry-javascript/compare/6.3.4...6.3.5 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-03 10:42:39 +00:00
f9af7cde7e
chore:(deps): bump @solana/web3.js from 1.7.1 to 1.9.0 in /explorer ( #17001 )
...
Bumps [@solana/web3.js](https://github.com/solana-labs/solana-web3.js ) from 1.7.1 to 1.9.0.
- [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.7.1...v1.9.0 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-03 10:38:44 +00:00
43ccaf14b0
Update sysvars.md ( #16998 )
...
a typo
2021-05-03 03:36:26 -06:00
d7166c5778
Remove errant backslash ( #16994 )
2021-05-02 19:53:03 +00:00
c003f8e93c
Corrected typo in calling between programs document ( #16991 )
...
* Corrected typo in calling between programs document
* corrected another typo
Co-authored-by: Srinivas Valekar <srinivasvalekar@Srinivass-MacBook-Pro.local >
2021-05-02 12:03:51 -06:00
da81ad0c41
feat: add support for slot update pubsub subscriptions ( #16990 )
2021-05-02 20:14:30 +08:00
8e561354d5
Improve readability of vote lockout processing ( #16987 )
...
* Improve readability of vote lockout processing
* clippy
* simplify comment
* feedback
2021-05-02 08:36:06 +00:00
643133b2c1
feat: add getSlotLeaders method ( #16989 )
2021-05-02 03:54:27 +00:00
18a04b0825
Docs/staking with exodus wallet ( #16938 )
...
* add Exodus as wallet that supports staking
* remove extra verbiage
* add binance & ftx. add note for these additions that you cannot select a validator with them
* Formatting
Co-authored-by: Justin Starry <justin.m.starry@gmail.com >
2021-05-01 17:03:00 +00:00
555ed44e13
chore:(deps): bump @solana/spl-token-registry in /explorer ( #16969 )
...
Bumps [@solana/spl-token-registry](https://github.com/solana-labs/token-list ) from 0.2.64 to 0.2.67.
- [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.64...v0.2.67 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-01 14:41:46 +08:00
1fe131a5bb
Readable account trait for stored account meta ( #16690 )
...
* ReadableAccount for StoredAccountMeta
* add test
2021-04-30 16:25:02 -05:00
1a9954f85b
bank deposit checked_add error ( #16917 )
...
* bank deposit checked_add error
* add id
* rename variables
* rename error and metric
2021-04-30 16:22:17 -05:00
01308cd890
distribute_rent_to_validators checked_add_lamports unwrap ( #16847 )
...
* distribute_rent_to_validators checked_add_lamports unwrap
* make rent disappear on add failure
* add pubkey to message
* update message text
* don't store account that we failed to transfer to
* format
2021-04-30 16:19:20 -05:00
763c04adf3
lamports = -> .set_lamports() ( #16980 )
2021-04-30 21:17:05 +00:00
5e74cede4e
lamports -> lamports() ( #16979 )
2021-04-30 21:03:08 +00:00
17e6bd579f
Clean unrooted dropped banks ( #16580 ) ( #16911 )
...
In a scenario where a bank is unrooted and dropped, any keys that exist
_only_ in that bank are now cleaned up.
This work was originally based on PR #15106 .
2021-04-30 15:34:38 -05:00
1594a7f11a
fix: change unlisted to unknown for unknown token accounts ( #16981 )
2021-04-30 15:21:47 -05:00
6f88aeac56
tests: .lamports= -> .set_lamports() ( #16977 )
...
* .lamports= -> .set_lamports()
* another
* fix
* another
2021-04-30 18:44:15 +00:00
0af84bb91e
lamports= -> .set_lamports() ( #16978 )
2021-04-30 18:20:54 +00:00
ac87bc40ca
tests: .lamports -> .lamports() ( #16976 )
2021-04-30 18:16:58 +00:00
3f982fcf65
account.rent_epoch private ( #16974 )
2021-04-30 12:16:44 -05:00
475b00c42f
Add test to ensure data shreds with empty data would be inserted ( #16955 )
...
* Add test to ensure data shreds with empty data would be inserted
* Add error log statements for malformed shreds
2021-04-30 10:38:15 -05:00
c4943f3cb0
checked_sub_lamports ( #16932 )
2021-04-30 09:56:34 -05:00
e0ffcfd53c
chore: bump jayson from 3.6.1 to 3.6.2 in /web3.js ( #16972 )
...
Bumps [jayson](https://github.com/tedeh/jayson ) from 3.6.1 to 3.6.2.
- [Release notes](https://github.com/tedeh/jayson/releases )
- [Commits](https://github.com/tedeh/jayson/compare/v3.6.1...v3.6.2 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-30 10:07:36 +00:00
42202b6aef
chore: bump buffer-layout from 1.2.0 to 1.2.1 in /web3.js ( #16971 )
...
Bumps [buffer-layout](https://github.com/pabigot/buffer-layout ) from 1.2.0 to 1.2.1.
- [Release notes](https://github.com/pabigot/buffer-layout/releases )
- [Changelog](https://github.com/pabigot/buffer-layout/blob/master/CHANGELOG.md )
- [Commits](https://github.com/pabigot/buffer-layout/commits/v1.2.1 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-30 09:59:57 +00:00
38302432e5
chore:(deps): bump @solana/web3.js from 1.7.0 to 1.7.1 in /explorer ( #16968 )
...
Bumps [@solana/web3.js](https://github.com/solana-labs/solana-web3.js ) from 1.7.0 to 1.7.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.7.0...v1.7.1 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-30 09:28:11 +00:00
c1c115e5ad
chore: bump @babel/preset-env from 7.13.15 to 7.14.0 in /web3.js ( #16967 )
...
Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env ) from 7.13.15 to 7.14.0.
- [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.0/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-04-30 09:24:10 +00:00
9ca19a2928
chore: bump @babel/runtime from 7.13.17 to 7.14.0 in /web3.js ( #16966 )
...
Bumps [@babel/runtime](https://github.com/babel/babel/tree/HEAD/packages/babel-runtime ) from 7.13.17 to 7.14.0.
- [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.0/packages/babel-runtime )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-30 09:15:48 +00:00
cf3b479bce
chore: bump @babel/core from 7.13.16 to 7.14.0 in /web3.js ( #16965 )
...
Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core ) from 7.13.16 to 7.14.0.
- [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.0/packages/babel-core )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-30 09:11:21 +00:00
dfb3db23f0
chore: bump @types/node from 15.0.0 to 15.0.1 in /web3.js ( #16902 )
...
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node ) from 15.0.0 to 15.0.1.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-30 16:23:02 +08:00
545e037e38
Docs cleanup ( #16964 )
...
* Run lint:fix on docs
* Update dependencies
* Run prettier
* Run lint
2021-04-30 16:20:56 +08:00
3d98321b38
docs: fix copy-pasta breaking typo in getRecentBlockhash
example
2021-04-30 04:03:15 +00:00
7e5964e339
Add Measure::this() ( #16953 )
...
Use `Measure::this()` when you have a function that you want to measure.
`this()` will start a new `Measure`, call your function, stop the
measure, then return the `Measure` object along with your function's
return value.
2021-04-29 17:48:33 -05:00
0ef5a9b1d7
explorer: add Bonfida Bots instructions ( #16872 )
...
* explorer: add Bonfida Bots instructions
* Update explorer/src/components/instruction/BonfidaBotDetails.tsx
Co-authored-by: Josh <josh.hundley@gmail.com >
* explorer: Bonfida Bot instructions fixes
Co-authored-by: Josh <josh.hundley@gmail.com >
2021-04-29 15:47:10 -07:00
5981399612
Distinguish max replayed and max observed vote ( #16936 )
2021-04-29 14:43:28 -07:00
94edd6140c
checked_sub_lamports ( #16918 )
2021-04-29 21:34:44 +00:00
63c56b57a9
checked_sub_lamports with unwrap ( #16922 )
...
* checked_sub_lamports with unwrap
* avoid unwrap
2021-04-29 15:04:28 -05:00
8c651d2530
Change positioning ( #16951 )
...
* oops!
2021-04-29 12:54:18 -06:00
c9c94a7ef2
checked_sub_lamports ( #16923 )
2021-04-29 12:38:21 -05:00
ca7b36ad8f
lamports -> lamports() ( #16920 )
2021-04-29 10:44:46 -05:00
59e19828ea
set_lamports() ( #16914 )
2021-04-29 10:43:26 -05:00
23d67e4ac7
stretchy roots tracker ( #16830 )
...
* stretchy roots tracker
* rename hash to hash_set in tests
* update comment
* try 2 widths in test
* bool iter
* add assert
* helper function for bitfield insert/remove
* introduce RollingBitFieldTester
* another bool iter replacement
* map cleanup
* map to cloned
2021-04-29 09:11:28 -05:00
a2fbb9cfef
fix: optional stake lockup field parameters ( #16943 )
...
* fix: optional stake lockup field parameters
* chore: update web3.js/src/stake-program.ts
Co-authored-by: Justin Starry <justin.m.starry@gmail.com >
* chore: prettier
Co-authored-by: Justin Starry <justin.m.starry@gmail.com >
Co-authored-by: Justin Starry <justin@solana.com >
2021-04-29 22:04:33 +08:00
90641ad28b
chore:(deps): bump @types/chai from 4.2.16 to 4.2.17 in /explorer ( #16867 )
...
Bumps [@types/chai](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/chai ) from 4.2.16 to 4.2.17.
- [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-04-29 21:01:08 +08:00
e03baeed2b
chore: bump @types/chai from 4.2.16 to 4.2.17 in /web3.js ( #16865 )
...
Bumps [@types/chai](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/chai ) from 4.2.16 to 4.2.17.
- [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-04-29 21:00:58 +08:00
17f45fb75c
chore:(deps): bump @types/jest from 26.0.22 to 26.0.23 in /explorer ( #16869 )
...
Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest ) from 26.0.22 to 26.0.23.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-29 21:00:52 +08:00
87c153bd37
chore:(deps): bump @testing-library/user-event in /explorer ( #16950 )
...
Bumps [@testing-library/user-event](https://github.com/testing-library/user-event ) from 13.1.6 to 13.1.8.
- [Release notes](https://github.com/testing-library/user-event/releases )
- [Changelog](https://github.com/testing-library/user-event/blob/master/CHANGELOG.md )
- [Commits](https://github.com/testing-library/user-event/compare/v13.1.6...v13.1.8 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-29 11:33:32 +00:00
07a4e8494f
chore:(deps): bump @sentry/react from 6.3.1 to 6.3.4 in /explorer ( #16949 )
...
Bumps [@sentry/react](https://github.com/getsentry/sentry-javascript ) from 6.3.1 to 6.3.4.
- [Release notes](https://github.com/getsentry/sentry-javascript/releases )
- [Changelog](https://github.com/getsentry/sentry-javascript/blob/master/CHANGELOG.md )
- [Commits](https://github.com/getsentry/sentry-javascript/compare/6.3.1...6.3.4 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-29 11:23:18 +00:00
9c71a6c0c8
chore:(deps): bump react-chartjs-2 from 2.11.1 to 2.11.2 in /explorer ( #16948 )
...
Bumps [react-chartjs-2](https://github.com/reactchartjs/react-chartjs-2 ) from 2.11.1 to 2.11.2.
- [Release notes](https://github.com/reactchartjs/react-chartjs-2/releases )
- [Commits](https://github.com/reactchartjs/react-chartjs-2/commits )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-29 11:08:45 +00:00
da020552fd
chore:(deps): bump @types/node from 14.14.41 to 15.0.1 in /explorer ( #16947 )
...
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node ) from 14.14.41 to 15.0.1.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-29 10:34:29 +00:00
31abedcbf7
chore:(deps): bump @testing-library/user-event in /explorer ( #16946 )
...
Bumps [@testing-library/user-event](https://github.com/testing-library/user-event ) from 13.1.5 to 13.1.6.
- [Release notes](https://github.com/testing-library/user-event/releases )
- [Changelog](https://github.com/testing-library/user-event/blob/master/CHANGELOG.md )
- [Commits](https://github.com/testing-library/user-event/compare/v13.1.5...v13.1.6 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-29 10:15:51 +00:00
2625dd733d
chore:(deps): bump @solana/spl-token-registry in /explorer ( #16945 )
...
Bumps [@solana/spl-token-registry](https://github.com/solana-labs/token-list ) from 0.2.62 to 0.2.64.
- [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.62...v0.2.64 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-29 09:52:07 +00:00
97183774e8
chore: bump rollup from 2.45.2 to 2.46.0 in /web3.js ( #16944 )
...
Bumps [rollup](https://github.com/rollup/rollup ) from 2.45.2 to 2.46.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.45.2...v2.46.0 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-29 09:48:57 +00:00
d6f30b7537
Refactor SignerSource to expose DerivationPath to other kinds of signers ( #16933 )
...
* One use statement
* Add stdin uri scheme
* Convert parse_signer_source to return Result
* A-Z deps
* Convert Usb data to Locator
* Pull DerivationPath out of Locator
* Wrap SignerSource to share derivation_path
* Review comments
* Check Filepath existence, readability in parse_signer_source
2021-04-29 01:42:21 -06:00
d640ac143b
Add skip rate to solana validators
2021-04-28 22:43:06 -07:00
542d88929f
Add getBlockProduction RPC method
2021-04-28 20:02:54 -07:00
cfc1cb1aee
SDK: Factor out pubkey on-curve test to a helper
2021-04-28 20:10:19 -06:00
a7070a5ca7
set_lamports() ( #16921 )
2021-04-28 21:30:06 +00:00
8dc15f727c
account.lamports -= ( #16913 )
2021-04-28 15:47:59 -05:00
21c75d9d29
lamports = -> set_lamports ( #16919 )
2021-04-28 15:39:54 -05:00
f533d3be77
Write account path impl ReadableAccount ( #16779 )
2021-04-28 15:29:22 -05:00
783bd79e9d
Fixup rpc-endpoints ( #16924 )
2021-04-28 20:13:58 +00:00
82e11588a5
lamports -> lamports() ( #16915 )
2021-04-28 14:55:55 -05:00
b5d30846d6
Retry latest vote if expired ( #16735 )
2021-04-28 11:46:16 -07:00
9070191b8b
stats on clean for removing roots ( #16849 )
...
* stats on clean for removing roots
* rename
* accumulate and swap metrics
2021-04-28 13:24:01 -05:00
9218b51de7
accountshareddata.executable is private ( #16882 )
2021-04-28 12:01:31 -05:00
77f1ffd84b
Collect uncleaned pubkeys from all slots ( #16786 )
...
While working on another issue (#16580 ), the list of uncleaned pubkeys
returned from `remove_uncleaned_slots_and_collect_pubkeys_up_to_slot()`
did not include unrooted slots. This meant that during cleaning,
unrooted slots would not have their pubkeys cleaned up properly.
Now, return all uncleaned pubkeys, regardless if the slot is rooted or
not. Additionally, update the tests to have unrooted slots to ensure
this behavior.
This is part two of PR #16879 , and originally based on PR #15106 .
2021-04-28 10:57:42 -05:00
0aecc6033a
Update rpc-endpoints.md ( #16910 )
2021-04-28 21:01:54 +05:30
f35453f838
AccountSharedData.set_executable() ( #16876 )
2021-04-28 15:25:58 +00:00
7f1c1fe6a4
Add banner to page ( #16908 )
2021-04-28 08:14:25 -06:00
a7a671b3aa
AccountSharedData.set_executable() ( #16881 )
2021-04-28 14:07:43 +00:00
2021255f91
executable() ( #16880 )
2021-04-28 08:53:54 -05:00
30e83a4a3c
private AccountSharedData.rent_epoch ( #16878 )
2021-04-28 08:53:21 -05:00
da3342759b
private AccountSharedData.rent_epoch ( #16877 )
2021-04-28 08:52:20 -05:00
6381ee38eb
reclaims unref accounts from index ( #16838 )
2021-04-28 08:50:38 -05:00
1864bc2080
write Option<AccountSharedData> ( #16874 )
...
* write Option<&AccountSharedData>
* add comment
2021-04-28 08:47:26 -05:00
25054bfd35
retains peer's contact-info when making pull requests ( #16715 )
...
ClusterInfo::new_pull_requests has to lookup contact-infos:
https://github.com/solana-labs/solana/blob/a1ef2bd74/core/src/cluster_info.rs#L1663-L1673
when it was already available when making pull requests:
https://github.com/solana-labs/solana/blob/a1ef2bd74/core/src/crds_gossip_pull.rs#L232
2021-04-28 13:19:12 +00:00
1eaff394da
Refactor collect_uncleaned_pubkeys_to_slot()
( #16879 )
...
* Refactor `collect_uncleaned_pubkeys_to_slot()`
While working on another issue (#16580 ), I came across
`collect_unclean_pubkeys_to_slot()` and had difficulty understanding it.
Since the function does a few logically separate things, I split the
function up. I also added documentation, removed an unused return value,
and renamed the functions to be more specific.
This commit is to split up an existing PR (#16786 ), where I had both this
aesthetic change _and_ a behavioral change.
2021-04-28 08:16:12 -05:00
1ac2a8cfa5
removes delayed crds inserts when upserting gossip table ( #16806 )
...
It is crucial that VersionedCrdsValue::insert_timestamp does not go
backward in time:
https://github.com/solana-labs/solana/blob/ec37a843a/core/src/crds.rs#L67-L79
Otherwise methods such as get_votes and get_epoch_slots_since will
break, which will break their downstream flow, including vote-listener
and optimistic confirmation:
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
For that, Crds::new_versioned is intended to be called "atomically" with
Crds::insert_verioned (as the comment already says so):
https://github.com/solana-labs/solana/blob/ec37a843a/core/src/crds.rs#L126-L129
However, currently this is violated in the code. For example,
filter_pull_responses creates VersionedCrdsValues (with the current
timestamp), then acquires an exclusive lock on gossip, then
process_pull_responses writes those values to the crds table:
https://github.com/solana-labs/solana/blob/ec37a843a/core/src/cluster_info.rs#L2375-L2392
Depending on the workload and lock contention, the insert_timestamps may
well be in the past when these values finally are inserted into gossip.
To avoid such scenarios, this commit:
* removes Crds::new_versioned and Crd::insert_versioned.
* makes VersionedCrdsValue constructor private, only invoked in
Crds::insert, so that insert_timestamp is populated right before
insert.
This will improve insert_timestamp monotonicity as long as Crds::insert
is not called with a stalled timestamp. Following commits may further
improve this by calling timestamp() inside Crds::insert, and/or
switching to std::time::Instant which guarantees monotonicity.
2021-04-28 11:56:13 +00:00
1c95e2bbee
chore: bump jayson from 3.5.2 to 3.6.1 in /web3.js ( #16901 )
...
Bumps [jayson](https://github.com/tedeh/jayson ) from 3.5.2 to 3.6.1.
- [Release notes](https://github.com/tedeh/jayson/releases )
- [Commits](https://github.com/tedeh/jayson/compare/v3.5.2...v3.6.1 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-28 08:55:36 +00:00
aee30e304d
chore: export is_on_curve()
2021-04-28 06:37:25 +00:00
b17d5eeaee
moves cluster-info metrics to a separate module ( #16883 )
2021-04-28 02:04:49 +00:00
36574c30ef
Add allowed-ip list to faucet ( #16891 )
2021-04-28 01:31:32 +00:00
b468ead1b1
uses current timestamp when flushing local pending push queue ( #16808 )
...
local_message_pending_push_queue is recording timestamps at the time the
value is created, and uses that when the pending values are flushed:
https://github.com/solana-labs/solana/blob/ec37a843a/core/src/cluster_info.rs#L321
https://github.com/solana-labs/solana/blob/ec37a843a/core/src/crds_gossip.rs#L96-L102
which is then used as the insert_timestamp when inserting values in the
crds table:
https://github.com/solana-labs/solana/blob/ec37a843a/core/src/crds_gossip_push.rs#L183
The flushing may happen 100ms after the values are created (or even
later if there is a lock contention). This will cause non-monotone
insert_timestamps in the crds table (where time goes backward),
hindering the usability of insert_timestamps for other computations.
For example both ClusterInfo::get_votes and get_epoch_slots_since rely
on monotone insert_timestamps when values are inserted into the table:
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
This commit removes timestamps from local_message_pending_push_queue and
uses current timestamp when flushing the queue.
2021-04-28 00:15:11 +00:00
cac666d035
remote-wallet: Move Locator
to its own module
2021-04-27 17:54:02 -06:00
4ce4f04c58
remote-wallet: derivation-path
crate doesn't like empty trailing child indexes
2021-04-27 17:54:02 -06:00
3d12be29ec
remote-wallet: Plumb Locator
into RemoteWalletInfo
2021-04-27 17:54:02 -06:00
64fcb792c2
remote-wallet: Add helpers for locating remote wallets
2021-04-27 17:54:02 -06:00
722de942ca
SDK: More conversion for DerivationPath
2021-04-27 17:54:02 -06:00
9b7120bf73
SDK: More conversions for Pubkey
2021-04-27 17:54:02 -06:00
bc31378797
Trim extra shred bytes in blockstore ( #16602 )
...
Strip the zero-padding off of data shreds before insertion into blockstore
Co-authored-by: Stephen Akridge <sakridge@gmail.com >
Co-authored-by: Nathan Hawkins <utsl@utsl.org >
2021-04-27 17:40:41 -05:00
283f587afe
Enable multiple payers in accounts-cluster-bench ( #16889 )
...
* Enable multiple payer keypairs
* Suppress tx creation if batch size == 0
* Suppress logs when waiting to create txs
* Double airdrop threshold to prevent stall when closing accounts
2021-04-27 21:26:16 +00:00
9b3a59f030
Retain alloc'd and updated data in cpi ( #16850 )
2021-04-27 13:36:42 -07:00
1bd623cd15
private AccountSharedData.rent_epoch ( #16844 )
2021-04-27 13:51:13 -05:00
2f5102587c
owner() lifetime issue ( #16875 )
2021-04-27 12:57:47 -05:00
8f56c116d7
tests: lamports += to checked_add ( #16842 )
2021-04-27 10:23:07 -05:00
d533f77301
bank.withdraw uses checked_sub_lamports ( #16848 )
...
* bank.withdraw uses checked_sub_lamports
* retain previous codepath for error
* map_err from clippy
2021-04-27 09:58:41 -05:00
69bfbf9e98
AccountSharedData.set_executable ( #16836 )
2021-04-27 09:56:50 -05:00
3887169db0
lamports += to checked_add ( #16841 )
2021-04-27 09:56:18 -05:00
47ca7063f2
rootstracker.remove returns previous state ( #16831 )
2021-04-27 09:15:44 -05:00
3fdbaefaa6
tests: lamports -= to checked_sub ( #16843 )
2021-04-27 09:12:48 -05:00
998cba74b5
AccountSharedData.executable() ( #16835 )
2021-04-27 09:12:17 -05:00
4e7e675c07
lamports += -> checked_add_lamports ( #16791 )
2021-04-27 09:11:35 -05:00
81402ee7f5
pass &Pubkey through account storage, slot clean code to reduce copies ( #16778 )
...
* &Pubkey
* use trait to pass &Hash or Hash
* use impl Borrow<Hash> instead of trait
* remove old code line commented out
2021-04-27 09:10:06 -05:00
3b8d6b59fb
records hash of values purged by expired pull-responses ( #16800 )
...
process_pull_responses should record hash of values purged by expired
responses (as well as unexpired ones):
https://github.com/solana-labs/solana/blob/c1829dd00/core/src/crds_gossip_pull.rs#L385-L387
otherwise, these values are not excluded from following pull-requests
(from likely different nodes):
https://github.com/solana-labs/solana/blob/c1829dd00/core/src/crds_gossip_pull.rs#L447-L452
and would waste bandwidth should they be included in subsequent
pull-responses.
2021-04-27 12:06:49 +00:00
0f3ac51cf1
limits to data_header.size when combining shreds' payloads ( #16708 )
...
Shredder::deshred is ignoring data_header.size when combining shreds' payloads:
https://github.com/solana-labs/solana/blob/37b8587d4/ledger/src/shred.rs#L940-L961
Also adding more sanity checks on the alignment of data shreds indices.
2021-04-27 12:04:44 +00:00
68d5aec55b
chore:(deps): bump @types/react from 17.0.3 to 17.0.4 in /explorer ( #16868 )
...
Bumps [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react ) from 17.0.3 to 17.0.4.
- [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-04-27 09:22:57 +00:00
9606126543
chore:(deps): bump @solana/web3.js from 1.5.0 to 1.7.0 in /explorer ( #16866 )
...
Bumps [@solana/web3.js](https://github.com/solana-labs/solana-web3.js ) from 1.5.0 to 1.7.0.
- [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.5.0...v1.7.0 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-27 09:15:29 +00:00
e5d1037fda
chore: bump flowgen from 1.14.0 to 1.14.1 in /web3.js ( #16864 )
...
Bumps flowgen from 1.14.0 to 1.14.1.
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-27 09:10:05 +00:00
ef9a931567
chore: bump @types/node from 14.14.41 to 15.0.0 in /web3.js ( #16863 )
...
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node ) from 14.14.41 to 15.0.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-27 09:05:59 +00:00
374fee2953
chore:(deps): bump @solana/spl-token-registry in /explorer ( #16822 )
...
Bumps [@solana/spl-token-registry](https://github.com/solana-labs/token-list ) from 0.2.60 to 0.2.62.
- [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.60...v0.2.62 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-27 15:01:43 +08:00
f93565da6f
Compress account data by default
2021-04-27 04:56:56 +00:00
59fc33635a
Add getVoteAccounts RPC method parameter to restrict results to a single vote account
2021-04-27 04:27:15 +00:00
b66a68975b
block-production subcommand now uses SlotHistory sysvar when possible
2021-04-26 21:00:16 -07:00
3af8cb0150
Fix limit-ledger-size syntax ( #16856 )
2021-04-27 03:35:35 +00:00
c2becbc0a8
solana leader-schedule -um
works again
2021-04-26 16:29:35 -07:00
5eb5d9b2f5
Update bpf loader info on native-programs docs ( #16840 )
...
* Update bpf loader info on native-programs docs
* Link to program deployment docs
2021-04-26 20:09:44 +00:00
603872685d
private AccountSharedData.owner ( #16760 )
...
* private AccountSharedData.owner
* fix perf test
2021-04-26 14:59:17 -05:00
c54daa8009
feat: introduce getInflationReward to connection ( #16807 )
...
* feat: introduce getInflationReward to connection
* fix: only run getInflationReward test in mock mode
2021-04-26 11:09:40 -07:00
cf779c63c5
Add ALL support to withdraw-stake subcommand
2021-04-26 11:03:37 -07:00
9706512115
removes old runtime feature gates in gossip and turbine ( #16633 )
2021-04-26 17:12:02 +00:00
f2ab0384e4
owner -> owner() ( #16783 )
2021-04-26 17:06:40 +00:00
aeff911c93
owner -> owner() ( #16784 )
2021-04-26 10:40:11 -05:00
c44812fa71
feat: introduce support for custom HTTP headers ( #16599 )
...
* feat: introduce support for custom http headers
* feat: add fetch middleware
2021-04-26 08:35:07 -07:00
6d160768d7
delete vest program ( #16795 )
2021-04-26 08:50:46 -05:00
97812570e7
chore:(deps): bump @sentry/react from 6.3.0 to 6.3.1 in /explorer ( #16821 )
...
Bumps [@sentry/react](https://github.com/getsentry/sentry-javascript ) from 6.3.0 to 6.3.1.
- [Release notes](https://github.com/getsentry/sentry-javascript/releases )
- [Changelog](https://github.com/getsentry/sentry-javascript/blob/master/CHANGELOG.md )
- [Commits](https://github.com/getsentry/sentry-javascript/compare/6.3.0...6.3.1 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-26 10:59:55 +00:00
4733baf511
chore: bump jayson from 3.4.4 to 3.5.2 in /web3.js ( #16820 )
...
Bumps [jayson](https://github.com/tedeh/jayson ) from 3.4.4 to 3.5.2.
- [Release notes](https://github.com/tedeh/jayson/releases )
- [Commits](https://github.com/tedeh/jayson/compare/v3.4.4...v3.5.2 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-26 10:55:25 +00:00
aac37e5eee
chore: bump eslint-config-prettier from 8.2.0 to 8.3.0 in /web3.js ( #16819 )
...
Bumps [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier ) from 8.2.0 to 8.3.0.
- [Release notes](https://github.com/prettier/eslint-config-prettier/releases )
- [Changelog](https://github.com/prettier/eslint-config-prettier/blob/main/CHANGELOG.md )
- [Commits](https://github.com/prettier/eslint-config-prettier/compare/v8.2.0...v8.3.0 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-26 10:52:03 +00:00
e842a63dc5
chore:(deps): bump @project-serum/serum in /explorer ( #16818 )
...
Bumps [@project-serum/serum](https://github.com/project-serum/serum-ts ) from 0.13.33 to 0.13.34.
- [Release notes](https://github.com/project-serum/serum-ts/releases )
- [Commits](https://github.com/project-serum/serum-ts/commits )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-26 10:42:28 +00:00
c608efc823
chore: bump eslint from 7.24.0 to 7.25.0 in /web3.js ( #16817 )
...
Bumps [eslint](https://github.com/eslint/eslint ) from 7.24.0 to 7.25.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.24.0...v7.25.0 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-26 10:35:37 +00:00
559d3d8f49
Add new logo to Explorer repo ( #16813 )
2021-04-25 14:26:48 -06:00
8ce4a8d6ab
Annotate clock constants with computed values for quick refeerence ( #16812 )
2021-04-25 22:05:00 +08:00
ec37a843a4
docs: getInflationReward rpc output fields should be in lower camel case ( #16802 )
2021-04-24 19:13:02 +00:00
c1829dd00b
Show last vote/root behind distance in solana validators
output
2021-04-24 02:57:57 +00:00
2420b280a9
Update deprecated commitments ( #16794 )
2021-04-23 18:32:28 -06:00
d9dcd28d82
Ignore racy test_load_account_and_purge_race_without_retry
2021-04-23 23:17:56 +00:00
ca14c18998
owner -> owner() ( #16782 )
2021-04-23 22:49:47 +00:00
1a4a7059af
owner -> owner() ( #16785 )
2021-04-23 15:59:13 -05:00
1500011fc6
get_packed_len() now correctly handles u32/i32 types
2021-04-23 13:39:42 -07:00
48c07d32f0
WritableAccount.add/subtract_lamports ( #16750 )
...
* add/sub lamports
* make add/sub return Result
* sample replacements
* cleanup
* fix up a few tests as examples
* move enum, cleanup, impl from
* fmt
* cleanup
* add lamports.rs
2021-04-23 20:20:48 +00:00
be29568318
runtime: checked math for Bank::withdraw
2021-04-23 20:13:35 +00:00
dcf2d84b24
refactor complicated 'len' ( #16777 )
2021-04-23 18:36:49 +00:00
04e6aebf35
.owner = X -> .set_owner(X) ( #16759 )
2021-04-23 18:26:33 +00:00
fb0b76c1f3
account.owner = X -> account.set_owner(X) ( #16754 )
2021-04-23 12:34:22 -05:00
63436cc2bf
Disable flaky test_poh_service ( #16772 )
2021-04-23 12:14:11 -05:00
da58f20a99
Restore text wrapping ( #16776 )
2021-04-23 17:03:21 +00:00
7602911f9a
read_only_cache remove updates cache size ( #16742 )
2021-04-23 12:00:17 -05:00
1cc9a1c0eb
log roots range metric ( #16636 )
...
* log roots range metric
* rename
2021-04-23 16:09:39 +00:00
2c82f2154d
retains crds values if the origin is still active ( #16576 )
...
Local timestamps are updated for records associated with a pubkey if the
origin is still active:
https://github.com/solana-labs/solana/blob/c8ed14c64/core/src/crds.rs#L301-L311
However this is done inconsistently on some gossip paths (pull requests
and pull responses) but not all (e.g. push messages). Additionally
update_record_timestamp is inefficient since there can be ~800 values
associated with each pubkey.
This commit updates records timestamps only on contact-infos; and,
instead utilizes origin's timestamp when purging old values.
2021-04-23 15:14:49 +00:00
4beb2f8ddb
chore:(deps): bump @testing-library/jest-dom in /explorer ( #16766 )
...
Bumps [@testing-library/jest-dom](https://github.com/testing-library/jest-dom ) from 5.11.10 to 5.12.0.
- [Release notes](https://github.com/testing-library/jest-dom/releases )
- [Changelog](https://github.com/testing-library/jest-dom/blob/main/CHANGELOG.md )
- [Commits](https://github.com/testing-library/jest-dom/compare/v5.11.10...v5.12.0 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-23 22:51:10 +08:00
96d21335e1
.owner -> .owner() ( #16758 )
2021-04-23 09:35:55 -05:00
5591cd6ef3
.owner -> .owner() ( #16757 )
...
* .owner -> .get_owner()
* use
2021-04-23 09:35:09 -05:00
6c5b7ecf90
account.owner = X -> account.set_owner(X) ( #16756 )
2021-04-23 09:34:28 -05:00
87e2e07d34
AccountSharedData.copy_into_owner_from_slice ( #16755 )
2021-04-23 09:34:08 -05:00
91be2903da
Reduce account index lookups during clean ( #16689 )
...
* reduce account index lookups in clean
* rename
* rename enum
* hold locks during removal from zero pubkey list
* merge with zero lamport fix
* tests
2021-04-23 09:33:14 -05:00
03194145c0
removes first_coding_index from erasure recovery code ( #16646 )
...
first_coding_index is the same as the set_index and is so redundant:
https://github.com/solana-labs/solana/blob/37b8587d4/ledger/src/blockstore_meta.rs#L49-L60
2021-04-23 12:00:37 +00:00
f59fe41abf
chore:(deps): bump @solana/spl-token-registry in /explorer ( #16765 )
...
Bumps [@solana/spl-token-registry](https://github.com/solana-labs/token-list ) from 0.2.59 to 0.2.60.
- [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.59...v0.2.60 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-23 09:01:41 +00:00
e7fcb77b49
chore: bump typedoc from 0.20.35 to 0.20.36 in /web3.js ( #16764 )
...
Bumps [typedoc](https://github.com/TypeStrong/TypeDoc ) from 0.20.35 to 0.20.36.
- [Release notes](https://github.com/TypeStrong/TypeDoc/releases )
- [Commits](https://github.com/TypeStrong/TypeDoc/compare/v0.20.35...v0.20.36 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-23 08:59:51 +00:00
e9a616cfc2
fix reference to Rust Restrictions section ( #16763 )
2021-04-23 14:40:03 +08:00
084997c4f0
hotfix: avoid passing along additionalSignatures as an option to getConfirmedSignaturesForAddress2 ( #16734 )
2021-04-22 20:27:17 -07:00
c217ee3a00
docs: fix formatting issue ( #16761 )
2021-04-23 09:41:20 +08:00
75b8434b76
Add TPU client for sending txs to the current leader tpu port ( #16736 )
...
* Add TPU client for sending txs to the current leader tpu port
* Update tpu_client.rs
2021-04-23 09:35:12 +08:00
fc12841d95
Readonlyaccounts ( #16743 )
...
* lamports -> lamports()
* format
2021-04-22 20:04:55 +00:00
636b5987af
Update getLeaderSchedule options ( #16749 )
2021-04-22 19:27:30 +00:00
556997666c
chore:(deps): bump @sentry/react from 6.2.5 to 6.3.0 in /explorer ( #16702 )
...
Bumps [@sentry/react](https://github.com/getsentry/sentry-javascript ) from 6.2.5 to 6.3.0.
- [Release notes](https://github.com/getsentry/sentry-javascript/releases )
- [Changelog](https://github.com/getsentry/sentry-javascript/blob/master/CHANGELOG.md )
- [Commits](https://github.com/getsentry/sentry-javascript/compare/6.2.5...6.3.0 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-22 12:10:37 -07:00
739f0698ab
clean read_only_cache in the bg ( #16722 )
...
* clean read_only_cache in the bg
* reset lru_index
* cleanup
* cleanup
* drop for read only cache
* join bg thread
* reuse existing lru vec
* simplify reserve logic
2021-04-22 13:59:58 -05:00
333998d008
.lamports = <number> -> .set_lamports(<number>) ( #16746 )
2021-04-22 18:56:47 +00:00
8a6b80095e
Set lamports ( #16747 )
...
* lamports = -> set_lamports()
* .lamports = X -> .set_lamports(X)
2021-04-22 13:53:06 -05:00
8d9d6b62d9
use cheaper account get ( #16682 )
2021-04-22 12:54:08 -05:00
be4df39a4c
Remove unactivated ristretto syscall ( #16727 )
2021-04-22 09:29:42 -07:00
639650ed2c
chore:(deps): bump @types/classnames from 2.2.11 to 2.3.1 in /explorer ( #16704 )
...
Bumps [@types/classnames](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/classnames ) from 2.2.11 to 2.3.1.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/classnames )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-22 23:07:09 +08:00
13dfc15e84
chore:(deps): bump @solana/spl-token-registry in /explorer ( #16738 )
...
Bumps [@solana/spl-token-registry](https://github.com/solana-labs/token-list ) from 0.2.58 to 0.2.59.
- [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.58...v0.2.59 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-22 23:06:51 +08:00
f4214637a9
program-test: Add large bootstrap stake for realistic warmups ( #16739 )
2021-04-22 16:44:54 +02:00
517a30e83d
explorer: downgrade nodejs version in travis ( #16740 )
2021-04-22 22:27:50 +08:00
26fa71a7c1
chore: bump flowgen from 1.13.0 to 1.14.0 in /web3.js ( #16737 )
...
Bumps flowgen from 1.13.0 to 1.14.0.
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-22 08:59:59 +00:00
b22c13dcd7
Update secp instruction link in docs ( #16729 )
2021-04-21 21:33:05 -07:00
b8b54567b1
Clean up "APR" language around inflation rewards
2021-04-21 19:02:03 -07:00
123e0bdba7
don't iterate slot_list if zero-lamport ( #16678 )
2021-04-21 20:38:48 -05:00
6004c0abf5
getLeaderSchedule now supports filtered results based on validator identity
2021-04-21 17:59:26 -07:00
3f92abedd5
Make metrics tests independent of RUST_LOG env var ( #16710 )
...
Previously, running the tests with RUST_LOG=none would fail, because the
env logger would set its filter level to reject all log messages, and
incrementing a counter only happens if the global logger has at least
the specified log level. Having the tests behave differently when
RUST_LOG is set is surprising, they should be self-contained.
Nix' buildRustPackage sets RUST_LOG="" to make the build logs less
verbose. I have trouble packaging Solana for Nix because of this, and I
believe making the tests independent of the environment is a good
solution for this.
2021-04-21 18:14:49 -06:00
1a658c7f31
Allow SetUpgradeAuthority instruction in CPI calls ( #16676 )
...
* feat: allow SetAuthority in CLI calls
* chore: clippy match_like_matches_macro
* chore: clippy match_like_matches_macro
* chore: rename CLI to CPI
* chore: move check for cpi authorised instruction to syscalls
* chore: add set_upgrade_authority cpi test
* chore: assert upgrade authority was changed
* feat: gate set_upgrade_authority via cpi with a feature
* chore: move feature to the end of the list
* chore: remove white spaces
* chore: remove white spaces
* chore: update comment to rerun build
2021-04-22 00:06:59 +01:00
91b6888e15
verify_pubkey() now takes a ref
2021-04-21 14:43:49 -07:00
4c94f8933f
Ingest votes from gossip into fork choice ( #16560 )
2021-04-21 14:40:35 -07:00
63957f0677
CLI: Make pay
subcommand a proper alias of transfer
2021-04-21 21:21:06 +00:00
ba9a502e7e
Add --seed support to delegate-stake and withdraw-stake commands
2021-04-21 20:25:01 +00:00
a1ef2bd74d
Ignore flaky test_pull_request_time_pruning
2021-04-21 12:07:36 -07:00
69cbad0869
some ReadableAccount changes ( #16688 )
...
* some ReadableAccount changes
* deref
2021-04-21 12:20:37 -05:00
189d2121e6
simplify do_shrink_slot_stores, delay/reduce account clone ( #16691 )
2021-04-21 11:17:38 -05:00
37b8587d4e
expands number of erasure coding shreds in the last batch in slots ( #16484 )
...
Number of parity coding shreds is always less than the number of data
shreds in FEC blocks:
https://github.com/solana-labs/solana/blob/6907a2366/ledger/src/shred.rs#L719
Data shreds are batched in chunks of 32 shreds each:
https://github.com/solana-labs/solana/blob/6907a2366/ledger/src/shred.rs#L714
However the very last batch of data shreds in a slot can be small, in
which case the loss rate can be exacerbated.
This commit expands the number of coding shreds in the last FEC block in
slots to: 64 - number of data shreds; so that FEC blocks are always 64
data and parity coding shreds each.
As a consequence of this, the last FEC block has more parity coding
shreds than data shreds. So for some shred indices we will have a coding
shred but no data shreds. This should not cause any kind of overlapping
FEC blocks as in:
https://github.com/solana-labs/solana/pull/10095
since this is done only for the very last batch in a slot, and the next
slot will reset the shred index.
2021-04-21 12:47:50 +00:00
ba2be0ca34
chore: bump @babel/register from 7.13.14 to 7.13.16 in /web3.js ( #16705 )
...
Bumps [@babel/register](https://github.com/babel/babel/tree/HEAD/packages/babel-register ) from 7.13.14 to 7.13.16.
- [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.13.16/packages/babel-register )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-21 09:30:27 +00:00
1e6fc5b3d1
chore: bump @babel/runtime from 7.13.10 to 7.13.17 in /web3.js ( #16703 )
...
Bumps [@babel/runtime](https://github.com/babel/babel/tree/HEAD/packages/babel-runtime ) from 7.13.10 to 7.13.17.
- [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.13.17/packages/babel-runtime )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-21 09:18:20 +00:00
29852de4f7
chore: bump @babel/core from 7.13.15 to 7.13.16 in /web3.js ( #16701 )
...
Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core ) from 7.13.15 to 7.13.16.
- [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.13.16/packages/babel-core )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-21 09:05:19 +00:00
053120e04c
Initialize non-bootstrap ndoes with faucet address
2021-04-21 01:48:41 -06:00
51b748408c
Pass limit-ledger-size value
2021-04-21 01:48:41 -06:00
0924c2d070
Add port and gossip options to solana-test-validator ( #16696 )
2021-04-21 02:40:52 +00:00
9852572eb9
increase rolling slot width to 4M ( #16583 )
2021-04-20 21:18:15 -05:00
bb2b4c7e0b
Update float docs ( #16695 )
2021-04-20 17:28:30 -07:00
05fa7250b0
Selectable jit in program-test ( #16685 )
2021-04-20 15:02:54 -07:00
34addee882
getVoteAccounts: Limit the length of the epoch_credits
array
2021-04-20 14:42:28 -07:00
03f7b251b8
ReadableAccount.data returns slice ( #16686 )
...
* ReadAbleAccount.data returns slice
* more slice fixup
* more slice
* slice
2021-04-20 16:41:16 -05:00
08d5253651
Enforce host aligned memory for program regions ( #16590 )
2021-04-20 11:07:30 -07:00
8e69dd42c1
Add non-default repair nonce values ( #16512 )
...
* Track outstanding nonces in repair
* Rework outstanding requests to use lru cache and randomize nonces
Co-authored-by: Carl <carl@solana.com >
2021-04-20 09:37:33 -07:00
36e11998c7
read only accounts cache uses accurate size representation ( #16610 )
...
* read ony accounts cache uses accurate size representation
* add comment and test
2021-04-20 09:58:01 -05:00
bc90e04e64
uses current local timestamp when recording purged values
...
CrdsGossipPull.purged_values is meant to record recently purged values
so that they are excluded from imminent pull requests, until the entire
cluster have synced to the updated value:
https://github.com/solana-labs/solana/blob/c826cddbb/core/src/crds_gossip_pull.rs#L449-L454
However, VersionedCrdsValue.local_timestamp represents the local time
when the value was last updated, and given that crds values may have
different timeouts based on stake, it does not necessarily represent how
recently the value was purged:
https://github.com/solana-labs/solana/blob/c826cddbb/core/src/crds.rs#L75-L76
As such, recording current local timestamp when purging values is more
appropriate. Additionally, purge_purged assumes that the purge_values is
sorted in timestamps when draining the old ones; which is not true if
those timestamps are VersionedCrdsValue.local_timestamp:
https://github.com/solana-labs/solana/blob/c826cddbb/core/src/crds_gossip_pull.rs#L563-L571
2021-04-20 11:21:00 +00:00
f91de6a84d
CLI: Limit stake-history
output by default
2021-04-20 10:15:25 +00:00
97f6b090b9
chore:(deps): bump @solana/web3.js from 1.4.0 to 1.5.0 in /explorer ( #16669 )
...
Bumps [@solana/web3.js](https://github.com/solana-labs/solana-web3.js ) from 1.4.0 to 1.5.0.
- [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.4.0...v1.5.0 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-20 18:07:38 +08:00
2c2e7e4cf9
chore:(deps): bump @testing-library/user-event in /explorer ( #16668 )
...
Bumps [@testing-library/user-event](https://github.com/testing-library/user-event ) from 13.1.4 to 13.1.5.
- [Release notes](https://github.com/testing-library/user-event/releases )
- [Changelog](https://github.com/testing-library/user-event/blob/master/CHANGELOG.md )
- [Commits](https://github.com/testing-library/user-event/compare/v13.1.4...v13.1.5 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-20 09:16:06 +00:00
b32ad29071
chore:(deps): bump @solana/spl-token-registry in /explorer ( #16667 )
...
Bumps [@solana/spl-token-registry](https://github.com/solana-labs/token-list ) from 0.2.57 to 0.2.58.
- [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.57...v0.2.58 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-20 09:03:29 +00:00
12678a819d
docs: Expand native program descriptions
2021-04-20 08:50:54 +00:00
d575450ef0
docs: Flesh out address verification in integraion guide
2021-04-20 08:50:54 +00:00
a7e65c0034
RPC: use finalized as default pubsub commitment level ( #16659 )
...
* RPC: use finalized as default pubsub commitment level
* update docs
* Fix tests
2021-04-20 08:19:54 +00:00
c8b474cd0b
Send votes to next leader's TPU instead of our TPU
2021-04-20 00:38:21 -07:00
a19c3ba5b0
chore: bump @types/node from 14.14.37 to 14.14.41 in /web3.js ( #16614 )
...
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node ) from 14.14.37 to 14.14.41.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-20 13:37:49 +08:00
b20314738f
chore:(deps): bump @solana/web3.js from 1.2.7 to 1.4.0 in /explorer ( #16632 )
...
Bumps [@solana/web3.js](https://github.com/solana-labs/solana-web3.js ) from 1.2.7 to 1.4.0.
- [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.2.7...v1.4.0 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-20 13:37:38 +08:00
01786f684e
Remove unwrap ( #16652 )
2021-04-19 20:17:56 -07:00
30c95d38a5
feat: support commitment in getConfirmed methods
2021-04-19 20:49:20 -06:00
a99ee15a85
fix: add Finality type for confirmed+
2021-04-19 20:49:20 -06:00
568438aa6f
Prefix current validators with nbsp for easier sed-ing
2021-04-19 16:31:23 -07:00
f14cf3ed1a
Add --number argument
2021-04-19 16:31:23 -07:00
1824b5a2ce
Print the header as a footer when there's a large number of validators to show
2021-04-19 16:31:23 -07:00
818c3198c1
Add line numbers to solana validators
output
2021-04-19 16:31:23 -07:00
b66faf7e80
Add --sort argument to solana validators
2021-04-19 16:31:23 -07:00
185bbf2db5
Wrap derivation_path::DerivationPath ( #16609 )
...
* Replace custom DerivationPath impl
* Add method to parse full-path from str with hardening
* Convert Bip44 to trait
* Hoist more work on derivation-path
* Privatize Bip44 trait
2021-04-19 20:57:43 +00:00
2409bb18f3
Remove unwrap from bpf_loader serialization ( #16645 )
2021-04-19 13:30:31 -07:00
1b63bdaf44
solana validators
: Restore the meaning of "credits" in the JSON output
2021-04-19 13:01:40 -07:00
0b84440e0f
cargo-install-all.sh: on Mac OS X, use greadlink instead of readlink ( #16642 )
...
* on Mac OS X, use greadlink when building from source
* this is a cleaner way to do it
* we want to keep the cargo install comment at the top of the script
2021-04-19 19:05:46 +00:00
f5f06904c3
solana validators
now shows current epoch credits instead of lifetime credits
2021-04-19 10:19:30 -07:00
4aa753ff01
rename threads: 15 char limit ( #16625 )
2021-04-19 12:16:58 -05:00
9dfcb921cf
Refactoring: Move KeyedAccounts to InvokeContext ( #15410 )
...
Collects all parametric occurrences and the construction of keyed_accounts and puts them into InvokeContext.
2021-04-19 18:48:48 +02:00
015bc034a5
improve failing assert ( #16581 )
2021-04-19 08:55:01 -05:00
1e638c1371
chore:(deps): bump @solana/spl-token-registry in /explorer ( #16631 )
...
Bumps [@solana/spl-token-registry](https://github.com/solana-labs/token-list ) from 0.2.56 to 0.2.57.
- [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.56...v0.2.57 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-19 10:25:25 +00:00
376d0bf063
chore:(deps): bump @testing-library/user-event in /explorer ( #16630 )
...
Bumps [@testing-library/user-event](https://github.com/testing-library/user-event ) from 13.1.3 to 13.1.4.
- [Release notes](https://github.com/testing-library/user-event/releases )
- [Changelog](https://github.com/testing-library/user-event/blob/master/CHANGELOG.md )
- [Commits](https://github.com/testing-library/user-event/compare/v13.1.3...v13.1.4 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-19 10:25:19 +00:00
b06e93fe5b
Increase test timeout
2021-04-18 20:55:02 -07:00
a911ae00ba
clippy
2021-04-18 20:55:02 -07:00
3b79b21e9d
Upgrade to Rust 1.51.0
2021-04-18 20:55:02 -07:00
cfe7a4340b
adds a shrink policy to the recycler without an allocation limit
...
https://github.com/solana-labs/solana/pull/15320
added an allocation limit to the recycler, which has been the source of a
number of bugs. For example the code bellow panics by simply cloning packets:
const RECYCLER_LIMIT: usize = 8;
let recycler = PacketsRecycler::new_with_limit("", RECYCLER_LIMIT as u32);
let packets = Packets::new_with_recycler(recycler.clone(), 1).unwrap();
for _ in 0..RECYCLER_LIMIT {
let _ = packets.clone();
}
Packets::new_with_recycler(recycler.clone(), 1);
The implementation also fails to account for instances where objects are
consumed. Having the allocation limit in the recycler also seems out of place,
as higher level code has better context to impose allocation limits (e.g. by
using bounded channels to rate-limit), whereas the recycler would be simpler
and more efficient if it just do the recycling.
This commit:
* Reverts https://github.com/solana-labs/solana/pull/15320
* Adds a shrink policy to the recycler without an allocation limit.
2021-04-18 19:29:24 +00:00
e405747409
Revert "Add limit and shrink policy for recycler ( #15320 )"
...
This reverts commit c2e8814dce
.
2021-04-18 19:29:24 +00:00
6907a2366e
Remove unnecessary clone
2021-04-17 10:23:13 -07:00
5399faaf53
Documentation typo for langauge
2021-04-17 07:53:21 -07:00
7e01adc050
chore: bump eslint-plugin-prettier from 3.3.0 to 3.4.0 in /web3.js ( #16619 )
...
Bumps [eslint-plugin-prettier](https://github.com/prettier/eslint-plugin-prettier ) from 3.3.0 to 3.4.0.
- [Release notes](https://github.com/prettier/eslint-plugin-prettier/releases )
- [Changelog](https://github.com/prettier/eslint-plugin-prettier/blob/master/CHANGELOG.md )
- [Commits](https://github.com/prettier/eslint-plugin-prettier/commits )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-17 14:46:35 +00:00
4eac6cf366
chore: bump @typescript-eslint/parser from 4.21.0 to 4.22.0 in /web3.js ( #16618 )
...
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser ) from 4.21.0 to 4.22.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases )
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md )
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.22.0/packages/parser )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-17 14:32:04 +00:00
7426861817
chore: bump mockttp from 1.2.0 to 1.2.2 in /web3.js ( #16617 )
...
Bumps [mockttp](https://github.com/httptoolkit/mockttp ) from 1.2.0 to 1.2.2.
- [Release notes](https://github.com/httptoolkit/mockttp/releases )
- [Commits](https://github.com/httptoolkit/mockttp/compare/v1.2.0...v1.2.2 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-17 14:18:35 +00:00
aa64f13172
chore: bump @types/sinon from 9.0.11 to 10.0.0 in /web3.js ( #16615 )
...
Bumps [@types/sinon](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/sinon ) from 9.0.11 to 10.0.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/sinon )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-17 14:05:15 +00:00
a6b197adfe
chore: bump eslint-config-prettier from 8.0.0 to 8.2.0 in /web3.js ( #16613 )
...
Bumps [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier ) from 8.0.0 to 8.2.0.
- [Release notes](https://github.com/prettier/eslint-config-prettier/releases )
- [Changelog](https://github.com/prettier/eslint-config-prettier/blob/main/CHANGELOG.md )
- [Commits](https://github.com/prettier/eslint-config-prettier/compare/v8.0.0...v8.2.0 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-17 13:44:35 +00:00
87715b59a1
chore: bump @types/secp256k1 from 4.0.1 to 4.0.2 in /web3.js ( #16612 )
...
Bumps [@types/secp256k1](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/secp256k1 ) from 4.0.1 to 4.0.2.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/secp256k1 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-17 13:38:29 +00:00
48d836b8e2
chore: bump @typescript-eslint/eslint-plugin in /web3.js ( #16531 )
...
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin ) from 4.21.0 to 4.22.0.
- [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.0/packages/eslint-plugin )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-17 21:25:17 +08:00
cd5398a889
chore: bump rollup from 2.44.0 to 2.45.2 in /web3.js ( #16532 )
...
Bumps [rollup](https://github.com/rollup/rollup ) from 2.44.0 to 2.45.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.44.0...v2.45.2 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-17 21:25:09 +08:00
c94a5a170b
chore: bump eslint from 7.23.0 to 7.24.0 in /web3.js ( #16533 )
...
Bumps [eslint](https://github.com/eslint/eslint ) from 7.23.0 to 7.24.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.23.0...v7.24.0 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-17 21:25:01 +08:00
52f4b96a80
Move derivation path into sdk ( #16603 )
...
* Move DerivationPath to sdk
* Remove eprintln
2021-04-16 22:03:24 +00:00
6444f0e57b
clap-utils: Add explicit schemes for ask
and file
SignerSource
s
2021-04-16 13:56:12 -06:00
5d1ef5d01d
clap-utils: Use uriparse
crate to parse SignerSource
2021-04-16 13:56:12 -06:00
c5ab3ba6f1
clap-utils: Reduce SignerSource's visibility
2021-04-16 13:56:12 -06:00
09dcc9ea04
clap-utils: Rename KeypairUrl to SignerSource
2021-04-16 13:56:12 -06:00
bb24318ef0
Document shreds ( #16514 )
...
No functionality changes from this commit
2021-04-16 14:04:46 -05:00
285f3c9d56
Feature-gate hash-based duplicate transaction check
2021-04-16 18:51:18 +00:00
7e3db1dedb
feat: add filters to getProgramAccounts and getParsedProgramAccounts ( #16448 )
...
* feat: add filters to getProgramAccounts and getParsedProgramAccounts
* fix: documentation edits
* fix: make connection interface match existing interface
2021-04-16 10:18:19 -07:00
c63a208488
hotfix: don't report to sentry for custom clusters on token account section ( #16597 )
2021-04-16 10:09:05 -07:00
a4474f1d94
fix: deprecate getTotalSupply
2021-04-16 10:33:42 -06:00
fe4c39a26a
fix: deprecate getConfirmedSignaturesForAddress
2021-04-16 10:33:42 -06:00
f37c05adeb
feat: add method to return a confirmed block with signatures only
2021-04-16 10:33:42 -06:00
4ac17b1ee3
Revert "web3.js: deprecate getTotalSupply and getConfirmedSignaturesForAddress ( #16534 )" ( #16594 )
...
This reverts commit 59268b8629
.
2021-04-16 10:11:34 -06:00
d747614b27
Account for possibility of cache flush in load() ( #15454 )
...
* Account for possibility of cache flush in load()
* More cleaning
* More cleaning
* Remove unused method and some comment cleaning
* Fix typo
* Make the detected impossible purge race panic()!
* Finally revert to original .expect()
* Fix typos...
* Add assertion for max_root for easier reasoning
* Reframe races with LoadHint as possible opt.
* Fix test
* Make race bug tests run longer for less flaky
* Delay the clone-in-lock slow path even for RPC
* Make get_account panic-free & add its onchain ver.
* Fix rebase conflicts...
* Clean up
* Clean up comment
* Revert fn name change
* Fix flaky test...
* fmt...
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2021-04-17 00:23:32 +09:00
6dab20812e
chore:(deps): bump @types/node from 14.14.39 to 14.14.41 in /explorer ( #16593 )
...
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node ) from 14.14.39 to 14.14.41.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-16 09:07:02 +00:00
013875e787
Fix instruction validation for parsed memo instructions ( #16591 )
2021-04-16 05:04:06 +00:00
59268b8629
web3.js: deprecate getTotalSupply and getConfirmedSignaturesForAddress ( #16534 )
...
* feat: add method to return a confirmed block with signatures only
* fix: deprecate getConfirmedSignaturesForAddress
* fix: deprecate getTotalSupply
2021-04-16 03:52:08 +00:00
974e6dd2c1
Deprecate "confirmed" RpcClient methods ( #16520 )
...
* Remove obsolete client methods
* Deprecate GetConfirmed client methods
* Rename Confirmed config structs, with appropriate deprecation
* Fixup client apps
* Map RpcRequest to deprecated when targeting older nodes
2021-04-15 17:00:14 -06:00
ba77e48c12
Don't parse uninitialized system/nonce accounts ( #16584 )
2021-04-15 16:32:29 -06:00
a535c0e129
Rotate CODECOV_TOKEN
2021-04-15 16:07:04 +00:00
c8ed14c647
docs: Fix typo in program deploy instructions ( #16572 )
2021-04-15 13:56:19 +00:00
c826cddbb5
chore:(deps): bump @testing-library/user-event in /explorer ( #16568 )
...
Bumps [@testing-library/user-event](https://github.com/testing-library/user-event ) from 13.1.2 to 13.1.3.
- [Release notes](https://github.com/testing-library/user-event/releases )
- [Changelog](https://github.com/testing-library/user-event/blob/master/CHANGELOG.md )
- [Commits](https://github.com/testing-library/user-event/compare/v13.1.2...v13.1.3 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-15 09:15:57 +00:00
bcb1b67500
chore:(deps): bump @types/node from 14.14.37 to 14.14.39 in /explorer ( #16567 )
...
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node ) from 14.14.37 to 14.14.39.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-15 08:59:07 +00:00
492b3a91bd
chore:(deps): bump @solana/spl-token-registry in /explorer ( #16566 )
...
Bumps [@solana/spl-token-registry](https://github.com/solana-labs/token-list ) from 0.2.55 to 0.2.56.
- [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.55...v0.2.56 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-15 08:54:19 +00:00
9dfe545820
Remove colo nodes ( #16546 )
2021-04-15 00:13:07 -07:00
7dfb51c0b4
Cli: move airdrop to rpc requests ( #16557 )
...
* Add recent_blockhash to requestAirdrop
* Move tx confirmation to separate method
* Add RpcClient airdrop methods
* Request cli airdrop via RpcClient
* Pass optional faucet_addr into TestValidator and fix tests
* Update client/src/rpc_client.rs
Co-authored-by: Michael Vines <mvines@gmail.com >
Co-authored-by: Michael Vines <mvines@gmail.com >
2021-04-15 06:25:23 +00:00
76ce28c723
docs: freshen and clarify rent-exempt dev description
2021-04-15 04:13:57 +00:00
1f29031b9d
fix transaction spelling ( #16558 )
2021-04-14 20:02:55 -06:00
4905bb552b
Add new logo ( #16556 )
2021-04-14 19:02:42 -06:00
e61b4b7d70
dl-utils: use wide_msg
everywhere for truncation on narrow terminals
2021-04-14 23:50:42 +00:00
143496ccba
Explorer: hide irrelevant delegation information displayed for inactive stake ( #16467 )
...
* fix: hide irrelevant delegation information displayed for inactive stake
* fix: when inactive_stake equals delegated_stake, display as initialized
* refactor: clean up logic
* fix: reverse logic on showDelegation
* fix: change copy to not delegated
2021-04-14 16:26:31 -07:00
39eddfd161
explorer: Token mint histories (token balance and token instructions tabs) ( #15861 )
...
* feat: refactor and introduce balances and instructions tabs for mints
* fix: refactor instruction utilities into common file
* refactor: move transaction history components into one spot
* chore: minor cleanup
* fix: show only token instructions
* fix: use better naming for slugs and paths
* feat: refactor and work on transaction status
* feat: show token transfer details
* fix: format code and remove some extra spaces
* fix: exclude non-mint transfers
* feat: introduce react-moment and reorganize history tables
* feat: reintroduce status columns and reorganize columns
* fix: remove ts-ignore
* feat: refactor history card components
* fix: remove detailed history provider
* fix: filter instructions and inner instructions based on mint
* fix: use better key and report parse error
* fix: remove double spacing
* feat: batch transaction map batches
* fix: remove debug code
* fix: pass proper signatureInfo and reduce batch size to 10
2021-04-14 16:22:40 -07:00
d92721aab9
uses timeouts based on stake for filtering pull responses ( #16549 )
...
filter_pull_responses is using default timeout when discarding pull
responses (except for ContactInfo):
https://github.com/solana-labs/solana/blob/f804ce63c/core/src/crds_gossip_pull.rs#L349-L350
But purging code uses timeouts based on stake:
https://github.com/solana-labs/solana/blob/f804ce63c/core/src/cluster_info.rs#L1867-L1870
So the crds value will not be purged from the sender's table and will be
sent again over the next pull request.
2021-04-14 20:18:00 +00:00
f35a6a8be0
prioritizes contact-infos in pull responses ( #16541 )
...
Expired crds values where the contact-info does not exist are wasted:
https://github.com/solana-labs/solana/blob/f804ce63c/core/src/crds_gossip_pull.rs#L353-L378
and then are sent again over the next pull-request.
Also, the stake of the first response (which can be anything) is used to
weight all pull-responses to a node, while the rest of responses can
have different stake.
https://github.com/solana-labs/solana/blob/f804ce63c/core/src/cluster_info.rs#L2231
2021-04-14 18:45:20 +00:00
ad71e27a0d
Add tao pubkey for testnet ( #16548 )
...
Co-authored-by: Tao Zhu <taozhu@Taos-MacBook-Pro.local >
2021-04-14 12:44:55 -05:00
328e7690f3
Fix sanity test flakiness by prebuilding binaries ( #16530 )
...
* Fix sanity test flakiness by prebuilding binaries
* ignore shellcheck
* bump
* nudge
* simplify
2021-04-15 01:15:06 +08:00
f0c150cfb9
Fix channel panic in tests ( #16503 )
...
* Fix channel panic
* Add exit signal to PohRecorder because Crossbeam doesnt drop objects inside dropped channel
2021-04-14 12:07:21 -05:00
eddfe06a00
Other hostname changes
2021-04-14 09:46:56 -07:00
d684ec00aa
Correct gossip hostname
2021-04-14 09:46:56 -07:00
f804ce63c2
Add --faucet-port option
2021-04-14 08:57:49 -07:00
bd968f7229
chore: bump @babel/preset-env from 7.13.12 to 7.13.15 in /web3.js ( #16450 )
...
Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env ) from 7.13.12 to 7.13.15.
- [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.13.15/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-04-14 12:47:39 +08:00
6382323159
chore: bump @babel/core from 7.13.14 to 7.13.15 in /web3.js ( #16451 )
...
Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core ) from 7.13.14 to 7.13.15.
- [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.13.15/packages/babel-core )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-14 12:47:32 +08:00
a593999f1e
chore: bump @babel/plugin-transform-runtime in /web3.js ( #16452 )
...
Bumps [@babel/plugin-transform-runtime](https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-transform-runtime ) from 7.13.10 to 7.13.15.
- [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.13.15/packages/babel-plugin-transform-runtime )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-14 12:47:26 +08:00
3bfae8e829
Bump scripts to current commitment variants ( #16526 )
2021-04-14 00:50:59 +00:00
74f58376f8
Expand and update instruction count tests ( #16522 )
2021-04-13 16:23:42 -07:00
f7eadd9d70
bump solana_rbpf from 0.2.5 to 0.2.7 ( #16515 )
2021-04-13 14:49:09 -07:00
ccb11a939f
Deprecate RpcClient methods, RpcRequest variants ( #16516 )
...
* Deprecate RpcClient methods, RpcRequest variants
* Update cli to getSupply
2021-04-13 14:05:42 -06:00
17aa45fad1
Remove old way of account hashing
...
Account data hashing used to use different ways of hashing on different
clusters. That is no longer the case, but the old code still existed.
This commit removes that old, now used code.
**NOTE** The golden hash values in bank.rs needed to be updated. Since
the original code that selected the hash algorithm used `if >` instead
of `if >=`, this meant that the genesis block's hash _always_ used the
old hashing method, which is no longer valid.
Validated by running `cargo test` successfully.
2021-04-13 14:42:21 -05:00
5c6b38a83c
Derive PartialEq for RpcStakeActivation
2021-04-13 12:34:22 -07:00
f641429056
Remove blake3 from bpf program dependencies ( #16506 )
2021-04-13 10:06:05 +00:00
37afa00ffb
Rpc: deprecate getConfirmed endpoints ( #16502 )
...
* Deprecate getConfirmed methods in rpc
* Add new methods to docs
* Move deprecated rpc methods to separate docs section
* Add note to docs about removal timing
2021-04-13 01:50:15 -06:00
db3bca7edd
Add llvm feature option to compile for Solana BPF target ( #16495 )
2021-04-13 07:20:18 +00:00
85eb37fab0
Merge pull request from GHSA-8v47-8c53-wwrc
...
* Track transaction check time separately from account loads
* banking packet process metrics
* Remove signature clone in status cache lookup
* Reduce allocations when converting packets to transactions
* Add blake3 hash of transaction messages in status cache
* Bug fixes
* fix tests and run fmt
* Address feedback
* fix simd tx entry verification
* Fix rebase
* Feedback
* clean up
* Add tests
* Remove feature switch and fall back to signature check
* Bump programs/bpf Cargo.lock
* clippy
* nudge benches
* Bump `BankSlotDelta` frozen ABI hash`
* Add blake3 to sdk/programs/Cargo.lock
* nudge bpf tests
* short circuit status cache checks
Co-authored-by: Trent Nelson <trent@solana.com >
2021-04-13 00:28:08 -06:00
70f3f7e679
Move obsolete rpc endpoints to separate api for removal ( #16500 )
...
* Move obsolete rpc methods to separate api for removal
* Remove obsolete method from docs
* Fix test using obs method
2021-04-12 20:33:40 -06:00
05ad979a2d
canonicalize authorized voter filepath
2021-04-12 17:52:55 -07:00
fa83f3bd73
Return sysvars via syscalls ( #16422 )
2021-04-12 16:04:57 -07:00
2229b70c4e
Add authorized-voter add/remove-all commands
2021-04-12 15:55:28 -07:00
17a173ebb5
Clean up build warning
2021-04-12 15:55:28 -07:00
54ef065cc8
Use slot 1 for tests' sample store and accounts
...
Anticipating the removal of the old account hashing way, the Account DB
tests use slot 0 for the sample storages and accounts data. Slot 0 is a
special case, and so to make future changes not break any tests, update
just the tests here now to use any other slot.
The golden hash values were obtained by running `cargo test` and copying
in the "actual" values from the test output into the `raw_expected`
vector of the test code.
Validated by running `cargo test` successfully.
2021-04-12 17:09:07 -05:00
8c498dbf75
Clarify bug bounty payment policy ( #16488 )
...
* Clarify bug bounty payment policy
* Fixup language
* Apply suggestions from code review
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
* Update SECURITY.md
Co-authored-by: publish-docs.sh <maintainers@solana.com >
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2021-04-12 14:53:15 -06:00
fffff2cd75
Add address_cache and exclude loopback from ip limit ( #16487 )
2021-04-12 19:59:38 +00:00
09752a6827
chore:(deps): bump @solana/spl-token-registry in /explorer ( #16490 )
...
Bumps [@solana/spl-token-registry](https://github.com/solana-labs/token-list ) from 0.2.51 to 0.2.55.
- [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.51...v0.2.55 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-12 19:19:42 +00:00
a7f8239b46
Explorer: use identicon and token layout for unlisted tokens ( #16347 )
...
* feat: use identicon and token layout for unlisted tokens
* feat: add identicon to smaller icons and change dependency to current package
* fix: add proper library
2021-04-12 11:25:51 -07:00
105a6bfb46
Replace RootsTracker HashSet ( #16310 )
...
* Replace RootsTracker HashSet
* use bitvec
* cleanup, add brenchmark test
* test cleanup
* add lots of tests
* get rid of demo
* change warp test constant
* get rid of unused function
* pr feedback
* reorder use
* rework get_all to remove range checks
* add tests, fix bugs
2021-04-12 12:11:33 -05:00
78d1d59889
Augment BPF binary dumps to resolve call instruction targets
2021-04-12 18:36:41 +02:00
7ba3e710d3
latest_slot uses > current_max ( #16374 )
2021-04-12 10:52:24 -05:00
6930a77a0f
prepare replace Ancestors HashMap for performance ( #16476 )
2021-04-12 10:51:57 -05:00
2bc19eb51e
chore:(deps): bump @testing-library/user-event in /explorer ( #16483 )
...
Bumps [@testing-library/user-event](https://github.com/testing-library/user-event ) from 13.1.1 to 13.1.2.
- [Release notes](https://github.com/testing-library/user-event/releases )
- [Changelog](https://github.com/testing-library/user-event/blob/master/CHANGELOG.md )
- [Commits](https://github.com/testing-library/user-event/compare/v13.1.1...v13.1.2 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-12 11:10:47 +00:00
a7c7287cc3
chore:(deps): bump @solana/web3.js from 1.2.6 to 1.2.7 in /explorer ( #16481 )
...
Bumps [@solana/web3.js](https://github.com/solana-labs/solana-web3.js ) from 1.2.6 to 1.2.7.
- [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.2.6...v1.2.7 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-12 10:34:46 +00:00
dc7030ffaa
Allow fork choice to support multiple versions of a slot ( #16266 )
2021-04-12 01:00:59 -07:00
ef30943c5c
Fix up App formatting
2021-04-11 22:32:56 -07:00
448d5be79f
docker: Expose all ports in Dockerfile, add back localnet.sh ( #16401 )
...
* docker: Expose all ports in Dockerfile, add back localnet.sh
* Add documentation for where to find containers
* Obliterate script
2021-04-11 21:13:57 +02:00
1d2cae433c
fix: add until param to getConfirmedSignaturesForAddress2 ( #16459 )
2021-04-11 12:20:22 -06:00
278c125d99
Fix account copy step in program test message processor ( #16469 )
2021-04-11 07:59:43 +00:00
99b3aab703
Track gossip vote updates per hash for replay stage ( #16421 )
...
* Track gossip vote updates per hash for replay stage
2021-04-10 17:34:45 -07:00
91d5f6ab30
fix: token holdings summary table sums tokens correctly ( #16464 )
2021-04-10 12:24:56 -07:00
c4646b2bc3
fix: active stake is an epoch off, use getVoteAccounts to sum active stake ( #16465 )
2021-04-10 12:23:56 -07:00
ac5462e7a2
Merge pull request from GHSA-fmvj-vqp5-qqh9
...
* Sanitize permissions
* Forbid creating directories under ledger/rocksdb/
* hardened_unpack: Disallow dirs under rocksdb/ in genesis
* hardened_unpack: expand valid genesis entry test coverage
* hardened_unpack: rework old-style bsd directory entry rejection
Co-authored-by: Ivan Mironov <mironov.ivan@gmail.com >
2021-04-10 00:57:32 -06:00
54a04bac3d
Apple M1 compatibility ( #16346 )
...
Co-authored-by: Christian Drappi <christiandrappi@Christians-MacBook-Pro.local >
2021-04-09 17:21:01 -07:00
8bc0bdd40b
Fill in not-yet-finalized block-time if possible ( #16460 )
2021-04-09 20:25:47 +00:00
22a18a68e3
stops consuming pinned vectors with a recycler ( #16441 )
...
If the vector is pinned and has a recycler, From<PinnedVec>
implementation of Vec should clone (instead of consuming) the underlying
vector so that the next allocation of a PinnedVec will recycle an
already pinned one.
2021-04-09 16:55:24 +00:00
8ec7e2e14f
chore: bump @typescript-eslint/eslint-plugin in /web3.js ( #16416 )
...
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin ) from 4.20.0 to 4.21.0.
- [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.21.0/packages/eslint-plugin )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-09 11:35:26 +08:00
8862dcb4a0
chore:(deps): bump @types/chart.js from 2.9.31 to 2.9.32 in /explorer ( #16435 )
...
Bumps [@types/chart.js](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/chart.js ) from 2.9.31 to 2.9.32.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/chart.js )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-09 11:35:16 +08:00
4704b813ff
chore:(deps): bump typescript from 4.2.3 to 4.2.4 in /explorer ( #16436 )
...
Bumps [typescript](https://github.com/Microsoft/TypeScript ) from 4.2.3 to 4.2.4.
- [Release notes](https://github.com/Microsoft/TypeScript/releases )
- [Commits](https://github.com/Microsoft/TypeScript/commits )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-09 11:35:08 +08:00
b08cff9e77
Simplify some pattern-matches ( #16402 )
...
When those match an exact combinator on Option / Result.
Tool-aided by [comby-rust](https://github.com/huitseeker/comby-rust ).
2021-04-08 12:40:37 -06:00
bb9d2fd07a
Cli: use get_inflation_rewards and limit epochs queried ( #16408 )
...
* Fix block-with-limit when not finalized blocks found
* Enable confirmed commitment in getInflationReward
* Use get_inflation_rewards in cli
* Line up rewards output
* Add range validator
* Change cli epoch arg -> num epochs
* Add solana inflation rewards subcommand
* Consolidate epoch rewards meta
2021-04-08 10:57:33 -06:00
0e262aab3d
simplifies PinnedVec implementation ( #16382 )
2021-04-08 10:40:30 +00:00
3645092a52
chore: bump sinon from 10.0.0 to 10.0.1 in /web3.js ( #16439 )
...
Bumps [sinon](https://github.com/sinonjs/sinon ) from 10.0.0 to 10.0.1.
- [Release notes](https://github.com/sinonjs/sinon/releases )
- [Changelog](https://github.com/sinonjs/sinon/blob/master/CHANGELOG.md )
- [Commits](https://github.com/sinonjs/sinon/compare/v10.0.0...v10.0.1 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-08 09:21:17 +00:00
ce56f1f6f4
chore: bump typescript from 4.2.3 to 4.2.4 in /web3.js ( #16438 )
...
Bumps [typescript](https://github.com/Microsoft/TypeScript ) from 4.2.3 to 4.2.4.
- [Release notes](https://github.com/Microsoft/TypeScript/releases )
- [Commits](https://github.com/Microsoft/TypeScript/commits )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-08 09:06:08 +00:00
8a6a380fe1
chore: bump @types/node-fetch from 2.5.8 to 2.5.10 in /web3.js ( #16437 )
...
Bumps [@types/node-fetch](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node-fetch ) from 2.5.8 to 2.5.10.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node-fetch )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-08 08:55:43 +00:00
e69f37a464
Remove old function: account_balance_for_capitalization ( #16383 )
...
This function currently returns one of its' parameters and is thus useless.
2021-04-07 23:57:40 -05:00
878e52f0b9
Fix cargo-build/test-bpf --workspace ( #16431 )
2021-04-07 17:22:55 -07:00
388ce12207
CI: Let cargo-install-all.sh
resolve stable
2021-04-07 20:24:19 +00:00
42ce2ba069
Use local cargo-test-bpf ( #16427 )
2021-04-07 18:08:55 +00:00
c5c3ae0203
CLI: Fix rent
panic ( #16417 )
...
* CLI: Fix `rent` panic on non-numeric input (+monikers)
* Update cli/src/cluster_query.rs
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
* Update cli/src/cluster_query.rs
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
* Update cli/src/cluster_query.rs
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2021-04-07 09:57:12 -06:00
117860218f
docs: Validator SOL reqs followup
2021-04-07 09:49:52 -06:00
476fd40948
Add program-test tests to bpf programs ( #16407 )
2021-04-07 01:47:15 -07:00
6cd4bc5e60
Speed up net.sh builds ( #16360 )
...
* Speed up net.sh builds
* feedback
* Update net/net.sh
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
* feedback
* fix
Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com >
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2021-04-07 14:45:03 +08:00
02197b1215
chore: bump typedoc from 0.20.34 to 0.20.35 in /web3.js ( #16415 )
...
Bumps [typedoc](https://github.com/TypeStrong/TypeDoc ) from 0.20.34 to 0.20.35.
- [Release notes](https://github.com/TypeStrong/TypeDoc/releases )
- [Commits](https://github.com/TypeStrong/TypeDoc/compare/v0.20.34...v0.20.35 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-07 04:38:39 +00:00
eb2b68b7f2
chore: bump tslib from 2.1.0 to 2.2.0 in /web3.js ( #16413 )
...
Bumps [tslib](https://github.com/Microsoft/tslib ) from 2.1.0 to 2.2.0.
- [Release notes](https://github.com/Microsoft/tslib/releases )
- [Commits](https://github.com/Microsoft/tslib/compare/2.1.0...2.2.0 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-07 04:05:22 +00:00
81323cbccf
chore: bump @typescript-eslint/parser from 4.20.0 to 4.21.0 in /web3.js ( #16412 )
...
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser ) from 4.20.0 to 4.21.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases )
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md )
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.21.0/packages/parser )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-07 04:00:53 +00:00
0e42a35e4f
docs: Add validator SOL reqs
2021-04-07 03:52:52 +00:00
d5b3bcc0b2
chore: bump @types/chai from 4.2.15 to 4.2.16 in /web3.js ( #16366 )
...
Bumps [@types/chai](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/chai ) from 4.2.15 to 4.2.16.
- [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-04-07 11:19:10 +08:00
e19b728fa5
chore: bump rpc-websockets from 7.4.10 to 7.4.11 in /web3.js ( #16367 )
...
Bumps [rpc-websockets](https://github.com/elpheria/rpc-websockets ) from 7.4.10 to 7.4.11.
- [Release notes](https://github.com/elpheria/rpc-websockets/releases )
- [Commits](https://github.com/elpheria/rpc-websockets/compare/v7.4.10...v7.4.11 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-07 11:19:04 +08:00
5b89055e00
chore:(deps): bump @types/chai from 4.2.15 to 4.2.16 in /explorer ( #16370 )
...
Bumps [@types/chai](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/chai ) from 4.2.15 to 4.2.16.
- [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-04-07 11:18:58 +08:00
d26707dd28
chore:(deps): bump classnames from 2.3.0 to 2.3.1 in /explorer ( #16371 )
...
Bumps [classnames](https://github.com/JedWatson/classnames ) from 2.3.0 to 2.3.1.
- [Release notes](https://github.com/JedWatson/classnames/releases )
- [Changelog](https://github.com/JedWatson/classnames/blob/master/HISTORY.md )
- [Commits](https://github.com/JedWatson/classnames/commits )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-07 11:18:52 +08:00
e501fa5f0b
Rpc: introduce get_inflation_reward rpc call ( #16278 )
...
* feat: introduce get_inflation_reward rpc call
* fix: style suggestions
* fix: more style changes and match how other rpc functions are defined
* feat: get reward for a single epoch
* feat: default to the most recent epoch
* fix: don't factor out get_confirmed_block
* style: introduce from impl for RpcEncodingConfigWrapper
* style: bring commitment into variable
* feat: support multiple pubkeys for get_inflation_reward
* feat: add get_inflation_reward to rpc client
* feat: return rewards in order
* fix: rename pubkeys to addresses
* docs: introduce jsonrpc docs for get_inflation_reward
* style: early return in map (not sure which is more idiomatic)
* fix: call the rpc client function args addresses as well
* fix: style
* fix: filter out only addresses we care about
* style: make this more idiomatic
* fix: change rpc client epoch to optional and include some docs edits
* feat: filter out rent rewards in get_inflation_reward
* feat: add option epoch config param to get_inflation_reward
* feat: rpc client get_inflation_reward takes epoch instead of config and some filter staking and voting rewards
2021-04-06 18:10:53 -07:00
92f4018b07
Cleanup unsupported sysvars ( #16390 )
...
* Cleanup unsupported sysvars
* fix ser description
2021-04-06 00:08:03 -07:00
03d3ae1cb9
Faucet: repurpose cap and slice args to apply to single IPs ( #16381 )
...
* Single use stmt
* Log request IP
* Switch cap and slice to apply per IP
* Use SOL in logs, error msgs
* Use thiserror instead of overloading io::Error
* Return memo transaction for requests that exceed per-request-cap
* Handle faucet memos in cli
* Add some docs, esp about memo transaction
* Use SOL symbol & standardize memo
Co-authored-by: Michael Vines <mvines@gmail.com >
* Differentiate faucet tx-length errors
* Populate signature in cli airdrop memo case
Co-authored-by: Michael Vines <mvines@gmail.com >
2021-04-06 07:01:05 +00:00
1219842a96
No wallclock throttle tests ( #16396 )
2021-04-05 19:40:16 -07:00
ae7bc8299d
Use spl-memo v3.0.1 ( #16384 )
...
* Use memo v3.0.1, which simplifies id imports
* tree
2021-04-06 02:06:44 +00:00
9360e57816
Fix build
2021-04-05 17:12:31 -07:00
b71875df61
cluster-info: Get rid of some integer math while we're here
2021-04-06 00:09:37 +00:00
b6b08706b9
cluster-info: Don't subtract non-shred spies from node count
2021-04-06 00:09:37 +00:00
a4f0d8636a
RpcClient no longer panics in a tokio multi-threaded runtime
2021-04-05 16:50:03 -07:00
7a2a39093d
validator: Use a const for wait for supermajority threshold
2021-04-05 17:29:37 -06:00
364af3a3e0
issue #10831 : added --with-memo option to all cli commands that submit ( #16291 )
...
* issue #10831 : added --with-memo option to all cli commands that submit
transactions. Also, improve the block command to show UTF-8 string instead
of integer values for memo program data.
* Fixed tests and changed some syntax according to feedback.
* Use spl_memo id (all versions where applicable) instead of hardcoding id.
* Update Cargo.toml in programs/bpf.
* Update formatting via cargo fmt.
* Update to use spl_memo version 3.0.1, which simplifies package imports
2021-04-05 20:53:50 +00:00
43feef7362
Adjust tokio version to just "1"
2021-04-05 17:13:20 +00:00
95dc7b5449
reduce lock contention on latest_root ( #16306 )
2021-04-05 11:35:14 -05:00
7a997759fa
reduce locking on get_rooted_entries ( #16304 )
2021-04-05 11:26:53 -05:00
b242f82696
Reduce test-validator ledger size
2021-04-05 08:37:29 -07:00
701fc93343
patches bug in banking stage where buffered packets are never retained ( #16276 )
...
banking_stage::handle_forwarding is retaining buffered packets with
empty index, so nothing is held:
https://github.com/solana-labs/solana/blob/6f3926b64/core/src/banking_stage.rs#L520
2021-04-05 12:46:21 +00:00
b521f50278
chore:(deps): bump @solana/web3.js from 1.2.5 to 1.2.6 in /explorer ( #16372 )
...
Bumps [@solana/web3.js](https://github.com/solana-labs/solana-web3.js ) from 1.2.5 to 1.2.6.
- [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.2.5...v1.2.6 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-05 10:37:46 +00:00
d9d6d65959
chore:(deps): bump cross-fetch from 3.1.2 to 3.1.4 in /explorer ( #16369 )
...
Bumps [cross-fetch](https://github.com/lquixada/cross-fetch ) from 3.1.2 to 3.1.4.
- [Release notes](https://github.com/lquixada/cross-fetch/releases )
- [Commits](https://github.com/lquixada/cross-fetch/compare/v3.1.2...v3.1.4 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-05 10:21:55 +00:00
8169c8d320
chore:(deps): bump @solana/spl-token-registry in /explorer ( #16363 )
...
Bumps [@solana/spl-token-registry](https://github.com/solana-labs/token-list ) from 0.2.48 to 0.2.51.
- [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.48...v0.2.51 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-05 13:53:10 +08:00
b8b6777262
Only get Blockstore::last_root once ( #16362 )
2021-04-05 04:14:02 +00:00
a98467b563
chore:(deps): bump @project-serum/serum in /explorer ( #16325 )
...
Bumps [@project-serum/serum](https://github.com/project-serum/serum-ts ) from 0.13.32 to 0.13.33.
- [Release notes](https://github.com/project-serum/serum-ts/releases )
- [Commits](https://github.com/project-serum/serum-ts/commits )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-05 11:05:28 +08:00
a6f4a333e9
chore:(deps): bump @sentry/react from 6.2.4 to 6.2.5 in /explorer ( #16324 )
...
Bumps [@sentry/react](https://github.com/getsentry/sentry-javascript ) from 6.2.4 to 6.2.5.
- [Release notes](https://github.com/getsentry/sentry-javascript/releases )
- [Changelog](https://github.com/getsentry/sentry-javascript/blob/master/CHANGELOG.md )
- [Commits](https://github.com/getsentry/sentry-javascript/compare/6.2.4...6.2.5 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-05 11:05:17 +08:00
1a13d22984
Fixup iterator method ( #16357 )
2021-04-04 23:32:51 +00:00
a679aebc82
wait-for-restart-window works again for unstaked nodes
2021-04-04 16:52:39 +00:00
0596cf5405
Remove unprocessed transactions from log notifications ( #16349 )
2021-04-04 23:44:59 +08:00
1359bceb5d
Bump bpf-tools to version v1.5 ( #16331 )
...
The new version of bpf-tools eliminates the separate
rust-bpf-sysroot. The Rust standard libraries for the BPF target are
built in tree when the compiler is built. The standard libraries code
is slightly more optimized and some reduction of compute budget can be
expected with this version of bpf-tools.
2021-04-04 13:04:22 +00:00
4b7b402e74
fix: allow strings in transaction error validation ( #16348 )
...
* fix: allow strings in transaction error validation
* chore: make log tests more robust
2021-04-04 18:02:36 +08:00
3429785d9b
Wait for 90 percent of stake before starting ( #16340 )
2021-04-03 14:21:20 -07:00
a44c32694f
merkle-tree: Use matches
crate when targeting eBPF
2021-04-03 12:09:36 -06:00
ddc0a16cec
merkle-tree: Get Hash
et. al from program instead of sdk
2021-04-03 12:09:36 -06:00
a1d9b53cd7
merkle-tree: Add Xargo.toml
2021-04-03 12:09:36 -06:00
c8c89dd5f7
wait-for-restart-window now indicates how far away the next restart window is
2021-04-02 22:45:32 -07:00
4e5ef6bce2
Add cluster state verifier logging ( #16330 )
...
* Add cluster state verifier logging
* Add duplicate-slots iterator to ledger tool
2021-04-02 21:48:44 -07:00
e4889220c4
Remove UNSTABLE warning from logsSubscribe
2021-04-02 12:53:42 -07:00
dee655df35
Cleanup use ( #16327 )
2021-04-02 08:54:09 -07:00
9784bbb802
chore: bump @commitlint/config-conventional in /web3.js ( #16323 )
...
Bumps [@commitlint/config-conventional](https://github.com/conventional-changelog/commitlint ) from 12.0.1 to 12.1.1.
- [Release notes](https://github.com/conventional-changelog/commitlint/releases )
- [Changelog](https://github.com/conventional-changelog/commitlint/blob/master/CHANGELOG.md )
- [Commits](https://github.com/conventional-changelog/commitlint/compare/v12.0.1...v12.1.1 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-02 08:51:30 +00:00
a86d74f214
chore: bump @commitlint/travis-cli from 12.0.1 to 12.1.1 in /web3.js ( #16322 )
...
Bumps [@commitlint/travis-cli](https://github.com/conventional-changelog/commitlint ) from 12.0.1 to 12.1.1.
- [Release notes](https://github.com/conventional-changelog/commitlint/releases )
- [Changelog](https://github.com/conventional-changelog/commitlint/blob/master/CHANGELOG.md )
- [Commits](https://github.com/conventional-changelog/commitlint/compare/v12.0.1...v12.1.1 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-02 08:42:50 +00:00
a902505810
Parse SPL associated-token-account instructions ( #16318 )
2021-04-01 22:48:05 +00:00
482b8c6be9
Merge pull request from GHSA-qgrq-w56v-hr62
2021-04-01 09:54:45 -07:00
3996b699dc
read only account cache for executable accounts - improve replay ( #16150 )
...
* read only account cache
* tests
* clippy
* cleanup
* new file, add tests
* remove copy/paste code from test
* remove dead code
* all loads use cache
* remove stale comments
* add metrics logging for read only cache size
* report read only cache hits and misses
* consistency
* formatting
* rename, add comment
* u64
* better interaction with existing cache
* lru list saved between cleans
2021-04-01 07:16:34 -05:00
badf224460
Bump goauth from 0.9.0 to 0.10.0 ( #15738 )
...
Bumps [goauth](https://github.com/durch/rust-goauth ) from 0.9.0 to 0.10.0.
- [Release notes](https://github.com/durch/rust-goauth/releases )
- [Commits](https://github.com/durch/rust-goauth/commits )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-01 19:22:17 +08:00
a8a4027ab8
chore:(deps): bump react and react-dom in /explorer ( #16273 )
...
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.1 to 17.0.2
- [Release notes](https://github.com/facebook/react/releases )
- [Changelog](https://github.com/facebook/react/blob/master/CHANGELOG.md )
- [Commits](https://github.com/facebook/react/commits/v17.0.2/packages/react )
Updates `react-dom` from 17.0.1 to 17.0.2
- [Release notes](https://github.com/facebook/react/releases )
- [Changelog](https://github.com/facebook/react/blob/master/CHANGELOG.md )
- [Commits](https://github.com/facebook/react/commits/v17.0.2/packages/react-dom )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-01 18:38:00 +08:00
4db301f749
chore:(deps): bump classnames from 2.2.6 to 2.3.0 in /explorer ( #16298 )
...
Bumps [classnames](https://github.com/JedWatson/classnames ) from 2.2.6 to 2.3.0.
- [Release notes](https://github.com/JedWatson/classnames/releases )
- [Changelog](https://github.com/JedWatson/classnames/blob/master/HISTORY.md )
- [Commits](https://github.com/JedWatson/classnames/compare/v2.2.6...v2.3.0 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-01 09:02:58 +00:00
8dac9c3634
chore: bump rpc-websockets from 7.4.9 to 7.4.10 in /web3.js ( #16297 )
...
Bumps [rpc-websockets](https://github.com/elpheria/rpc-websockets ) from 7.4.9 to 7.4.10.
- [Release notes](https://github.com/elpheria/rpc-websockets/releases )
- [Commits](https://github.com/elpheria/rpc-websockets/compare/v7.4.9...v7.4.10 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-01 08:58:52 +00:00
aa45e81b3e
nit: fix variable names ( #16283 )
2021-03-31 23:18:29 -07:00
da27acabcc
Rpc: enable getConfirmedSignaturesForAddress2 to return confirmed (not yet finalized) data ( #16281 )
...
* Update blockstore method to allow return of unfinalized signature
* Support confirmed sigs in getConfirmedSignaturesForAddress2
* Add deprecated comments
* Update docs
* Enable confirmed transaction-history in cli
* Return real confirmation_status; fill in not-yet-finalized block time if possible
2021-04-01 04:35:57 +00:00
18bd47dbe1
Rpc: fix getConfirmedTransaction slot ( #16288 )
...
* Fix transaction blockstore apis
* Update blockstore apis in rpc
2021-03-31 21:04:00 -06:00
3f63ed9a72
removes OrderedIterator and transaction batch iteration order ( #16153 )
...
In TransactionBatch,
https://github.com/solana-labs/solana/blob/e50f59844/runtime/src/transaction_batch.rs#L4-L11
lock_results[i] is aligned with transactions[iteration_order[i]]:
https://github.com/solana-labs/solana/blob/e50f59844/runtime/src/bank.rs#L2414-L2424
https://github.com/solana-labs/solana/blob/e50f59844/runtime/src/accounts.rs#L788-L817
However load_and_execute_transactions is iterating over
lock_results[iteration_order[i]]
https://github.com/solana-labs/solana/blob/e50f59844/runtime/src/bank.rs#L2878-L2889
and then returning i as for the index of the retryable transaction.
If iteratorion_order is [1, 2, 0], and i is 0, then:
lock_results[iteration_order[i]] = lock_results[1]
which corresponds to
transactions[iteration_order[1]] = transactions[2]
so neither i = 0, nor iteration_order[i] = 1 gives the correct index for the
corresponding transaction (which is 2).
This commit removes OrderedIterator and transaction batch iteration order
entirely. There is only one place in blockstore processor which the
iteration order is not ordinal:
https://github.com/solana-labs/solana/blob/e50f59844/ledger/src/blockstore_processor.rs#L269-L271
It seems like, instead of using an iteration order, that can shuffle entry
transactions in-place.
2021-03-31 23:59:19 +00:00
ad7f8e7f23
Use more performant copy ( #16282 )
2021-03-31 16:52:58 -07:00
416312b30b
update timings only on outer call ( #16275 )
...
* update timings only on outer call
* test & format
2021-03-31 18:02:59 -05:00
c723251575
Update overview.md
...
fix link which was broken/wrong
2021-03-31 14:39:52 -07:00
f374b35944
Hash stored accounts in bg ( #16157 )
...
* lazy calculate account hash
* push to bg thread
* remove deadlock
* logs
* format
* some cleanup on aisle 9
* format, fix up some metrics
* fix test, remove legacy function only there for tests
* cleanup
* remove unused store_hasher
* Switch to crossbeam
* clippy
* format
* use iter()
* rework from feedback
* hash_slot -> slot
* hash(cluster_type)
Co-authored-by: Carl Lin <carl@solana.com >
2021-03-31 15:39:34 -05:00
6f3926b643
chore:(deps): bump @solana/web3.js from 1.2.3 to 1.2.5 in /explorer ( #16274 )
...
Bumps [@solana/web3.js](https://github.com/solana-labs/solana-web3.js ) from 1.2.3 to 1.2.5.
- [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.2.3...v1.2.5 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-31 22:16:46 +08:00
d0793aa1f0
chore:(deps): bump @project-serum/serum in /explorer ( #16271 )
...
Bumps [@project-serum/serum](https://github.com/project-serum/serum-ts ) from 0.13.31 to 0.13.32.
- [Release notes](https://github.com/project-serum/serum-ts/releases )
- [Commits](https://github.com/project-serum/serum-ts/commits )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-31 14:12:35 +00:00
a5dcee254d
get rid of unnecessary data copy ( #16214 )
...
* get rid of unnecessary data copy
* preserve rent_epoch
2021-03-31 09:11:39 -05:00
e57975de26
chore:(deps): bump superstruct from 0.14.2 to 0.15.1 in /explorer ( #16269 )
...
Bumps [superstruct](https://github.com/ianstormtaylor/superstruct ) from 0.14.2 to 0.15.1.
- [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.14.2...v0.15.1 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-31 13:58:19 +00:00
c6a97e8eff
chore:(deps): bump @types/react-dom from 17.0.2 to 17.0.3 in /explorer ( #16265 )
...
Bumps [@types/react-dom](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-dom ) from 17.0.2 to 17.0.3.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-dom )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-31 21:48:25 +08:00
e8620dea54
chore:(deps): bump @sentry/react from 6.2.2 to 6.2.4 in /explorer ( #16264 )
...
Bumps [@sentry/react](https://github.com/getsentry/sentry-javascript ) from 6.2.2 to 6.2.4.
- [Release notes](https://github.com/getsentry/sentry-javascript/releases )
- [Changelog](https://github.com/getsentry/sentry-javascript/blob/master/CHANGELOG.md )
- [Commits](https://github.com/getsentry/sentry-javascript/compare/6.2.2...6.2.4 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-31 21:48:19 +08:00
e27cfa0781
chore:(deps): bump react-select from 4.2.1 to 4.3.0 in /explorer ( #16268 )
...
Bumps [react-select](https://github.com/JedWatson/react-select ) from 4.2.1 to 4.3.0.
- [Release notes](https://github.com/JedWatson/react-select/releases )
- [Changelog](https://github.com/JedWatson/react-select/blob/master/docs/CHANGELOG.md )
- [Commits](https://github.com/JedWatson/react-select/compare/react-select@4.2.1...react-select@4.3.0 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-31 11:01:56 +00:00
b0f4e2b738
chore: update doc comments ( #16267 )
2021-03-31 10:48:41 +00:00
d0e3aae39f
chore:(deps): bump @testing-library/jest-dom in /explorer ( #16263 )
...
Bumps [@testing-library/jest-dom](https://github.com/testing-library/jest-dom ) from 5.11.9 to 5.11.10.
- [Release notes](https://github.com/testing-library/jest-dom/releases )
- [Changelog](https://github.com/testing-library/jest-dom/blob/main/CHANGELOG.md )
- [Commits](https://github.com/testing-library/jest-dom/compare/v5.11.9...v5.11.10 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-31 17:58:13 +08:00
19f21b595a
fix: fix Buffer shim compatibility in browser ( #16262 )
2021-03-31 17:51:27 +08:00
3e22f61ecf
chore:(deps): bump @types/node from 14.14.35 to 14.14.37 in /explorer ( #16260 )
...
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node ) from 14.14.35 to 14.14.37.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-31 09:13:30 +00:00
663abbdd16
chore:(deps): bump @solana/spl-token-registry in /explorer ( #16259 )
...
Bumps [@solana/spl-token-registry](https://github.com/solana-labs/token-list ) from 0.2.47 to 0.2.48.
- [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.47...v0.2.48 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-31 09:08:07 +00:00
d474eadf7b
chore:(deps): bump @testing-library/react in /explorer ( #16258 )
...
Bumps [@testing-library/react](https://github.com/testing-library/react-testing-library ) from 11.2.5 to 11.2.6.
- [Release notes](https://github.com/testing-library/react-testing-library/releases )
- [Changelog](https://github.com/testing-library/react-testing-library/blob/master/CHANGELOG.md )
- [Commits](https://github.com/testing-library/react-testing-library/compare/v11.2.5...v11.2.6 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-31 09:03:42 +00:00
493d461c89
chore: bump @solana/spl-token from 0.1.2 to 0.1.3 in /web3.js ( #16257 )
...
Bumps [@solana/spl-token](https://github.com/solana-labs/solana-program-library ) from 0.1.2 to 0.1.3.
- [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.2...@solana/spl-token@v0.1.3 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-31 08:57:47 +00:00
bcd89dd34c
Fix BPF ELF layout ( #16256 )
...
* Fix BPF ELF layout
* whitespace
2021-03-31 08:51:19 +00:00
2c94c6f8e8
fix: handle empty rpc batch requests properly ( #16254 )
2021-03-31 15:15:04 +08:00
c344702fa0
fix: revert usage of toBytes to fix compatibility ( #16253 )
2021-03-31 14:51:41 +08:00
67b747938f
Helpful const and Arg doc ( #16248 )
2021-03-31 05:11:38 +00:00
700ebde474
Update SECURITY.md
...
Co-authored-by: Michael Vines <mvines@gmail.com >
2021-03-30 22:41:56 -06:00
e9e46ff521
security policy: Add out-of-scope section
2021-03-30 22:41:56 -06:00
1ecde67078
docs: explain reasons of non-obvious disableCache ( #16246 )
2021-03-31 13:10:14 +09:00
aac18d7564
Validator monitor now displays the max retransmit slot
2021-03-30 18:58:32 -07:00
2a1639836a
Add get_max_retransmit_slot/get_max_shred_insert_slot to RpcClient
2021-03-30 23:52:47 +00:00
c70674a616
debug run-sanity.sh ( #16163 )
2021-03-30 15:51:14 -07:00
7db3af647b
Update retransmit docs to move deshredder and rename ( #16229 )
...
deshredder into something else
2021-03-30 15:37:33 -07:00
2bcfbad653
docs: Reduce airdrop examples to 1 SOL
2021-03-30 21:28:42 +00:00
ce7f7c2b6c
Align ProcessInstruction error handling ( #16232 )
2021-03-30 13:41:04 -07:00
f84e88f0a2
Cleanup nits ( #16211 )
2021-03-30 12:16:21 -07:00
54c68ea83f
Drop write lock on sysvars ( #15497 )
...
* Drop write lock on sysvars
* adds env var for demoting sysvar write lock demotion
* moves demote logic to is_writable
* feature gates sysvar write lock demotion
* adds builtins to write lock demotion
* adds system program id to builtins
* adds Feature111...
* adds an abi-freeze test
* mvines set of builtin program keys
Co-authored-by: Michael Vines <mvines@gmail.com >
* update tests
* adds bpf loader keys
* Add test sysvar
* Plumb demote_sysvar to is_writable
* more plumbing of demote_sysvar_write_locks to is_writable
* patches test_program_bpf_instruction_introspection
* hard codes demote_sysvar_write_locks to false for serialization/encoding methods
* Revert "hard codes demote_sysvar_write_locks to false for serialization/encoding methods"
This reverts commit ae3e2d2e777437bddd753933097a210dcbc1b1fc.
* change the hardcoded ones to demote_sysvar_write_locks=true
* Use data_as_mut_slice
Co-authored-by: behzad nouri <behzadnouri@gmail.com >
Co-authored-by: Michael Vines <mvines@gmail.com >
2021-03-30 10:05:09 -07:00
527adbed34
Add channel version check
2021-03-30 08:46:32 -07:00
414c7070cb
poll checking for new record in poh service after every batch of hashes instead of busy waiting ( #16167 )
...
* poll waiting in poh service after every batch of hashes
* clippy
2021-03-30 10:34:21 -05:00
f4f2e781ff
get rid of data copy ( #16210 )
...
* get rid of data copy
* format
2021-03-30 10:33:46 -05:00
28a6424f38
chore:(deps): bump @solana/spl-token-registry in /explorer ( #16226 )
...
Bumps [@solana/spl-token-registry](https://github.com/solana-labs/token-list ) from 0.2.38 to 0.2.47.
- [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.38...v0.2.47 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-30 22:00:01 +08:00
031bacbc48
chore:(deps): bump @project-serum/serum in /explorer ( #16069 )
...
Bumps [@project-serum/serum](https://github.com/project-serum/serum-ts ) from 0.13.27 to 0.13.31.
- [Release notes](https://github.com/project-serum/serum-ts/releases )
- [Commits](https://github.com/project-serum/serum-ts/commits )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-30 21:43:30 +08:00
f2133af9ac
chore:(deps): bump cross-fetch from 3.1.1 to 3.1.2 in /explorer ( #16054 )
...
Bumps [cross-fetch](https://github.com/lquixada/cross-fetch ) from 3.1.1 to 3.1.2.
- [Release notes](https://github.com/lquixada/cross-fetch/releases )
- [Commits](https://github.com/lquixada/cross-fetch/compare/v3.1.1...v3.1.2 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-30 21:42:51 +08:00
e5300c1c05
chore:(deps): bump @types/jest from 26.0.21 to 26.0.22 in /explorer ( #16225 )
...
Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest ) from 26.0.21 to 26.0.22.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-30 13:33:50 +00:00
8d8ed5e9fe
chore:(deps): bump @testing-library/user-event in /explorer ( #16224 )
...
Bumps [@testing-library/user-event](https://github.com/testing-library/user-event ) from 13.0.2 to 13.1.1.
- [Release notes](https://github.com/testing-library/user-event/releases )
- [Changelog](https://github.com/testing-library/user-event/blob/master/CHANGELOG.md )
- [Commits](https://github.com/testing-library/user-event/compare/v13.0.2...v13.1.1 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-30 13:19:38 +00:00
fc4ca34238
chore: bump rollup from 2.43.1 to 2.44.0 in /web3.js ( #16216 )
...
Bumps [rollup](https://github.com/rollup/rollup ) from 2.43.1 to 2.44.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.43.1...v2.44.0 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-30 20:58:06 +08:00
a8a817c713
chore: bump @babel/register from 7.13.8 to 7.13.14 in /web3.js ( #16222 )
...
Bumps [@babel/register](https://github.com/babel/babel/tree/HEAD/packages/babel-register ) from 7.13.8 to 7.13.14.
- [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.13.14/packages/babel-register )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-30 20:57:50 +08:00
03498f2288
explorer: Bump web3 to v1.2.3 ( #16223 )
2021-03-30 20:57:33 +08:00
c959c5daf7
fix: add explicit module declaration to type definitions ( #16219 )
2021-03-30 20:16:31 +08:00
54cb16d99b
chore: bump @babel/core from 7.13.13 to 7.13.14 in /web3.js ( #16221 )
...
Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core ) from 7.13.13 to 7.13.14.
- [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.13.14/packages/babel-core )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-30 12:04:22 +00:00
ba377b7364
chore: bump @typescript-eslint/eslint-plugin in /web3.js ( #16220 )
...
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin ) from 4.19.0 to 4.20.0.
- [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.20.0/packages/eslint-plugin )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-30 11:42:48 +00:00
ca222167ef
chore: bump @typescript-eslint/parser from 4.19.0 to 4.20.0 in /web3.js ( #16215 )
...
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser ) from 4.19.0 to 4.20.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases )
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md )
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.20.0/packages/parser )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-30 11:31:51 +00:00
cd6df35e1a
chore: bump @solana/spl-token from 0.0.13 to 0.1.2 in /web3.js ( #16217 )
...
Bumps [@solana/spl-token](https://github.com/solana-labs/solana-program-library ) from 0.0.13 to 0.1.2.
- [Release notes](https://github.com/solana-labs/solana-program-library/releases )
- [Commits](https://github.com/solana-labs/solana-program-library/commits/@solana/spl-token@v0.1.2 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-30 19:18:30 +08:00
5eff23db0c
TransactionRecorder uses unique channel so we can use Recv instead of RecvTimeout ( #16195 )
...
* time
* new channel each call
* new channel every time
2021-03-30 00:51:35 -05:00
9ba9d2a8ae
Allow incomplete features in frozen-abi
2021-03-30 02:32:53 +00:00
1d145e1fc2
Add handling to close accounts to many-accounts bench ( #16199 )
...
* gitignore farf
* Improve cli args
* Use derived addresses for accounts
* Add parameter to close every nth account created
2021-03-29 15:30:00 -06:00
3977ed5c82
Future-aware enum name
2021-03-29 14:58:05 -06:00
60ed8e2892
Rpc: enable getConfirmedBlocks and getConfirmedBlocksWithLimit to return confirmed (not yet finalized) data ( #16161 )
...
* Add commitment config capabilities
* Use rpc limit if no end_slot provided
* Limit to actually finalized blocks
* Support confirmed blocks in getConfirmedBlocks and getConfirmedBlocksWithLimit
* Update docs
* Add client plumbing
* Rename config enum
2021-03-29 12:41:31 -06:00
4e7bd45d4c
Derive PartialEq for StakeActivationState
2021-03-29 17:03:27 +00:00
a6b7dcb3c6
fix: fix static properties in flow type declaration
2021-03-29 23:12:19 +08:00
5f46ef7adc
chore: bump @rollup/plugin-replace from 2.4.1 to 2.4.2 in /web3.js ( #16192 )
...
Bumps [@rollup/plugin-replace](https://github.com/rollup/plugins ) from 2.4.1 to 2.4.2.
- [Release notes](https://github.com/rollup/plugins/releases )
- [Commits](https://github.com/rollup/plugins/compare/replace-v2.4.1...replace-v2.4.2 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-29 12:18:07 +00:00
de9ba0f306
chore: bump @types/node from 14.14.36 to 14.14.37 in /web3.js ( #16191 )
...
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node ) from 14.14.36 to 14.14.37.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-29 12:04:22 +00:00
02c0664487
fix: post process generated flow definition
2021-03-29 20:00:00 +08:00
dfbca76a76
chore: bump rollup from 2.42.4 to 2.43.1 in /web3.js ( #16189 )
...
Bumps [rollup](https://github.com/rollup/rollup ) from 2.42.4 to 2.43.1.
- [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.42.4...v2.43.1 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-29 11:39:35 +00:00
a04c09c030
chore: bump @babel/core from 7.13.10 to 7.13.13 in /web3.js ( #16188 )
...
Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core ) from 7.13.10 to 7.13.13.
- [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.13.13/packages/babel-core )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-29 11:15:41 +00:00
44e3445a4d
fix: strip internal types from external declaration
2021-03-29 19:05:53 +08:00
69a4059da0
chore: bump @rollup/plugin-node-resolve in /web3.js ( #16187 )
...
Bumps [@rollup/plugin-node-resolve](https://github.com/rollup/plugins ) from 11.2.0 to 11.2.1.
- [Release notes](https://github.com/rollup/plugins/releases )
- [Commits](https://github.com/rollup/plugins/compare/node-resolve-v11.2.0...node-resolve-v11.2.1 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-29 11:01:26 +00:00
d78f2e55d7
chore: bump eslint from 7.22.0 to 7.23.0 in /web3.js ( #16186 )
...
Bumps [eslint](https://github.com/eslint/eslint ) from 7.22.0 to 7.23.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.22.0...v7.23.0 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-29 10:28:29 +00:00
5834346aa2
chore: bump @rollup/plugin-commonjs from 17.1.0 to 18.0.0 in /web3.js ( #16185 )
...
Bumps [@rollup/plugin-commonjs](https://github.com/rollup/plugins ) from 17.1.0 to 18.0.0.
- [Release notes](https://github.com/rollup/plugins/releases )
- [Commits](https://github.com/rollup/plugins/compare/commonjs-v17.1.0...commonjs-v18.0.0 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-29 10:21:41 +00:00
a622198235
feat: add PublicKey.toBytes and fix buffer incompatibility
2021-03-29 14:32:35 +08:00
abada56ba1
Print the rust version when building bpf programs ( #16181 )
2021-03-29 14:17:08 +08:00
5e5b63712b
Status cache improvements ( #16174 )
2021-03-28 19:10:14 -07:00
27ab415ecc
Fix handling of invoked ix accounts in program-test ( #16170 )
2021-03-29 08:42:11 +08:00
e50f598449
Implement mnemonic support for solana-keygen grind (solana-labs#9325) ( #16108 )
...
* Implement mnemonic support for solana-keygen grind (solana-labs#9325)
* Updated to include feedback from review.
* Renaming as per review feedback
* Fixed an incorrectly transcribed underscore
* Properly re-use string constants.
2021-03-27 23:47:50 -06:00
aabe186e3f
sdk: Use u32::MAX from std to unbreak BPF builds ( #16171 )
2021-03-27 15:53:25 +00:00
16e4ccca13
Switch to a single use
2021-03-26 22:33:12 -07:00
5791b95b17
Add RpcClient::get_stake_activation()
2021-03-26 20:18:16 -07:00
60b4771fc6
Only print skipped leader slot message when the node is actually leader ( #16156 )
...
Also, check vote signature after the vote is signed
2021-03-26 17:45:53 -07:00
433f1ead1c
Rpc: enable getConfirmedBlock and getConfirmedTransaction to return confirmed (not yet finalized) data ( #16142 )
...
* Add Blockstore block and tx apis that allow unrooted responses
* Add TransactionStatusMessage, and send on bank freeze; also refactor TransactionStatusSender
* Track highest slot with tx-status writes complete
* Rename and unpub fn
* Add commitment to GetConfirmed input configs
* Support confirmed blocks in getConfirmedBlock
* Support confirmed txs in getConfirmedTransaction
* Update sigs-for-addr2 comment
* Enable confirmed block in cli
* Enable confirmed transaction in cli
* Review comments
* Rename blockstore method
2021-03-26 16:47:35 -06:00
cffa851e0f
sdk: Add try_from_slice_unchecked for Borsh ( #16098 )
...
* sdk: Add try_from_slice_unchecked for Borsh
* Add tests
* Rename + clarify comment
* Rename back to unchecked
2021-03-26 23:37:35 +01:00
658ddd1c9c
Bump bpf-tools to version v1.4 ( #16152 )
2021-03-26 19:21:41 +00:00
4f4cffbd03
Throttle PoH ticks by cumulative slot time ( #16139 )
...
* Throttle PoH ticks by cumulative slot time
* respond to pr feedback
* saturating sub
* updated comment
2021-03-26 18:54:16 +00:00
a1f1f573d5
hotfix: account for custom endpoint possible conditions in stakehistory ( #16151 )
2021-03-26 17:54:53 +00:00
d2e4503be2
chore: bump @types/node from 14.14.35 to 14.14.36 in /web3.js ( #16148 )
...
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node ) from 14.14.35 to 14.14.36.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-26 08:31:58 +00:00
06ac0fe9a3
increase timeout in TransactionRecorder.record ( #16133 )
2021-03-25 21:31:07 -05:00
b99ae8f334
Skip leader slots until a vote lands ( #15607 )
2021-03-25 18:54:51 -07:00
b041b55028
makes test_pull_request_time_pruning smaller ( #16128 )
2021-03-25 22:44:43 +00:00
2a1ac97391
fix: test heroku slugignore for explorer ( #16141 )
2021-03-25 15:22:00 -07:00
bf6b098c75
Explorer: add color to price change and updated at time ( #16140 )
...
* feat: add color to price change and updated at
* feat: add market cap rank
* fix: rename slug ignore
2021-03-25 21:50:47 +00:00
9b94741290
Fix test_replay_commitment_cache ( #16131 )
2021-03-25 21:16:39 +00:00
d3d6d8fb78
fix: reduce heroku slug size ( #16138 )
2021-03-25 13:05:55 -07:00
e817a6db00
Add timeout for local cluster partition tests ( #16123 )
...
* Add timeout for local cluster partition tests
* fix optimistic conf test logs
* Bump instruction count assertions
2021-03-25 13:27:07 -06:00
07273bfa9e
Show bpf-tools download progress
2021-03-25 12:23:51 -07:00
a15790c9aa
fix: make new stats card look okay on mobile ( #16132 )
2021-03-25 18:52:28 +00:00
2aea35281e
Explorer: introduce circulating supply, active stake, and price on cluster stats page ( #16095 )
...
* feat: add styles form staking component
* feat: introduce circulating supply, active stake, and price on cluster stats page
* feat: add an error state for coingecko
2021-03-25 09:59:50 -07:00
66c42f62d8
make AccountSharedData.data private to abstract storage ( #16091 )
...
* format
* 2 more tests
* use
2021-03-25 11:04:20 -05:00
43a116a84e
chore: stop building on npm prepare ( #16126 )
2021-03-25 19:06:29 +08:00
ed828dae88
fix: update transitive elliptic dependency ( #16125 )
2021-03-25 19:06:20 +08:00
a7b024639e
chore: bump @babel/preset-env from 7.13.10 to 7.13.12 in /web3.js ( #16082 )
...
Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env ) from 7.13.10 to 7.13.12.
- [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.13.12/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-03-25 19:05:51 +08:00
602d0ca52d
chore: modify https test and add run-all dep ( #16124 )
2021-03-25 17:18:00 +08:00
cc980cb638
chore: bump typedoc from 0.20.33 to 0.20.34 in /web3.js ( #16122 )
...
Bumps [typedoc](https://github.com/TypeStrong/TypeDoc ) from 0.20.33 to 0.20.34.
- [Release notes](https://github.com/TypeStrong/TypeDoc/releases )
- [Commits](https://github.com/TypeStrong/TypeDoc/compare/v0.20.33...v0.20.34 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-25 08:59:42 +00:00
06886f4e4c
chore: bump rollup from 2.42.3 to 2.42.4 in /web3.js ( #16120 )
...
Bumps [rollup](https://github.com/rollup/rollup ) from 2.42.3 to 2.42.4.
- [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.42.3...v2.42.4 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-25 08:38:33 +00:00
52703badfa
Setup ReplayStage confirmation scaffolding for duplicate slots ( #9698 )
2021-03-24 23:41:52 -07:00
6d5c6c17c5
Simplify account.rent_epoch handling for sysvar rent ( #16049 )
...
* Add some code for special local testing
* Add comment to store_account_and_update_capitalization
* Simplify account.rent_epoch handling for sysvar rent
* Introduce *_for_test functions
* Add deprecation messages to existing api
2021-03-25 15:23:20 +09:00
7f0ac6a67c
clap-utils: Allow NullSigner
s outside sign-only mode
2021-03-25 05:45:21 +00:00
8b3de72e2a
program: Correct clamp in Message::signer_keys()
2021-03-24 23:27:24 -06:00
6bc858a888
Refactored ShortU16Visitor::visit_seq() to reject overflows, extra leading zeros and ensure one-to-one encoding.
2021-03-24 21:53:35 -06:00
9153cb9237
sdk: ShortU16 - rename variables for clarity
...
ShortU16's implementation embeds its usage as the length of a
ShortVec, confusingly referring to both a 'len' and a 'size'
at the same time.
2021-03-24 21:53:35 -06:00
cc6dcb48d4
sdk: Add ShortU16 deser test
2021-03-24 21:53:35 -06:00
b7aa366758
Remove stake-o-matic
2021-03-24 20:09:04 -07:00
a8ef29df27
Support getBlockTime for unfinalized blocks ( #16103 )
2021-03-24 20:52:08 -06:00
26af2d4c26
Up store limit for test_account_grow ( #16099 )
...
There can be more than 5 stores
2021-03-24 15:24:17 -07:00
ad47c63f27
Add Exodus as Solana Mobile app option ( #16100 )
...
* Add Exodus as Solana Mobile app option
* Update docs/src/wallet-guide/apps.md
Co-authored-by: Michael Vines <mvines@gmail.com >
2021-03-24 21:09:20 +00:00
96ccc40f0a
Set ticks_per_slot higher for banking stage tests ( #16094 )
...
Tests are timing out because the bank hit the MaxTickHeight and
will not process the transactions.
2021-03-24 14:05:43 -07:00
db3eecf1e9
set target hash/sec to half of capability for auto ( #16096 )
2021-03-24 14:48:38 -05:00
f68860a643
poh record metrics ( #16092 )
2021-03-24 14:48:32 -05:00
a6c23648cb
limits CrdsGossipPull::pull_request_time size ( #15793 )
...
There is no pruning logic on CrdsGossipPull::pull_request_time
https://github.com/solana-labs/solana/blob/79ac1997d/core/src/crds_gossip_pull.rs#L172-L174
potentially allowing this to take too much memory.
Additionally, CrdsGossipPush::last_pushed_to is pruning recent push
timestamps:
https://github.com/solana-labs/solana/blob/79ac1997d/core/src/crds_gossip_push.rs#L275-L279
instead of the older ones.
Co-authored-by: Nathan Hawkins <utsl@utsl.org >
2021-03-24 18:33:56 +00:00
7aa65831bc
fix: token registry avoids custom slug ( #16093 )
2021-03-24 16:08:47 +00:00
570fd3f810
makes turbine peer computation consistent between broadcast and retransmit ( #14910 )
...
get_broadcast_peers is using tvu_peers:
https://github.com/solana-labs/solana/blob/84e52b606/core/src/broadcast_stage.rs#L362-L370
which is potentially inconsistent with retransmit_peers:
https://github.com/solana-labs/solana/blob/84e52b606/core/src/cluster_info.rs#L1332-L1345
Also, the leader does not include its own contact-info when broadcasting
shreds:
https://github.com/solana-labs/solana/blob/84e52b606/core/src/cluster_info.rs#L1324
but on the retransmit side, slot leader is removed only _after_ neighbors and
children are computed:
https://github.com/solana-labs/solana/blob/84e52b606/core/src/retransmit_stage.rs#L383-L384
So the turbine broadcast tree is different between the two stages.
This commit:
* Removes retransmit_peers. Broadcast and retransmit stages will use tvu_peers
consistently.
* Retransmit stage removes slot leader _before_ computing children and
neighbors.
2021-03-24 13:34:48 +00:00
664ed76523
Bump bpf-tools to version v1.3 ( #16068 )
...
* Bump bpf-tools to version v1.3
This brings in the fix for increased compute budget that wasn't caught
when bpf-tools v1.2 were released.
* Adjust BPF test programs instruction counts
2021-03-24 07:16:38 +00:00
17dca6da6a
chore: bump rollup-plugin-flat-dts from 1.1.0 to 1.2.0 in /web3.js ( #16087 )
...
Bumps [rollup-plugin-flat-dts](https://github.com/run-z/rollup-plugin-flat-dts ) from 1.1.0 to 1.2.0.
- [Release notes](https://github.com/run-z/rollup-plugin-flat-dts/releases )
- [Commits](https://github.com/run-z/rollup-plugin-flat-dts/compare/v1.1.0...v1.2.0 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-24 05:13:09 +00:00
560baa3296
chore: bump @typescript-eslint/parser from 4.18.0 to 4.19.0 in /web3.js ( #16086 )
...
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser ) from 4.18.0 to 4.19.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases )
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md )
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.19.0/packages/parser )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-24 04:57:22 +00:00
665af3d26b
chore: bump rollup from 2.42.0 to 2.42.3 in /web3.js ( #16085 )
...
Bumps [rollup](https://github.com/rollup/rollup ) from 2.42.0 to 2.42.3.
- [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.42.0...v2.42.3 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-24 04:43:16 +00:00
6f831edfb4
chore: bump @typescript-eslint/eslint-plugin in /web3.js ( #16084 )
...
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin ) from 4.18.0 to 4.19.0.
- [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.19.0/packages/eslint-plugin )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-24 04:11:00 +00:00
812a86f217
chore: bump sinon from 9.2.4 to 10.0.0 in /web3.js ( #16083 )
...
Bumps [sinon](https://github.com/sinonjs/sinon ) from 9.2.4 to 10.0.0.
- [Release notes](https://github.com/sinonjs/sinon/releases )
- [Changelog](https://github.com/sinonjs/sinon/blob/master/CHANGELOG.md )
- [Commits](https://github.com/sinonjs/sinon/compare/v9.2.4...v10.0.0 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-24 03:48:32 +00:00
8c732268f5
chore: bump typedoc from 0.20.32 to 0.20.33 in /web3.js ( #16053 )
...
Bumps [typedoc](https://github.com/TypeStrong/TypeDoc ) from 0.20.32 to 0.20.33.
- [Release notes](https://github.com/TypeStrong/TypeDoc/releases )
- [Commits](https://github.com/TypeStrong/TypeDoc/compare/v0.20.32...v0.20.33 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-24 11:07:24 +08:00
c38936011e
chore: bump @types/mocha from 8.2.1 to 8.2.2 in /web3.js ( #16052 )
...
Bumps [@types/mocha](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/mocha ) from 8.2.1 to 8.2.2.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/mocha )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-24 11:07:09 +08:00
d6ef694139
feat: add logs subscription ( #16045 )
...
* feat: logs subscription
* fix: address review comments
* fix: use processed commitment
* fix: sleep before triggering log transaction
2021-03-24 11:05:17 +08:00
afbd09062d
use certbot from apt not snap ( #16081 )
2021-03-23 22:22:47 +00:00
2d24d13046
AccountsSharedData: data copy on write ( #15800 )
...
* Arc<AccountData>
* try custom serializer
* adapt test from Behzad's change
* clippy
* simplify serialization
* remove abi example derive
* refactor 'take'
* remove serialization
* remove serialize calls
* remove account_data
* remove intos
* remove left over file
2021-03-23 15:19:31 -05:00
6f5d8d18e9
remove new alloc on deserialization ( #15636 )
2021-03-23 14:52:59 -05:00
e7fd7d46cf
rpc: add getSlotLeaders method ( #16057 )
2021-03-23 17:48:54 +00:00
4f82b897bc
buffers data shreds to make larger erasure coded sets ( #15849 )
...
Broadcast stage batches up to 8 entries:
https://github.com/solana-labs/solana/blob/79280b304/core/src/broadcast_stage/broadcast_utils.rs#L26-L29
which will be serialized into some number of shreds and chunked into FEC
sets of at most 32 shreds each:
https://github.com/solana-labs/solana/blob/79280b304/ledger/src/shred.rs#L576-L597
So depending on the size of entries, FEC sets can be small, which may
aggravate loss rate.
For example 16 FEC sets of 2:2 data/code shreds each have higher loss
rate than one 32:32 set.
This commit broadcasts data shreds immediately, but also buffers them
until it has a batch of 32 data shreds, at which point 32 coding shreds
are generated and broadcasted.
2021-03-23 14:52:38 +00:00
57ba86c821
eliminate lock on record ( #15929 )
...
* eliminate lock on record
* use same error as MaxHeightReached
* clippy
* review feedback
* refactor should_tick code
* pr feedback
2021-03-23 09:10:04 -05:00
6271665ba6
Avoid RPC in --sign-only
mode
...
Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com >
2021-03-23 02:31:39 +00:00
3dff5c9dee
transfer now requires --allow-unfunded-recipient if the recipient doesn't exist
2021-03-23 02:31:39 +00:00
d76ad33597
Handle blockstore insert dup checks ( #16051 )
2021-03-22 16:18:22 -07:00
fde43a906d
revert test to use Account for serialization ( #16063 )
2021-03-22 22:48:09 +00:00
2fc609a294
add metric for ticks from poh_recorder.record ( #16047 )
2021-03-22 15:35:06 -05:00
ff2242d0e3
Update dashboard with new poh metrics ( #15991 )
2021-03-22 11:38:57 -07:00
482c027d3b
sq: optimize
2021-03-22 12:01:57 -06:00
834fae684b
perf: use saturating/checked integer arithmetic
2021-03-22 12:01:57 -06:00
63d0c78b20
web3.js: add support for batch getParsedConfirmedTransactions ( #16001 )
...
* feat: add support for batch requests
* feat: get confirmed transactions batch
* feat: test get parsed confirmed transactions
* fix: run prettier
* fix: test uses one signature
* fix: fix docs and return type on ParsedConfirmedTransactions
* fix: null values in test
2021-03-22 10:22:59 -07:00
a2dae8e8d4
chore: bump @types/node from 14.14.31 to 14.14.35 in /web3.js ( #16011 )
...
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node ) from 14.14.31 to 14.14.35.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-22 17:35:04 +08:00
2c4ff000b9
explorer: minor cleanup and fixes ( #15855 )
...
* chore: bump web3 to v1.0.0
* explorer: minor cleanup and fixes
2021-03-20 16:22:22 +08:00
2ec24d438f
Make getStakeActivation response consistent for undelegated accounts ( #16038 )
2021-03-19 14:54:56 -06:00
64429104b1
account data.fill replacement ( #16037 )
2021-03-19 15:13:20 -05:00
038f80d7fd
fix: confirmed block timestamp tooltip was incorrect ( #16036 )
2021-03-19 11:52:43 -07:00
939c654752
Fix version more
2021-03-19 09:14:31 -07:00
ac75e386dd
Fix version
2021-03-19 09:05:59 -07:00
b503215122
fix: logo rendering ( #16005 )
...
fix: logo rendering
2021-03-19 09:56:28 -05:00
ddc758439e
metrics for poh_recorder.record ( #15998 )
2021-03-19 09:48:55 -05:00
3da9ab5d83
chore: bump eslint-plugin-mocha from 8.0.0 to 8.1.0 in /web3.js ( #16033 )
...
Bumps [eslint-plugin-mocha](https://github.com/lo1tuma/eslint-plugin-mocha ) from 8.0.0 to 8.1.0.
- [Release notes](https://github.com/lo1tuma/eslint-plugin-mocha/releases )
- [Changelog](https://github.com/lo1tuma/eslint-plugin-mocha/blob/master/CHANGELOG.md )
- [Commits](https://github.com/lo1tuma/eslint-plugin-mocha/compare/8.0.0...8.1.0 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-19 14:21:45 +00:00
a8b6dd7d91
chore: bump mocha from 8.3.0 to 8.3.2 in /web3.js ( #16032 )
...
Bumps [mocha](https://github.com/mochajs/mocha ) from 8.3.0 to 8.3.2.
- [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.0...v8.3.2 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-19 14:06:15 +00:00
89ccf2b65f
chore: bump eslint from 7.21.0 to 7.22.0 in /web3.js ( #16030 )
...
Bumps [eslint](https://github.com/eslint/eslint ) from 7.21.0 to 7.22.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.21.0...v7.22.0 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-19 13:48:41 +00:00
6cc22e62d4
program-test: Fix warp and staking issue ( #16002 )
...
Since program-test creates a test genesis and then adds fees and rent,
some of the genesis accounts get rent-collected after warping. Most
notably, `StakeConfig` gets rent-collected, causing any stake operations
to fail after warp. This fix creates genesis with the `Rent` and
`FeeRateGovernor` actually used by the bank.
2021-03-19 14:37:13 +01:00
2cd875f8e0
chore: bump chai from 4.3.1 to 4.3.4 in /web3.js ( #16029 )
...
Bumps [chai](https://github.com/chaijs/chai ) from 4.3.1 to 4.3.4.
- [Release notes](https://github.com/chaijs/chai/releases )
- [Changelog](https://github.com/chaijs/chai/blob/main/History.md )
- [Commits](https://github.com/chaijs/chai/compare/4.3.1...v4.3.4 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-19 13:26:14 +00:00
b996252b88
chore: bump @babel/plugin-transform-runtime in /web3.js ( #16028 )
...
Bumps [@babel/plugin-transform-runtime](https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-transform-runtime ) from 7.12.17 to 7.13.10.
- [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.13.10/packages/babel-plugin-transform-runtime )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-19 13:05:19 +00:00
413a2b71b5
chore: bump rollup-plugin-ts from 1.3.7 to 1.3.10 in /web3.js ( #16027 )
...
Bumps [rollup-plugin-ts](https://github.com/wessberg/rollup-plugin-ts ) from 1.3.7 to 1.3.10.
- [Release notes](https://github.com/wessberg/rollup-plugin-ts/releases )
- [Changelog](https://github.com/wessberg/rollup-plugin-ts/blob/master/CHANGELOG.md )
- [Commits](https://github.com/wessberg/rollup-plugin-ts/compare/v1.3.7...v1.3.10 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-19 12:49:33 +00:00
75cf1cdd56
chore: bump typescript from 4.2.2 to 4.2.3 in /web3.js ( #16026 )
...
Bumps [typescript](https://github.com/Microsoft/TypeScript ) from 4.2.2 to 4.2.3.
- [Release notes](https://github.com/Microsoft/TypeScript/releases )
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.2.2...v4.2.3 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-19 12:29:15 +00:00
33a49b487c
chore: bump semantic-release from 17.4.0 to 17.4.2 in /web3.js ( #16025 )
...
Bumps [semantic-release](https://github.com/semantic-release/semantic-release ) from 17.4.0 to 17.4.2.
- [Release notes](https://github.com/semantic-release/semantic-release/releases )
- [Commits](https://github.com/semantic-release/semantic-release/compare/v17.4.0...v17.4.2 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-19 12:11:10 +00:00
869c5ba7e6
chore: bump @babel/preset-typescript from 7.12.16 to 7.13.0 in /web3.js ( #16024 )
...
Bumps [@babel/preset-typescript](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-typescript ) from 7.12.16 to 7.13.0.
- [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.13.0/packages/babel-preset-typescript )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-19 11:52:57 +00:00
4e10bcc306
chore: bump @typescript-eslint/eslint-plugin in /web3.js ( #16023 )
...
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin ) from 4.16.1 to 4.18.0.
- [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.18.0/packages/eslint-plugin )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-19 11:38:58 +00:00
7ef0ef5d05
chore: bump start-server-and-test from 1.12.0 to 1.12.1 in /web3.js ( #16022 )
...
Bumps [start-server-and-test](https://github.com/bahmutov/start-server-and-test ) from 1.12.0 to 1.12.1.
- [Release notes](https://github.com/bahmutov/start-server-and-test/releases )
- [Commits](https://github.com/bahmutov/start-server-and-test/compare/v1.12.0...v1.12.1 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-19 11:19:42 +00:00
14e45155e4
Bump bpf-tools to v1.2 and get rid of xargo
2021-03-19 12:09:15 +01:00
3d8c4f8389
chore: bump @typescript-eslint/parser from 4.16.1 to 4.18.0 in /web3.js ( #16020 )
...
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser ) from 4.16.1 to 4.18.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases )
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md )
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.18.0/packages/parser )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-19 10:59:10 +00:00
54f1b2ea0e
chore: bump typedoc from 0.20.31 to 0.20.32 in /web3.js ( #16019 )
...
Bumps [typedoc](https://github.com/TypeStrong/TypeDoc ) from 0.20.31 to 0.20.32.
- [Release notes](https://github.com/TypeStrong/TypeDoc/releases )
- [Commits](https://github.com/TypeStrong/TypeDoc/compare/v0.20.31...v0.20.32 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-19 10:32:07 +00:00
aef3215722
Remove unneeded bpf sdk publishing automation ( #15947 )
2021-03-19 18:11:53 +08:00
5b08621c3f
chore: bump rollup-plugin-flat-dts from 1.0.3 to 1.1.0 in /web3.js ( #16018 )
...
Bumps [rollup-plugin-flat-dts](https://github.com/run-z/rollup-plugin-flat-dts ) from 1.0.3 to 1.1.0.
- [Release notes](https://github.com/run-z/rollup-plugin-flat-dts/releases )
- [Commits](https://github.com/run-z/rollup-plugin-flat-dts/compare/v1.0.3...v1.1.0 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-19 10:08:41 +00:00
0a726f1706
chore:(deps): bump @project-serum/serum in /explorer ( #16017 )
...
Bumps [@project-serum/serum](https://github.com/project-serum/serum-ts ) from 0.13.26 to 0.13.27.
- [Release notes](https://github.com/project-serum/serum-ts/releases )
- [Commits](https://github.com/project-serum/serum-ts/commits )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-19 09:57:58 +00:00
38ff6a4747
chore:(deps): bump @testing-library/user-event in /explorer ( #16016 )
...
Bumps [@testing-library/user-event](https://github.com/testing-library/user-event ) from 13.0.1 to 13.0.2.
- [Release notes](https://github.com/testing-library/user-event/releases )
- [Changelog](https://github.com/testing-library/user-event/blob/master/CHANGELOG.md )
- [Commits](https://github.com/testing-library/user-event/compare/v13.0.1...v13.0.2 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-19 09:50:00 +00:00
e9b08b5e7f
fix: remove deprecated bpf-sdk, localnet, and examples
...
BREAKING CHANGE: Removed binaries solana-localnet and solana-bpf-sdk-install.
Please install the Solana CLI tools to download the BPF SDK and to
install the solana-test-validator binary intead.
2021-03-19 17:45:08 +08:00
f46f346710
chore: bump @babel/preset-env from 7.12.17 to 7.13.10 in /web3.js ( #16015 )
...
Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env ) from 7.12.17 to 7.13.10.
- [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.13.10/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-03-19 09:38:19 +00:00
06b97554e1
chore:(deps): bump @solana/spl-token-registry in /explorer ( #16014 )
...
Bumps [@solana/spl-token-registry](https://github.com/solana-labs/token-list ) from 0.2.34 to 0.2.38.
- [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.34...v0.2.38 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-19 09:18:20 +00:00
55c6fef962
chore:(deps): bump cross-fetch from 3.1.0 to 3.1.1 in /explorer ( #16013 )
...
Bumps [cross-fetch](https://github.com/lquixada/cross-fetch ) from 3.1.0 to 3.1.1.
- [Release notes](https://github.com/lquixada/cross-fetch/releases )
- [Commits](https://github.com/lquixada/cross-fetch/compare/v3.1.0...v3.1.1 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-19 09:12:41 +00:00
2d3464a548
chore: bump rollup from 2.40.0 to 2.42.0 in /web3.js ( #16010 )
...
Bumps [rollup](https://github.com/rollup/rollup ) from 2.40.0 to 2.42.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.40.0...v2.42.0 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-19 08:44:23 +00:00
07dc522981
docs: SIGUSR1 killing wrapper shell scripts
2021-03-19 07:22:11 +00:00
ac95fa058c
chore: bump @babel/core from 7.12.17 to 7.13.10 in /web3.js ( #15823 )
...
Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core ) from 7.12.17 to 7.13.10.
- [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.13.10/packages/babel-core )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-19 13:27:36 +08:00
a0f24f23b5
chore:(deps): bump cross-fetch from 3.0.6 to 3.1.0 in /explorer ( #15869 )
...
Bumps [cross-fetch](https://github.com/lquixada/cross-fetch ) from 3.0.6 to 3.1.0.
- [Release notes](https://github.com/lquixada/cross-fetch/releases )
- [Commits](https://github.com/lquixada/cross-fetch/compare/v3.0.6...v3.1.0 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-19 13:27:19 +08:00
4a0d956a6a
chore: bump @babel/runtime from 7.13.8 to 7.13.10 in /web3.js ( #15935 )
...
Bumps [@babel/runtime](https://github.com/babel/babel/tree/HEAD/packages/babel-runtime ) from 7.13.8 to 7.13.10.
- [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.13.10/packages/babel-runtime )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-19 13:27:03 +08:00
4c5660ba7a
Santize instruction index when loading instruction from sysvar ( #15942 )
2021-03-19 09:32:41 +08:00
f4db9e4275
feat: add support for signature received notifications ( #15946 )
...
* feat: add support for signature received notifications
* chore: update type comments
2021-03-19 01:30:36 +00:00
02b81dd05d
Update to reqwest 0.11.2
2021-03-18 11:59:41 -07:00
067b390194
cli cleanup ( #15990 )
2021-03-18 18:29:42 +00:00
aa54c468ea
rpc: Add config options limiting getConfirmedBlock response data ( #15970 )
...
* Add new confirmed block struct
* Add RpcConfirmedBlockConfig options
* Configure block response based on new options
* Add client api, use in cli fetch_epoch_rewards
* Update docs
* Apply review suggestions
2021-03-18 17:58:20 +00:00
9760fded2d
remove old code ( #15988 )
2021-03-18 17:51:49 +00:00
4beb39f7a1
multi-pass bin scanning ( #15377 )
...
* multi-pass bin scanning
* pr feedback
* format
* fix typo
* adjust metrics for code changes
* merge errors
2021-03-18 10:32:07 -05:00
0988c2f1d6
feat: add support for blockTime on confirmed block ( #15968 )
2021-03-18 07:10:48 -07:00
689e03d341
chore:(deps): bump @testing-library/user-event in /explorer ( #15985 )
...
Bumps [@testing-library/user-event](https://github.com/testing-library/user-event ) from 13.0.0 to 13.0.1.
- [Release notes](https://github.com/testing-library/user-event/releases )
- [Changelog](https://github.com/testing-library/user-event/blob/master/CHANGELOG.md )
- [Commits](https://github.com/testing-library/user-event/compare/v13.0.0...v13.0.1 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-18 09:54:22 +00:00
561d55feef
chore:(deps): bump @project-serum/serum in /explorer ( #15984 )
...
Bumps [@project-serum/serum](https://github.com/project-serum/serum-ts ) from 0.13.25 to 0.13.26.
- [Release notes](https://github.com/project-serum/serum-ts/releases )
- [Commits](https://github.com/project-serum/serum-ts/commits )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-18 09:29:54 +00:00
8670bd4589
chore:(deps): bump @solana/spl-token-registry in /explorer ( #15983 )
...
Bumps [@solana/spl-token-registry](https://github.com/solana-labs/token-list ) from 0.2.33 to 0.2.34.
- [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.33...v0.2.34 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-18 09:07:20 +00:00
7deddaa42d
chore:(deps): bump @types/jest from 26.0.20 to 26.0.21 in /explorer ( #15982 )
...
Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest ) from 26.0.20 to 26.0.21.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-18 08:49:23 +00:00
ba33c9e18e
Avoid panic when validator doesn't have performance samples ( #15976 )
2021-03-18 02:00:02 -06:00
2dabcac0da
remote-wallet: Expose Ledger app settings
2021-03-18 07:29:16 +00:00
4ab98fff02
Avoid a panic when --slots-per-epoch is less than MINIMUM_SLOTS_PER_EPOCH
2021-03-18 05:45:21 +00:00
7f500d610c
Add Close instrruction and tooling to upgradeable loader ( #15887 )
2021-03-17 21:39:29 -07:00
12399157f5
SDK: Allow integer math in bump allocator
2021-03-17 22:23:18 -06:00
854e6766ce
SDK: Ovf in epoch_schedule
2021-03-17 22:23:18 -06:00
98d7673a03
sdk/program: switch allow to mod-level for integer_arithmetic lint
2021-03-17 22:23:18 -06:00
5b2b824a53
Sdk: remove integer arithmetic ( #15962 )
...
* Fix timing
* Fix secp256k1_instruction
* Fix secp256k1 tests
2021-03-18 01:33:50 +00:00
04c99cf7ea
Add --slots-per-epoch argument
2021-03-17 22:56:41 +00:00
c06ff47a90
Add --slots-per-epoch validator
2021-03-17 22:56:41 +00:00
f548a04fae
Allow unbounded wallclock processing time in tests ( #15961 )
2021-03-17 15:48:50 -07:00
03180b502d
Avoid changing signature of ProgramTest::add_account
2021-03-17 13:21:43 -07:00
82269f1351
Build full SPL in CI
2021-03-17 13:21:43 -07:00
d30c9ef351
refactor test truncate data ( #15851 )
...
* refactor test truncate data
* retain existing behavior
2021-03-17 15:09:26 -05:00
59c19d9fbf
Notice the user when the --mint, --bpf-program, or --clone arguments are ignored
2021-03-17 20:04:53 +00:00
8a9b51952e
Ignore flaky test_banking_stage_entries_only and test_banking_stage_entryfication
2021-03-17 11:28:56 -07:00
a5d144b00f
Revert to removing only tmp-
2021-03-17 10:31:01 -07:00
20b53eb4b4
Revert to snapshots 2
2021-03-17 10:31:01 -07:00
0b42379ed7
Revert to snapshots
...
Co-authored-by: Michael Vines <mvines@gmail.com >
2021-03-17 10:31:01 -07:00
a43b3674c7
add missed suggestion
2021-03-17 10:31:01 -07:00
cfb01e26dd
Apply suggestions from code review
...
Co-authored-by: Michael Vines <mvines@gmail.com >
2021-03-17 10:31:01 -07:00
0209d334bd
Add option for separate snapshot location
...
(cherry picked from commit 6126878f509c69e23480a5ec22b3271e2b16e072)
2021-03-17 10:31:01 -07:00
58b980f9cd
Download snapshot files with a tmp-
prefix so they'll automatically be cleaned up if interrupted
2021-03-17 09:10:10 -07:00
3160549e85
Replace solana-program-test when building example-helloworld
2021-03-17 09:07:52 -07:00
9b26c45be6
explorer/wormhole ( #15948 )
...
* feat: add lending instruction names
* chore: capitalize words
* feat: add wormhole card
* feat: add asset contract
* chore: format
2021-03-17 10:53:50 -05:00
40997d0aef
add metrics for tick producer and poh_recorder ( #15931 )
2021-03-17 10:38:26 -05:00
5460fb10a2
drop poh lock after record ( #15930 )
2021-03-17 10:37:20 -05:00
d370b5a4d2
chore:(deps): bump @testing-library/user-event in /explorer ( #15943 )
...
Bumps [@testing-library/user-event](https://github.com/testing-library/user-event ) from 12.8.3 to 13.0.0.
- [Release notes](https://github.com/testing-library/user-event/releases )
- [Changelog](https://github.com/testing-library/user-event/blob/master/CHANGELOG.md )
- [Commits](https://github.com/testing-library/user-event/compare/v12.8.3...v13.0.0 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-17 09:31:42 +00:00
f1c4c3b719
chore:(deps): bump @solana/spl-token-registry in /explorer ( #15941 )
...
Bumps [@solana/spl-token-registry](https://github.com/solana-labs/token-list ) from 0.2.30 to 0.2.33.
- [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.30...v0.2.33 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-17 08:46:18 +00:00
4e99f1e634
clap-utils: Add helper to CliSignerInfo
for getting signers for a message
2021-03-16 22:09:46 -06:00
bf33ce8906
sdk: Add accessor for signer pubkeys of a tx message
2021-03-16 22:09:46 -06:00
d9176c1903
solana-install init
can now select a pre-release from Github
2021-03-17 02:54:26 +00:00
51bc18f8c4
chore: fix coverage command
2021-03-17 10:26:00 +08:00
48b3b27985
chore: linter fixes
2021-03-17 10:26:00 +08:00
8ada44456d
chore: migrate tests to typescript
2021-03-17 10:26:00 +08:00
f912c63b22
chore: migrate to typescript
2021-03-17 10:26:00 +08:00
3eb9f7b3eb
chore: project config changes for typescript migration
2021-03-17 10:26:00 +08:00
3ea23fe736
fix: fix buffer types
2021-03-17 10:26:00 +08:00
a5c840e672
feat: update confirmation status typing and validations
2021-03-17 10:26:00 +08:00
d40dc06d6a
fix: clean up unnecessary nullable validations
2021-03-17 10:26:00 +08:00
672e9c640f
CLI: Support dumping the TX message in sign-only mode
2021-03-16 19:20:54 -06:00
98ea058ebe
feat: require programId and keys for TransactionInstruction
2021-03-17 09:10:17 +08:00
806bfdd67b
set_data_from_slice ( #15854 )
...
* data_ensure_equal_to_slice
* rename and change to copy
2021-03-16 16:56:26 -05:00
654449ce91
Bump tokio to 1.1 ( #15926 )
2021-03-16 21:32:50 +00:00
0c4c89ff4a
explorer: display wormhole bridge details ( #15833 )
...
* feat: display wormhole bridge details
* fix: add rel noopener noreferrer
* fix: extract eth address properly
* feat: copyable bridge contract address
2021-03-16 18:47:43 +00:00
61112d4826
fix: compute pre/post token balances on all accounts if token program present ( #15900 )
...
* fix: compute pre/post token balances on all accounts if token program present
* fix: skip token program in balance query
* fix: prevent program ids from being collected
2021-03-16 16:49:22 +00:00
1c261d293f
Encourage use of the default --ledger location
2021-03-16 16:36:59 +00:00
3b85cbc504
renames is_last_in_fec_set back to is_last_data ( #15848 )
...
https://github.com/solana-labs/solana/pull/10095
renamed is_last_data to is_last_in_fec_set. However, the code shows that
this is actually meant to indicate where the serialized data is
complete:
https://github.com/solana-labs/solana/blob/420174d3d/ledger/src/shred.rs#L599-L600
https://github.com/solana-labs/solana/blob/420174d3d/ledger/src/shred.rs#L229-L231
There are multiple FEC sets for each `&[Entry]` serialized and this flag
does not represent shreds last in FEC sets (only the very last one by
overlap). So the name is wrong and confusing
2021-03-16 10:09:16 +00:00
97e5591a63
chore:(deps): bump @solana/spl-token-registry in /explorer ( #15915 )
...
Bumps [@solana/spl-token-registry](https://github.com/solana-labs/token-list ) from 0.2.2 to 0.2.30.
- [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/0.2.2...v0.2.30 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-16 08:49:52 +00:00
a8a3f4d362
chore:(deps): bump @types/node from 14.14.33 to 14.14.35 in /explorer ( #15914 )
...
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node ) from 14.14.33 to 14.14.35.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-16 08:44:42 +00:00
3726358f51
Cli: better estimate of epoch time elapsed/remaining ( #15893 )
...
* Add rpc_client api for getRecentPerformanceSamples
* Prep fn for variable avg slot time
* Use recent-perf-samples to more-accurately estimate epoch completed times
* Spell out average
2021-03-16 08:35:27 +00:00
eb19e11688
Add cargo-bpf-test --no-run flag, matching cargo-test
2021-03-16 08:23:03 +00:00
4be9d7fd29
Pin solana crate versions to prevent downstream users from accidentally mixing crate versions
2021-03-16 07:51:07 +00:00
a2eb655322
=1.7.0
2021-03-16 07:51:07 +00:00
5760cf0f41
nit: fix spelling ( #15908 )
2021-03-15 23:47:57 -07:00
74aa32175b
Show flags for accounts in tx by solana confirm ( #15804 )
...
* Show flags for accounts in tx by solana confirm
* Address review comments
* Improve comment a bit
* Apply suggestions from code review
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
* Further apply review suggestions
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2021-03-16 14:44:48 +09:00
ad9901d7c6
Charge compute budget for bytes passed via cpi ( #15874 )
2021-03-15 22:41:44 -07:00
8567b41d5f
Improve Instruction::new deprecation warning
2021-03-15 20:04:20 -07:00
430ed6d774
Export tokio for program-test clients
2021-03-15 20:03:55 -07:00
efee8b62d7
a few missed set_data calls ( #15846 )
...
* a few missed set_data calls
* another set data call
2021-03-15 21:57:23 -05:00
e50f284658
use Account for test since it borrows mut ref to data ( #15852 )
2021-03-15 21:56:48 -05:00
e35d738906
rework BankClient.get_account_data ( #15853 )
2021-03-15 19:27:53 -05:00
c09ea2c314
More AccountSharedData construction ( #15844 )
...
* one more AccountSharedData construction
* one more construct
2021-03-15 19:27:17 -05:00
2bf46b789f
Also ignore */node_modules/*
paths when bumping version
2021-03-16 00:27:11 +00:00
510760d81b
Ignore not_paths
for *.md
files when bumping version
2021-03-16 00:27:11 +00:00
853e735edf
Disallow version bump with dirty working tree
2021-03-16 00:27:11 +00:00
c1ba265dd9
Wallclock BankingStage Throttle ( #15731 )
2021-03-15 17:11:15 -07:00
60e5fd11c9
Display actual account length ( #15875 )
2021-03-15 14:17:56 -07:00
699888dfb3
Update cargo lock files on version bump
2021-03-15 20:03:01 +00:00
c40bd5f394
Fix real_number_string_trimmed zero-decimal behavior ( #15873 )
...
* Add failing test
* Don't strip zeroes from zero-decimal amounts
* Add zero-case test
2021-03-15 18:32:40 +00:00
85b4578b14
chore:(deps): bump chai from 4.3.3 to 4.3.4 in /explorer ( #15867 )
...
Bumps [chai](https://github.com/chaijs/chai ) from 4.3.3 to 4.3.4.
- [Release notes](https://github.com/chaijs/chai/releases )
- [Changelog](https://github.com/chaijs/chai/blob/main/History.md )
- [Commits](https://github.com/chaijs/chai/compare/4.3.3...v4.3.4 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-15 09:47:39 +00:00
cb9fded508
chore:(deps): bump @solana/spl-token-registry in /explorer ( #15866 )
...
Bumps [@solana/spl-token-registry](https://github.com/solana-labs/token-list ) from 0.2.1 to 0.2.2.
- [Release notes](https://github.com/solana-labs/token-list/releases )
- [Commits](https://github.com/solana-labs/token-list/compare/0.2.1...0.2.2 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-15 09:43:21 +00:00
134eccc273
chore:(deps): bump @types/socket.io-client in /explorer ( #15865 )
...
Bumps [@types/socket.io-client](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/socket.io-client ) from 1.4.35 to 1.4.36.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/socket.io-client )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-15 09:38:49 +00:00
821be88d13
chore: bump rpc-websockets from 7.4.8 to 7.4.9 in /web3.js ( #15822 )
...
Bumps [rpc-websockets](https://github.com/elpheria/rpc-websockets ) from 7.4.8 to 7.4.9.
- [Release notes](https://github.com/elpheria/rpc-websockets/releases )
- [Commits](https://github.com/elpheria/rpc-websockets/compare/v7.4.8...v7.4.9 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-15 15:53:40 +08:00
a36d2f2d3e
fix: use uiAmountString in token balances component ( #15860 )
2021-03-15 04:25:09 +00:00
420174d3dd
explorer: Fix midnight timestamps ( #15843 )
2021-03-14 11:26:14 +08:00
485a943958
explorer: Add label for serum dex v1 ( #15842 )
2021-03-14 10:20:31 +08:00
3722f46089
explorer: Add token symbol to token label ( #15841 )
2021-03-14 10:16:32 +08:00
eab182188a
Fix delinquent stake display
2021-03-13 18:58:04 +00:00
c4f98f9c73
explorer: Add details pages for upgradeable loader accounts ( #15836 )
2021-03-14 01:11:59 +08:00
0c9ca5522c
Bump version to v1.7.0
2021-03-13 09:01:21 +00:00