Greg Fitzgerald
9bbe015a05
Document and clean up AppendVec ( #15640 )
...
* Document AppendVec
* Remove the almost-duplicate state in AppendVec
AppendVec was maintaining two offsets, `current_len` and
`append_offset`. Despite the different looking names, the two
values have the same meaning, but were updated at slightly different
times. When appending a batch of accounts, `current_len` updates would
be immediately available to other threads after each append, whereas
`append_offset` would only be updated after its mutex was unlocked.
`append_offset` is redundant. By removing it, we eliminate potential
bugs and no longer need to suppress clippy warnings.
* Remove get_mut() from AppendVec design
Only the offset into the AppendVec memory is thread-safe. The memory
itself is only threadsafe because it is append-only and is otherwise
unprotected. Adding get_mut() would only be safe if the memory was
protected by a ReadWrite lock.
2021-03-03 12:51:48 -08:00
Trent Nelson
5cd6a0c2f1
Docs: Update validator hardware recommendations
2021-03-03 20:39:37 +00:00
behzad nouri
658951e680
sends only the latest vote of each validator to the banking stage ( #15629 )
2021-03-03 19:07:16 +00:00
carllin
aacb28c453
Only report metrics every second ( #15652 )
2021-03-03 10:58:47 -08:00
sakridge
830be855dc
Forward and hold packets ( #15634 )
2021-03-03 10:23:05 -08:00
Yang Hau
6acb06f8d8
refactor: Use UINT64_MAX to replace hardcoded number ( #15676 )
2021-03-03 17:16:18 +00:00
Josh
0970653b6a
feat: add two additional Serum markets to Explorer ( #15680 )
2021-03-03 08:49:40 -08:00
Josh
8d0d6ded01
feat: introduce three new Serum instructions and program ID, rename bpf-upgradeable-loader card ( #15679 )
2021-03-03 16:43:06 +00:00
Josh
9a43679fe1
feat: new rounded tether icon for Explorer ( #15677 )
2021-03-03 07:53:45 -08:00
dependabot[bot]
77019caf08
chore: bump @typescript-eslint/eslint-plugin in /web3.js ( #15671 )
...
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin ) from 4.15.1 to 4.16.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.16.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-03-03 11:42:19 +00:00
dependabot[bot]
381e103bff
chore: bump @commitlint/config-conventional in /web3.js ( #15670 )
...
Bumps [@commitlint/config-conventional](https://github.com/conventional-changelog/commitlint ) from 11.0.0 to 12.0.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/v11.0.0...v12.0.1 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-03 11:22:16 +00:00
dependabot[bot]
9b98a6749a
chore: bump @types/node from 14.14.30 to 14.14.31 in /web3.js ( #15669 )
...
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node ) from 14.14.30 to 14.14.31.
- [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-03 11:17:41 +00:00
dependabot[bot]
b6f94cacdf
chore: bump @typescript-eslint/parser from 4.15.2 to 4.16.1 in /web3.js ( #15668 )
...
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser ) from 4.15.2 to 4.16.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.16.1/packages/parser )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-03 11:01:22 +00:00
dependabot[bot]
e909f05556
chore: bump semantic-release from 17.3.9 to 17.4.0 in /web3.js ( #15667 )
...
Bumps [semantic-release](https://github.com/semantic-release/semantic-release ) from 17.3.9 to 17.4.0.
- [Release notes](https://github.com/semantic-release/semantic-release/releases )
- [Commits](https://github.com/semantic-release/semantic-release/compare/v17.3.9...v17.4.0 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-03 10:44:01 +00:00
dependabot[bot]
a88f264a25
chore: bump @babel/register from 7.12.13 to 7.13.8 in /web3.js ( #15666 )
...
Bumps [@babel/register](https://github.com/babel/babel/tree/HEAD/packages/babel-register ) from 7.12.13 to 7.13.8.
- [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.8/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-03 10:40:37 +00:00
dependabot[bot]
9eefe7a3f2
chore: bump eslint-plugin-flowtype from 5.2.2 to 5.3.1 in /web3.js ( #15664 )
...
Bumps [eslint-plugin-flowtype](https://github.com/gajus/eslint-plugin-flowtype ) from 5.2.2 to 5.3.1.
- [Release notes](https://github.com/gajus/eslint-plugin-flowtype/releases )
- [Commits](https://github.com/gajus/eslint-plugin-flowtype/compare/v5.2.2...v5.3.1 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-03 10:13:06 +00:00
dependabot[bot]
06324c08b8
chore:(deps): bump @project-serum/serum in /explorer ( #15663 )
...
Bumps [@project-serum/serum](https://github.com/project-serum/serum-ts ) from 0.13.24 to 0.13.25.
- [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-03 09:58:55 +00:00
dependabot[bot]
0746e780c4
chore: bump eslint from 7.20.0 to 7.21.0 in /web3.js ( #15661 )
...
Bumps [eslint](https://github.com/eslint/eslint ) from 7.20.0 to 7.21.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.20.0...v7.21.0 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-03 09:57:38 +00:00
dependabot[bot]
e107f88f57
chore: bump typescript from 4.1.5 to 4.2.2 in /web3.js ( #15659 )
...
Bumps [typescript](https://github.com/Microsoft/TypeScript ) from 4.1.5 to 4.2.2.
- [Release notes](https://github.com/Microsoft/TypeScript/releases )
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.1.5...v4.2.2 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-03 09:41:42 +00:00
Justin Starry
b8e28b8c55
Remove unnecessary packet meta abi lock ( #15653 )
2021-03-03 17:31:52 +08:00
dependabot[bot]
8db31a0edc
chore: bump chai from 4.3.0 to 4.3.1 in /web3.js ( #15656 )
...
Bumps [chai](https://github.com/chaijs/chai ) from 4.3.0 to 4.3.1.
- [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.0...4.3.1 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-03 09:26:29 +00:00
dependabot[bot]
053e21f92c
chore:(deps): bump @solana/web3.js from 0.93.0 to 0.94.0 in /explorer ( #15658 )
...
Bumps [@solana/web3.js](https://github.com/solana-labs/solana-web3.js ) from 0.93.0 to 0.94.0.
- [Release notes](https://github.com/solana-labs/solana-web3.js/releases )
- [Commits](https://github.com/solana-labs/solana-web3.js/compare/v0.93.0...v0.94.0 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-03 09:25:19 +00:00
Tyera Eulberg
19ac79b5cc
Deprecate UiTokenAmount::ui_amount ( #15616 )
...
* Add TokenAmount::ui_amount_string
* Fixup solana-tokens
* Update docs
2021-03-02 22:51:41 -07:00
Jack May
a9c8dbfd0c
Add error reporting to system program ( #15644 )
2021-03-02 21:44:25 -08:00
Tyera Eulberg
a4f0033bd7
Remove ValidatorConfig derive Clone, and fix local-cluster tests ( #15647 )
...
* Remove ValidatorConfig derive Clone
* Add local-cluster ValidatorConfig helpers
* Fix benches
2021-03-03 04:21:30 +00:00
Jack May
b20bf8ebb0
improve cli insufficient funds error messages
2021-03-02 20:07:34 -08:00
rmshea
00f2b039b4
Remove Hackathon banner
2021-03-02 18:19:37 -08:00
behzad nouri
0bd0084b0d
adds more metrics for tx counts and batch sizes ( #15642 )
2021-03-03 01:28:15 +00:00
Jeff Washington (jwash)
a2c47db920
extract expected cluster type ( #15615 )
...
* extract expected cluster type
* fix clippy warning
* more clippy
2021-03-02 13:55:34 -06:00
Justin Starry
7435a7b0ed
feat: support creating secp256k1 instructions with eth address ( #15626 )
2021-03-03 02:16:36 +08:00
Greg Fitzgerald
43663b1750
Fix clippy warnings ( #15632 )
2021-03-02 08:58:14 -08:00
Jeff Washington (jwash)
da47ab7e50
fix indentation format problem ( #15618 )
...
* fix indentation format problem
* fix indentation format problem
2021-03-02 10:46:00 -06:00
Greg Fitzgerald
aad79d9d5c
Remove unused Accounts state ( #15611 )
...
* Remove dead state from Accounts
* Refactor to remove reference to self.slot
Account::default() has zero lamports, so would return None anyway
2021-03-02 08:28:25 -08:00
sakridge
2ff6942ed3
Use cluster average skip rate for stake-o-matic ( #15579 )
2021-03-02 07:45:17 -08:00
behzad nouri
416ea38028
adds metrics for the size and number of batches in bank_send_loop ( #15627 )
2021-03-02 15:44:35 +00:00
Greg Fitzgerald
2463cc1e6a
Fix typos ( #15610 )
2021-03-02 06:36:49 -08:00
Jack May
d73af9c1dd
cli: don't overallocate upgradeable buffer accounts ( #15603 )
2021-03-02 00:45:53 -08:00
Jack May
4789a13a6e
configure rust-bpf toolchain for each tree ( #15620 )
2021-03-02 00:45:28 -08:00
Tyera Eulberg
acf5e4e219
Update Cargo.lock
2021-03-02 00:53:14 -07:00
Jack May
3cd00965a7
Enable BPF program instruction traces ( #15613 )
2021-03-01 23:11:58 -08:00
Trent Nelson
4f63afce32
ci: drop redundant programs/bpf audit
2021-03-01 21:24:57 -07:00
Trent Nelson
15e1314209
ci: disallow uncommitted Cargo.lock changes
2021-03-01 21:24:57 -07:00
Trent Nelson
3c1dd891af
ci: checks - factor out audit so it can run independently
2021-03-01 21:24:57 -07:00
Trent Nelson
21f66179ba
ci: run clippy before fmt
2021-03-01 21:24:57 -07:00
Jack May
fbb1012584
cli: dump non-upgradeable programs ( #15598 )
2021-03-01 18:11:45 -08:00
Justin Starry
55f357153a
fix: secp256k1 instruction should accept 64 byte public key ( #15584 )
2021-03-02 09:01:31 +08:00
Michael Vines
640e36287e
Move ValidatorExit into ValidatorConfig, making it accessible from the solana-validator crate
2021-03-01 16:49:56 -08:00
sakridge
f1223fb783
Lower blockstore processor error severity ( #15578 )
2021-03-01 14:57:37 -08:00
Josh
8c73187b1e
fix: expand vote details card to cover all instructions ( #15602 )
2021-03-01 13:45:19 -08:00
Josh
d679eff3fa
fix: remove old hotfix for web3 inner instructions ( #15604 )
2021-03-01 13:44:43 -08:00