Commit Graph

11936 Commits

Author SHA1 Message Date
b5c8b86e7c clarify comment (#13289) 2020-10-29 21:16:01 +00:00
ecd74c3786 Explorer: correct system instruction names (#13284)
* fix system instruction names
2020-10-29 13:14:22 -07:00
6606590b81 Updates rbpf to v0.2.0, (#12951)
which unifies the interfaces of the interpreter and the JIT.
However, the JIT is not enabled yet.
2020-10-29 11:34:52 -07:00
7b3f96ab30 fix: fallback to connection commitment when confirming transactions (#13285)
* fix: fallback to connection commitment when confirming transactions

* chore: bump

* chore: fix tests
2020-10-29 17:22:53 +00:00
636ae12621 Explorer: use explicit types for instruction info (#13257) 2020-10-29 23:46:36 +08:00
0d233370e8 Explorer: disable sentry error for cluster stats timeout (#13283) 2020-10-29 08:38:51 -07:00
3738611f5c adds more parallel processing to gossip packets handling (#12988) 2020-10-29 15:17:19 +00:00
363c148dbe Disable eager rent collection for less noise (#13275) 2020-10-29 14:16:38 +00:00
be80f6d5c5 excludes origin from prune set (#13204)
On the receiving end, prune messages are ignored if the origin points to
the node itself:
https://github.com/solana-labs/solana/blob/631f029fe/core/src/crds_gossip_push.rs#L285-L295
So to avoid sending these over the wire, the requester can exclude
origin from the prune set.
2020-10-29 12:50:58 +00:00
0f05e086fe Explorer: fix slot links and block details page on devnet (#13274) 2020-10-29 20:34:05 +08:00
c74c565d25 Explorer: Bump web3 to v0.86.1 (#13273) 2020-10-29 20:20:42 +08:00
65ee3a6bdd Refactors the common code of test and bench targets into the solana_runtime::bpf_test_utils module. (#13203) 2020-10-29 10:04:47 +01:00
a9f339a3ed chore:(deps): bump @types/react from 16.9.53 to 16.9.55 in /explorer (#13271)
Bumps [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react) from 16.9.53 to 16.9.55.
- [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-10-29 08:38:45 +00:00
bacfb5103f chore:(deps): bump @types/react-dom from 16.9.8 to 16.9.9 in /explorer (#13228)
Bumps [@types/react-dom](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-dom) from 16.9.8 to 16.9.9.
- [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>
2020-10-29 08:26:35 +00:00
ebcc8086f8 chore:(deps): bump @types/node from 14.14.5 to 14.14.6 in /explorer (#13270)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.14.5 to 14.14.6.
- [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>
2020-10-29 08:10:07 +00:00
5fb8b84d84 Explorer: tweak cluster stats page (#13267) 2020-10-29 13:17:45 +08:00
ffeadd4e29 Explorer: don't throw error for strange token instructions (#13268) 2020-10-29 13:17:35 +08:00
c458d4b213 move Account to solana-sdk (#13198) 2020-10-28 22:01:07 -07:00
d5e439037b Make bad_bank_hash test faster (#13206) 2020-10-28 21:44:42 -07:00
032a7d36ff explorer: wrap bytes on bpf-loader-2 write instruction (#13253) 2020-10-28 21:08:24 -07:00
61c2970141 Explorer: remove wasm stake parsing (#13266) 2020-10-29 11:37:55 +08:00
bc16b58d75 fix: fix TypeError when confirmed block is not found (#13264) 2020-10-29 11:23:07 +08:00
781b92a8c0 Explorer: Linkify all displays of slot number (#13262) 2020-10-29 10:45:44 +08:00
144bd36674 Explorer: fix confirmed block refetch (#13261) 2020-10-29 10:36:48 +08:00
92d6521a7f Add try_find_program_address() 2020-10-28 19:34:51 -07:00
c2dbf53d76 Update FeatureSet::active to include slot-activated (#13256)
* Update FeatureSet::active to include slot-activated

* Clippy suggestion
2020-10-29 02:34:19 +00:00
a74f0f90e4 Explorer: Disable raw button for unknown instructions (#13260) 2020-10-29 10:27:37 +08:00
2cf44a9e14 Explorer: Show empty state when block has no transactions (#13259) 2020-10-29 09:51:19 +08:00
de71fb9bdd Explorer: trim whitespace in search bar (#13258) 2020-10-29 09:44:27 +08:00
e7b7c15198 feat: print program logs when transaction send fails (#13213) 2020-10-29 08:59:16 +08:00
413dfb01d5 explorer: Update instruction details cards to handle parsed instructions for system, stake, and bpf-loader (#13247)
* update instruction cards to support system, stake, and bpf-loader parsed instructions
2020-10-28 15:28:12 -07:00
db9ddc7e5b Update links from sdk to program (#13248) 2020-10-28 15:16:58 -06:00
664b6125b6 Add doc page on sysvar accounts (#13237)
* Add doc page on sysvar accounts

* Update with suggestions
2020-10-28 14:54:36 -06:00
32c31f2689 CI: Don't remove user's config dir 2020-10-28 20:19:45 +00:00
eb597cd60f docs: Reference metrics envvars for each cluster 2020-10-28 19:30:55 +00:00
4dc4fefee2 docs: Remove stale metrics steps 2020-10-28 19:30:55 +00:00
4698ee5e4a Improve final report of ledger-tool capitalization (#13232) 2020-10-28 17:10:09 +00:00
ae91270961 implements ping-pong packets between nodes (#12794)
https://hackerone.com/reports/991106

> It’s possible to use UDP gossip protocol to amplify DDoS attacks. An attacker
> can spoof IP address in UDP packet when sending PullRequest to the node.
> There's no any validation if provided source IP address is not spoofed and
> the node can send much larger PullResponse to victim's IP. As I checked,
> PullRequest is about 290 bytes, while PullResponse is about 10 kB. It means
> that amplification is about 34x. This way an attacker can easily perform DDoS
> attack both on Solana node and third-party server.
>
> To prevent it, need for example to implement ping-pong mechanism similar as
> in Ethereum: Before accepting requests from remote client needs to validate
> his IP. Local node sends Ping packet to the remote node and it needs to reply
> with Pong packet that contains hash of matching Ping packet. Content of Ping
> packet is unpredictable. If hash from Pong packet matches, local node can
> remember IP where Ping packet was sent as correct and allow further
> communication.
>
> More info:
> https://github.com/ethereum/devp2p/blob/master/discv4.md#endpoint-proof
> https://github.com/ethereum/devp2p/blob/master/discv4.md#wire-protocol

The commit adds a PingCache, which maintains records of remote nodes
which have returned a valid response to a ping message, and on-the-fly
ping messages pending a pong response from the remote node.

When handling pull-requests, those from addresses which have not passed
the ping-pong check are filtered out, and additionally ping packets are
added for addresses which need to be (re)verified.
2020-10-28 17:03:02 +00:00
49e11e1f9c Explorer Block Page (#12854)
* Solarweave Implementation

* Fixed formatting

* Revisions and QA

* Added block links to transaction page

* Create Blockpage

* QA and Revisions

* Finalized QA & Revisions

* QA & Revisions
2020-10-29 00:16:27 +08:00
5919e67c2a fix: broken inner instruction struct validator (#13231)
* add-inner-trx

* add compiled instructions

* remove type parsed inner instruction mistake

* add fix import & struct union for InnerInstruction

* import type connection

Co-authored-by: Viacheslav Tsurka <vt@parity.digital>
2020-10-28 22:38:39 +08:00
fe8c5b0f0f feat: add support for inner instructions metadata (#13224)
* add-inner-trx

* add compiled instructions

* remove type parsed inner instruction mistake

Co-authored-by: Viacheslav Tsurka <vt@parity.digital>
2020-10-28 17:13:51 +08:00
fbc07bf327 chore: bump buffer from 5.6.1 to 5.7.0 in /web3.js (#13229)
Bumps [buffer](https://github.com/feross/buffer) from 5.6.1 to 5.7.0.
- [Release notes](https://github.com/feross/buffer/releases)
- [Commits](https://github.com/feross/buffer/compare/v5.6.1...v5.7.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-10-28 08:25:20 +00:00
3d01433512 chore: bump eslint-config-prettier from 6.14.0 to 6.15.0 in /web3.js (#13227)
Bumps [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier) from 6.14.0 to 6.15.0.
- [Release notes](https://github.com/prettier/eslint-config-prettier/releases)
- [Changelog](https://github.com/prettier/eslint-config-prettier/blob/master/CHANGELOG.md)
- [Commits](https://github.com/prettier/eslint-config-prettier/compare/v6.14.0...v6.15.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-10-28 08:21:54 +00:00
e39dd7e739 chore:(deps): bump @types/node from 14.14.3 to 14.14.5 in /explorer (#13225)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.14.3 to 14.14.5.
- [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>
2020-10-28 08:09:11 +00:00
7d2962135d Use pico inflation for ledger-tool capitalization --enable-inflation (#13215)
* Use pico inflation for ledger-tool capitalization --enable-inflation

* rust fmt
2020-10-28 15:30:39 +09:00
4e0d1b1d4a more portable install.sh (#13114) 2020-10-27 22:43:34 -07:00
6d4c69b7c3 Use zstd for create-snapshot (#13214) 2020-10-28 05:30:25 +00:00
6fa40f10d1 Explorer: Bump react-scripts and typescript to v4 (#13216) 2020-10-28 12:49:28 +08:00
f96ab5a818 Fix log (#13207)
Co-authored-by: Carl Lin <carl@solana.com>
2020-10-27 18:56:57 -07:00
c4962af9eb Parse vote instructions (#13202) 2020-10-27 17:53:17 -06:00