Commit Graph

11941 Commits

Author SHA1 Message Date
Michael Vines 33884d847a Remove programs clone() 2020-10-29 21:45:24 -07:00
Michael Vines 225bed11c7 Remove Entrypoint type 2020-10-29 21:45:24 -07:00
Michael Vines 2664a1f7ef Remove MessageProcessor::loaders 2020-10-29 21:45:24 -07:00
Michael Vines df8dab9d2b Native/builtin programs now receive an InvokeContext 2020-10-29 21:45:24 -07:00
Greg Fitzgerald ca00197009
Upgrade tarpc and tokio (#13293) 2020-10-29 19:21:18 -06:00
Jack May b5c8b86e7c
clarify comment (#13289) 2020-10-29 21:16:01 +00:00
Josh ecd74c3786
Explorer: correct system instruction names (#13284)
* fix system instruction names
2020-10-29 13:14:22 -07:00
Alexander Meißner 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
Justin Starry 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
Justin Starry 636ae12621
Explorer: use explicit types for instruction info (#13257) 2020-10-29 23:46:36 +08:00
Josh 0d233370e8
Explorer: disable sentry error for cluster stats timeout (#13283) 2020-10-29 08:38:51 -07:00
behzad nouri 3738611f5c
adds more parallel processing to gossip packets handling (#12988) 2020-10-29 15:17:19 +00:00
Ryo Onodera 363c148dbe
Disable eager rent collection for less noise (#13275) 2020-10-29 14:16:38 +00:00
behzad nouri 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
Justin Starry 0f05e086fe
Explorer: fix slot links and block details page on devnet (#13274) 2020-10-29 20:34:05 +08:00
Justin Starry c74c565d25
Explorer: Bump web3 to v0.86.1 (#13273) 2020-10-29 20:20:42 +08:00
Alexander Meißner 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
dependabot[bot] 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
dependabot[bot] 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
dependabot[bot] 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
Justin Starry 5fb8b84d84
Explorer: tweak cluster stats page (#13267) 2020-10-29 13:17:45 +08:00
Justin Starry ffeadd4e29
Explorer: don't throw error for strange token instructions (#13268) 2020-10-29 13:17:35 +08:00
Jack May c458d4b213
move Account to solana-sdk (#13198) 2020-10-28 22:01:07 -07:00
sakridge d5e439037b
Make bad_bank_hash test faster (#13206) 2020-10-28 21:44:42 -07:00
Josh 032a7d36ff
explorer: wrap bytes on bpf-loader-2 write instruction (#13253) 2020-10-28 21:08:24 -07:00
Justin Starry 61c2970141
Explorer: remove wasm stake parsing (#13266) 2020-10-29 11:37:55 +08:00
Justin Starry bc16b58d75
fix: fix TypeError when confirmed block is not found (#13264) 2020-10-29 11:23:07 +08:00
Justin Starry 781b92a8c0
Explorer: Linkify all displays of slot number (#13262) 2020-10-29 10:45:44 +08:00
Justin Starry 144bd36674
Explorer: fix confirmed block refetch (#13261) 2020-10-29 10:36:48 +08:00
Michael Vines 92d6521a7f Add try_find_program_address() 2020-10-28 19:34:51 -07:00
Tyera Eulberg 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
Justin Starry a74f0f90e4
Explorer: Disable raw button for unknown instructions (#13260) 2020-10-29 10:27:37 +08:00
Justin Starry 2cf44a9e14
Explorer: Show empty state when block has no transactions (#13259) 2020-10-29 09:51:19 +08:00
Justin Starry de71fb9bdd
Explorer: trim whitespace in search bar (#13258) 2020-10-29 09:44:27 +08:00
Justin Starry e7b7c15198
feat: print program logs when transaction send fails (#13213) 2020-10-29 08:59:16 +08:00
Josh 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
Tyera Eulberg db9ddc7e5b
Update links from sdk to program (#13248) 2020-10-28 15:16:58 -06:00
Tyera Eulberg 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
Trent Nelson 32c31f2689 CI: Don't remove user's config dir 2020-10-28 20:19:45 +00:00
Trent Nelson eb597cd60f docs: Reference metrics envvars for each cluster 2020-10-28 19:30:55 +00:00
Trent Nelson 4dc4fefee2 docs: Remove stale metrics steps 2020-10-28 19:30:55 +00:00
Ryo Onodera 4698ee5e4a
Improve final report of ledger-tool capitalization (#13232) 2020-10-28 17:10:09 +00:00
behzad nouri 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
The Lone Rōnin 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
Vyacheslav Tsurka 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
Vyacheslav Tsurka 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
dependabot[bot] 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
dependabot[bot] 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
dependabot[bot] 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
Ryo Onodera 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