Commit Graph

12027 Commits

Author SHA1 Message Date
7f4debdad5 drops older gossip packets when load shedding (#13364)
Gossip drops incoming packets when overloaded:
https://github.com/solana-labs/solana/blob/f6a73098a/core/src/cluster_info.rs#L2462-L2475
However newer packets are dropped in favor of the older ones.
This is probably not ideal as newer packets are more likely to contain
more recent data, so dropping them will keep the validator state
lagging.
2020-11-05 17:14:28 +00:00
8f0796436a shares the lock on gossip when processing prune messages (#13339)
Processing prune messages acquires an exclusive lock on gossip:
https://github.com/solana-labs/solana/blob/55b0428ff/core/src/cluster_info.rs#L1824-L1825
This can be reduced to a shared lock if active-sets are changed to use
atomic bloom filters:
https://github.com/solana-labs/solana/blob/55b0428ff/core/src/crds_gossip_push.rs#L50
2020-11-05 15:42:00 +00:00
bc62313c66 Allow feature builtins to overwrite existing builtins (#13403)
* Allow feature builtins to overwrite existing builtins

* Add feature_builtin ActivationType

* Correctly retain idempotent for replacing case

* Fix test

Co-authored-by: Ryo Onodera <ryoqun@gmail.com>
2020-11-05 15:37:07 +00:00
118ce47b97 measures processing time of each kind of gossip packets (#13366) 2020-11-05 15:34:34 +00:00
5e7565fefe chore: bump buffer from 5.7.0 to 6.0.1 in /web3.js (#13415)
Bumps [buffer](https://github.com/feross/buffer) from 5.7.0 to 6.0.1.
- [Release notes](https://github.com/feross/buffer/releases)
- [Commits](https://github.com/feross/buffer/compare/v5.7.0...v6.0.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-11-05 09:19:09 +00:00
f2e265492c chore:(deps): bump @testing-library/user-event in /explorer (#13416)
Bumps [@testing-library/user-event](https://github.com/testing-library/user-event) from 12.1.10 to 12.2.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.1.10...v12.2.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-11-05 09:12:15 +00:00
ea8eb5b065 chore:(deps): bump @sentry/react from 5.27.2 to 5.27.3 in /explorer (#13414)
Bumps [@sentry/react](https://github.com/getsentry/sentry-javascript) from 5.27.2 to 5.27.3.
- [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/5.27.2...5.27.3)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-11-05 09:09:32 +00:00
c24fbb6f8b Fix duplicate records of inner instructions (#13380)
* Fix duplicate records of inner instructions

* fix tests

* fix clippy

* Remove bad_inner_instructions
2020-11-05 15:23:52 +08:00
66c3c6c2b3 CI: Use branch-versioned cargo throughout 2020-11-05 05:05:57 +00:00
dd54ea78ac Bump low end validator RAM requirement (#13406) 2020-11-05 11:56:14 +08:00
8c4995b22b Improve invoke_signed() docs 2020-11-04 23:44:04 +00:00
661a935075 Final program ELF is now placed in ./target/deploy/ instead of . 2020-11-04 23:03:55 +00:00
8838a55a1a Bump spl-token and spl-memo crate versions 2020-11-04 21:44:33 +00:00
8aa00381ef stack overflow docs (#13399)
* stack overflow docs

* whitespace
2020-11-04 21:35:59 +00:00
cb2e8f9084 Add remaining stage 9 TdS validators 2020-11-04 13:44:57 -07:00
97284adabb Update SPL Token exchange documentation to include associated-token-account workflow 2020-11-04 11:41:29 -08:00
10fa4f45ab uses thread-pool when handling push messages (#13338)
From runtime profiles, the majority time of solana-listen thread:
https://github.com/solana-labs/solana/blob/55b0428ff/core/src/cluster_info.rs#L2720
is spent handling push messages. The code here:
https://github.com/solana-labs/solana/blob/55b0428ff/core/src/cluster_info.rs#L2272-L2364
may utilize the idle gossip thread-pool.
2020-11-04 19:15:58 +00:00
0d663158d0 Reduce repair_stats debug (#13393) 2020-11-04 10:32:48 -08:00
7ee0c9e68a Add non-progress bar download status (#13370) 2020-11-04 10:32:27 -08:00
bb63e9486d Update validator_list.rs 2020-11-04 10:47:00 -07:00
4999fe298b Rbpf v0.2.0 (#13365)
* Updates rbpf to v0.2.0,
which unifies the interfaces of the interpreter and the JIT.
However, the JIT is not enabled yet.
2020-11-04 18:46:26 +01:00
5db6e4748d Update validator_list.rs 2020-11-04 10:37:43 -07:00
bbe2834c82 Update validator_list.rs 2020-11-04 10:27:28 -07:00
43053dcc90 Re-use accounts stores (#12885)
* Re-use accounts_db stores

Creating files and dropping mmap areas can be expensive

* Add test for storage finder

Can encounter an infinite loop when the store is too small, but
smaller than the normal store size.

* Fix storage finding

* Check for strong_count == 1

* try_recycle helper
2020-11-04 09:17:05 -08:00
b0d1ae1d8b Comment Stakes::clone_with_epoch (#13388) 2020-11-04 11:18:05 +00:00
f349def5d4 chore: bump @babel/runtime from 7.12.1 to 7.12.5 in /web3.js (#13386)
Bumps [@babel/runtime](https://github.com/babel/babel/tree/HEAD/packages/babel-runtime) from 7.12.1 to 7.12.5.
- [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.12.5/packages/babel-runtime)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-11-04 09:50:13 +00:00
88737f24b0 chore: bump jest from 26.6.2 to 26.6.3 in /web3.js (#13385)
Bumps [jest](https://github.com/facebook/jest) from 26.6.2 to 26.6.3.
- [Release notes](https://github.com/facebook/jest/releases)
- [Changelog](https://github.com/facebook/jest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/facebook/jest/compare/v26.6.2...v26.6.3)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-11-04 09:48:34 +00:00
169b334660 chore:(deps): bump @testing-library/react in /explorer (#13382)
Bumps [@testing-library/react](https://github.com/testing-library/react-testing-library) from 11.1.0 to 11.1.1.
- [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.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>
2020-11-04 09:27:21 +00:00
d498ac229f chore: bump codecov from 3.8.0 to 3.8.1 in /web3.js (#13384)
Bumps [codecov](https://github.com/codecov/codecov-node) from 3.8.0 to 3.8.1.
- [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.0...v3.8.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-11-04 09:22:34 +00:00
2840201e41 chore:(deps): bump @solana/web3.js from 0.86.3 to 0.86.4 in /explorer (#13383)
Bumps [@solana/web3.js](https://github.com/solana-labs/solana-web3.js) from 0.86.3 to 0.86.4.
- [Release notes](https://github.com/solana-labs/solana-web3.js/releases)
- [Commits](https://github.com/solana-labs/solana-web3.js/compare/v0.86.3...v0.86.4)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-11-04 09:12:03 +00:00
b5ef319038 Refine transaction log count message 2020-11-04 05:30:52 +00:00
6d9ca0ae15 Surface transaction logs in rpc client 2020-11-03 17:03:28 -08:00
04c5e6cc48 more informative feature error message (#13373) 2020-11-04 00:08:08 +00:00
3d5e778d5d Flesh out development docs (#13318)
* flesh out development docs

* nits
2020-11-03 20:53:17 +00:00
546915ee12 fix: update StakeProgram.space() (#13371) 2020-11-03 13:40:45 -07:00
fefa297877 docs: Mainnet-beta totally has smart contract enabled 2020-11-03 19:04:30 +00:00
f6a73098a4 Update sol_log_compute_units (#13360) 2020-11-03 08:16:31 -08:00
9e577d0338 chore: bump jest from 26.6.1 to 26.6.2 in /web3.js (#13361)
Bumps [jest](https://github.com/facebook/jest) from 26.6.1 to 26.6.2.
- [Release notes](https://github.com/facebook/jest/releases)
- [Changelog](https://github.com/facebook/jest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/facebook/jest/compare/v26.6.1...v26.6.2)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-11-03 09:28:12 +00:00
a9a01c308e chore:(deps): bump @solana/web3.js from 0.86.2 to 0.86.3 in /explorer (#13362)
Bumps [@solana/web3.js](https://github.com/solana-labs/solana-web3.js) from 0.86.2 to 0.86.3.
- [Release notes](https://github.com/solana-labs/solana-web3.js/releases)
- [Commits](https://github.com/solana-labs/solana-web3.js/compare/v0.86.2...v0.86.3)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-11-03 09:11:36 +00:00
c3d2d2134c Include Rent in ProgramTest::start() output 2020-11-03 02:01:47 +00:00
d3a3a7548c explorer: add serum new order v2 instruction mapping (#13353) 2020-11-02 11:49:26 -08:00
120fc03aff Add validators to SoM list (#13322) 2020-11-02 11:42:46 -07:00
582602dc57 fix: add feePayer type in TransactionCtorFields (#13343) 2020-11-02 21:34:24 +08:00
c05a038475 Revert "fix web3js: add feePayer type in TransactionCtorFields (#13343)"
This reverts commit 1c75db41e3.
2020-11-02 21:34:17 +08:00
c54a3e82e9 chore: bump rollup from 2.32.1 to 2.33.1 in /web3.js (#13348)
Bumps [rollup](https://github.com/rollup/rollup) from 2.32.1 to 2.33.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.32.1...v2.33.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-11-02 09:22:23 +00:00
5b6f360f51 chore: bump @solana/spl-token from 0.0.11 to 0.0.13 in /web3.js (#13346)
Bumps [@solana/spl-token](https://github.com/solana-labs/solana-program-library) from 0.0.11 to 0.0.13.
- [Release notes](https://github.com/solana-labs/solana-program-library/releases)
- [Commits](https://github.com/solana-labs/solana-program-library/commits)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-11-02 09:17:50 +00:00
7996f7e227 chore:(deps): bump @types/react-select in /explorer (#13350)
Bumps [@types/react-select](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-select) from 3.0.22 to 3.0.23.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-select)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-11-02 09:14:53 +00:00
84e3218cdb chore:(deps): bump @project-serum/serum in /explorer (#13349)
Bumps [@project-serum/serum](https://github.com/project-serum/serum-js) from 0.13.9 to 0.13.11.
- [Release notes](https://github.com/project-serum/serum-js/releases)
- [Commits](https://github.com/project-serum/serum-js/commits)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-11-02 09:14:39 +00:00
a0f40711c6 chore: bump semantic-release from 17.2.1 to 17.2.2 in /web3.js (#13303)
Bumps [semantic-release](https://github.com/semantic-release/semantic-release) from 17.2.1 to 17.2.2.
- [Release notes](https://github.com/semantic-release/semantic-release/releases)
- [Commits](https://github.com/semantic-release/semantic-release/compare/v17.2.1...v17.2.2)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-11-02 09:07:41 +00:00
5c09193019 Add warning to PR template for mirrored repos (#13344) 2020-11-02 14:34:14 +08:00