Tyera Eulberg
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
Tyera Eulberg
ba77e48c12
Don't parse uninitialized system/nonce accounts ( #16584 )
2021-04-15 16:32:29 -06:00
Michael Vines
a535c0e129
Rotate CODECOV_TOKEN
2021-04-15 16:07:04 +00:00
Justin Starry
c8ed14c647
docs: Fix typo in program deploy instructions ( #16572 )
2021-04-15 13:56:19 +00:00
dependabot[bot]
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
dependabot[bot]
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
dependabot[bot]
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
sakridge
9dfe545820
Remove colo nodes ( #16546 )
2021-04-15 00:13:07 -07:00
Tyera Eulberg
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
Trent Nelson
76ce28c723
docs: freshen and clarify rent-exempt dev description
2021-04-15 04:13:57 +00:00
strykerin
1f29031b9d
fix transaction spelling ( #16558 )
2021-04-14 20:02:55 -06:00
Ryan M. Shea
4905bb552b
Add new logo ( #16556 )
2021-04-14 19:02:42 -06:00
Trent Nelson
e61b4b7d70
dl-utils: use wide_msg
everywhere for truncation on narrow terminals
2021-04-14 23:50:42 +00:00
Josh
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
Josh
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
behzad nouri
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
behzad nouri
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
Tao Zhu
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
Justin Starry
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
carllin
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
Connor McFarlane
eddfe06a00
Other hostname changes
2021-04-14 09:46:56 -07:00
Connor McFarlane
d684ec00aa
Correct gossip hostname
2021-04-14 09:46:56 -07:00
Michael Vines
f804ce63c2
Add --faucet-port option
2021-04-14 08:57:49 -07:00
dependabot[bot]
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
dependabot[bot]
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
dependabot[bot]
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
Tyera Eulberg
3bfae8e829
Bump scripts to current commitment variants ( #16526 )
2021-04-14 00:50:59 +00:00
Jack May
74f58376f8
Expand and update instruction count tests ( #16522 )
2021-04-13 16:23:42 -07:00
Michael Vines
f7eadd9d70
bump solana_rbpf from 0.2.5 to 0.2.7 ( #16515 )
2021-04-13 14:49:09 -07:00
Tyera Eulberg
ccb11a939f
Deprecate RpcClient methods, RpcRequest variants ( #16516 )
...
* Deprecate RpcClient methods, RpcRequest variants
* Update cli to getSupply
2021-04-13 14:05:42 -06:00
Brooks Prumo
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
Michael Vines
5c6b38a83c
Derive PartialEq for RpcStakeActivation
2021-04-13 12:34:22 -07:00
Justin Starry
f641429056
Remove blake3 from bpf program dependencies ( #16506 )
2021-04-13 10:06:05 +00:00
Tyera Eulberg
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
Dmitri Makarov
db3bca7edd
Add llvm feature option to compile for Solana BPF target ( #16495 )
2021-04-13 07:20:18 +00:00
Justin Starry
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
Tyera Eulberg
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
Michael Vines
05ad979a2d
canonicalize authorized voter filepath
2021-04-12 17:52:55 -07:00
Jack May
fa83f3bd73
Return sysvars via syscalls ( #16422 )
2021-04-12 16:04:57 -07:00
Michael Vines
2229b70c4e
Add authorized-voter add/remove-all commands
2021-04-12 15:55:28 -07:00
Michael Vines
17a173ebb5
Clean up build warning
2021-04-12 15:55:28 -07:00
Brooks Prumo
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
Dan Albert
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
Tyera Eulberg
fffff2cd75
Add address_cache and exclude loopback from ip limit ( #16487 )
2021-04-12 19:59:38 +00:00
dependabot[bot]
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
Josh
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
Jeff Washington (jwash)
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
Dmitri Makarov
78d1d59889
Augment BPF binary dumps to resolve call instruction targets
2021-04-12 18:36:41 +02:00
Jeff Washington (jwash)
7ba3e710d3
latest_slot uses > current_max ( #16374 )
2021-04-12 10:52:24 -05:00
Jeff Washington (jwash)
6930a77a0f
prepare replace Ancestors HashMap for performance ( #16476 )
2021-04-12 10:51:57 -05:00