sakridge
c644b05c54
Fix avx check with newest nightly compiler ( #13465 )
2020-11-09 08:04:34 -08:00
dependabot[bot]
dab2ad245f
chore:(deps): bump react-chartjs-2 from 2.10.0 to 2.11.1 in /explorer ( #13476 )
...
Bumps [react-chartjs-2](https://github.com/reactchartjs/react-chartjs-2 ) from 2.10.0 to 2.11.1.
- [Release notes](https://github.com/reactchartjs/react-chartjs-2/releases )
- [Commits](https://github.com/reactchartjs/react-chartjs-2/compare/2.10.0...2.11.1 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-11-09 09:12:39 +00:00
Ryo Onodera
5306eb93cc
Clean up Delegation::stake_activating_and_deactivating ( #13471 )
2020-11-09 17:39:56 +09:00
behzad nouri
73ac104df2
propagates errors out of Packet::from_data ( #13445 )
...
Packet::from_data is ignoring serialization errors:
https://github.com/solana-labs/solana/blob/d08c3232e/sdk/src/packet.rs#L42-L48
This is likely never useful as the packet will be sent over the wire
taking bandwidth but at the receiving end will either fail to
deserialize or it will be invalid.
This commit will propagate the errors out of the function to the
call-site, allowing the call-site to handle the error.
2020-11-08 15:10:03 +00:00
Ryo Onodera
737d3e376d
Clean up Delegation::stake_and_activating ( #13460 )
2020-11-08 17:19:27 +09:00
Ryo Onodera
a81e7e7749
Output more inflation calc details in ledger-tool ( #13345 )
...
* Output more inflation calc details in ledger-tool
* Fix broken ci...
* Rename confusing variables
* Fix panic by wrapping PointValue with Opiton...
* Minor modifications
* Remove explict needless flush; Drop already does
* Yet another csv field adjustments
* Add data_size and rename epochs to earned_epochs
* Introduce null_tracer
* Unwrap Option in new_from_parent_with_tracer
* Don't shorten identifiers
* Allow irrefutable_let_patterns temporalily
* More null_tracer
* More field adjustments
2020-11-08 16:43:50 +09:00
Michael Vines
549492954e
Add PATH to GNU readlink
2020-11-07 11:27:32 -08:00
Ryo Onodera
c5b9831bfb
Don't abort for missing epoch rewards; intead display warn ( #13457 )
2020-11-07 09:32:29 +00:00
Michael Vines
abc27d2900
Install coreutils on osx for 'readlink -f' support
2020-11-06 23:00:51 -08:00
Trent Nelson
b4790120cb
CLI: Make clear that nonce account 'Nonce' field is a blockhash
2020-11-06 23:16:19 +00:00
Tyera Eulberg
4c5f345798
Fix stake split rent-exempt adjustment ( #13357 )
...
* Add failing tests
* Fix stake split
* Calculate split rent-exempt-reserve and use
* Add comment in rent.rs
* Add tests for edge cases when splitting to larger accounts, and reject overflow splits
* Reframe InsufficientFunds checks in terms of lamports var
* Test hardening review comments
2020-11-06 20:32:05 +00:00
Michael Vines
0ea795caa8
cargo-build-bpf/cargo-test-bpf now support --workspace/--all
2020-11-06 12:27:46 -08:00
Trent Nelson
fe1e08b9ad
stake: Consider withdraws we redelegating
2020-11-06 18:51:11 +00:00
Trent Nelson
491ad59d2e
stake: Add redelegation failing test
2020-11-06 18:51:11 +00:00
Michael Vines
1a70a2a25b
cargo-test-bpf now sets the "test-bpf" feature for crate tests
...
The feature allows for tests to distinguish between `cargo test` and
`cargo test-bpf` primarily for the purpose of excluding CPI tests that
require the system program under `cargo test`, as the path to enabling
CPI in `cargo test`-based testing is unclear
2020-11-06 10:21:07 -08:00
Ryo Onodera
d08c3232e2
Show more detailed vote history in shorter format ( #13374 )
...
* Show more detailed vote history in shorter format
* Improve wording
* fmt
2020-11-07 00:07:40 +09:00
dependabot[bot]
b7811c8992
chore:(deps): bump @types/react from 16.9.55 to 16.9.56 in /explorer ( #13441 )
...
Bumps [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react ) from 16.9.55 to 16.9.56.
- [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>
2020-11-06 09:10:24 +00:00
Tyera Eulberg
1b1d9f6b0c
Feature-gate stake program ( #13394 )
...
* Add legacy stake-program handling
* Strip out duplicative legacy code
* Add feature for stake-program-fix
* Feature-deploy new stake program
* Expand comment
2020-11-06 08:08:11 +00:00
Jack May
84b139cc94
Add builtin mem tests ( #13429 )
2020-11-05 22:20:54 -08:00
Michael Vines
9a1c1fbab8
Add get_rent()
2020-11-05 20:14:34 -08:00
Michael Vines
920cd5285a
Revert "Include Rent in ProgramTest::start() output"
...
This reverts commit c3d2d2134c
.
2020-11-05 20:14:34 -08:00
dependabot[bot]
9e24c9795c
chore: bump marked from 1.2.2 to 1.2.3 in /web3.js ( #13417 )
...
Bumps [marked](https://github.com/markedjs/marked ) from 1.2.2 to 1.2.3.
- [Release notes](https://github.com/markedjs/marked/releases )
- [Changelog](https://github.com/markedjs/marked/blob/master/release.config.js )
- [Commits](https://github.com/markedjs/marked/compare/v1.2.2...v1.2.3 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-11-06 09:58:48 +08:00
Trent Nelson
7a4e293b3b
CI: Check monorepo for consistent crate versions
2020-11-06 01:32:01 +00:00
Trent Nelson
5d4015358a
increment-cargo-version.sh: Add check subcommand
2020-11-06 01:32:01 +00:00
Michael Vines
2d24160376
Add SPL Associated Token Account Program label to explorer
2020-11-05 23:03:03 +00:00
Michael Vines
4d553f4879
Fetch associated-program-account
2020-11-05 23:03:03 +00:00
Michael Vines
b511e51415
Define BPF_OUT_DIR for program-test, also handle -- arguments better
2020-11-05 14:29:17 -08:00
Michael Vines
77d9d06a44
Search BPF_OUT_DIR for programs
2020-11-05 14:29:17 -08:00
Michael Vines
5a435a4342
Check file modification times before strip and dump
2020-11-05 14:29:17 -08:00
Michael Vines
d2b26a65e9
Search for program files in 'target/deploy'
2020-11-05 14:29:17 -08:00
Michael Vines
c988d0f573
Cargo.lock
2020-11-05 14:29:17 -08:00
Michael Vines
6c36a2085f
Add cargo-test-bpf
2020-11-05 14:29:17 -08:00
Michael Vines
78c2d9156b
Remove unneeded .gitignore
2020-11-05 14:29:17 -08:00
Josh
67d570d121
explorer: Capitalize underscore sysvar titles ( #13428 )
2020-11-05 13:36:39 -08:00
Josh
cef0d5879f
explorer: Serum DEX instruction full decoding and instruction cards ( #13330 )
...
* map serum instructions in tokenhistory card
* add token swap instruction parsing
* add serum instruction builders
* add new serum instruction detail cards
* fix decode bug on cancel order by client id
* avoid parsing unsupported instructions
2020-11-05 13:19:02 -08:00
behzad nouri
44b12a1594
adds the missing slash in cargo path ( #13424 )
2020-11-05 20:25:42 +00:00
Jon Cinque
ede891a6c6
docs: Clarify the commitment levels based on questions ( #13387 )
...
* Clarify the commitment levels based on questions
Many people have asked about what commitment levels mean, and which to
choose. This update includes some of the language at
`sdk/src/commitment_config.rs` and a recommendation for different use
cases.
Additionally, the preflight commitment documentation was out of date,
specifying that "max" was always used, and this is no longer the case.
* Update docs/src/developing/clients/jsonrpc-api.md
Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
* Update docs/src/developing/clients/jsonrpc-api.md
Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
* Update docs/src/developing/clients/jsonrpc-api.md
Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
* Fix typo
Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
2020-11-05 20:34:55 +01:00
behzad nouri
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
behzad nouri
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
Tyera Eulberg
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
behzad nouri
118ce47b97
measures processing time of each kind of gossip packets ( #13366 )
2020-11-05 15:34:34 +00:00
dependabot[bot]
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
dependabot[bot]
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
dependabot[bot]
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
Justin Starry
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
Trent Nelson
66c3c6c2b3
CI: Use branch-versioned cargo throughout
2020-11-05 05:05:57 +00:00
Justin Starry
dd54ea78ac
Bump low end validator RAM requirement ( #13406 )
2020-11-05 11:56:14 +08:00
Michael Vines
8c4995b22b
Improve invoke_signed() docs
2020-11-04 23:44:04 +00:00
Michael Vines
661a935075
Final program ELF is now placed in ./target/deploy/ instead of .
2020-11-04 23:03:55 +00:00
Michael Vines
8838a55a1a
Bump spl-token and spl-memo crate versions
2020-11-04 21:44:33 +00:00