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
Jack May
4e0d1b1d4a
more portable install.sh ( #13114 )
2020-10-27 22:43:34 -07:00
Ryo Onodera
6d4c69b7c3
Use zstd for create-snapshot ( #13214 )
2020-10-28 05:30:25 +00:00
Justin Starry
6fa40f10d1
Explorer: Bump react-scripts and typescript to v4 ( #13216 )
2020-10-28 12:49:28 +08:00
carllin
f96ab5a818
Fix log ( #13207 )
...
Co-authored-by: Carl Lin <carl@solana.com>
2020-10-27 18:56:57 -07:00
Tyera Eulberg
c4962af9eb
Parse vote instructions ( #13202 )
2020-10-27 17:53:17 -06:00
Justin Starry
631f029fe9
Account for forward delay in transaction simulation ( #13199 )
2020-10-27 17:25:08 +00:00
dependabot[bot]
e666272ab6
chore: bump eslint from 7.12.0 to 7.12.1 in /web3.js ( #13195 )
...
Bumps [eslint](https://github.com/eslint/eslint ) from 7.12.0 to 7.12.1.
- [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.12.0...v7.12.1 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-10-27 08:25:29 +00:00
dependabot[bot]
cd4a300f0c
chore: bump typescript from 4.0.3 to 4.0.5 in /web3.js ( #13193 )
...
Bumps [typescript](https://github.com/Microsoft/TypeScript ) from 4.0.3 to 4.0.5.
- [Release notes](https://github.com/Microsoft/TypeScript/releases )
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.0.3...v4.0.5 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-10-27 08:21:55 +00:00
dependabot[bot]
f11617c192
chore:(deps): bump @solana/web3.js from 0.83.0 to 0.84.1 in /explorer ( #13196 )
...
Bumps [@solana/web3.js](https://github.com/solana-labs/solana-web3.js ) from 0.83.0 to 0.84.1.
- [Release notes](https://github.com/solana-labs/solana-web3.js/releases )
- [Commits](https://github.com/solana-labs/solana-web3.js/compare/v0.83.0...v0.84.1 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-10-27 08:18:36 +00:00
dependabot[bot]
f5f979ac30
chore:(deps): bump chart.js from 2.9.3 to 2.9.4 in /explorer ( #13194 )
...
Bumps [chart.js](https://github.com/chartjs/Chart.js ) from 2.9.3 to 2.9.4.
- [Release notes](https://github.com/chartjs/Chart.js/releases )
- [Commits](https://github.com/chartjs/Chart.js/compare/v2.9.3...v2.9.4 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-10-27 08:13:06 +00:00
Jack May
bb6ab3a62d
ignore .so files ( #13188 )
2020-10-26 23:14:06 -07:00
Jack May
26eba5ac7d
Fix pr crossing for sysvar keyed-accounts ( #13189 )
2020-10-26 21:59:32 -07:00
Trent Nelson
c88ec9657b
Docs: Clarify where new buildkite agent SSH keys need added
2020-10-27 03:40:05 +00:00
Jack May
322c667655
check sysvar id for AccountInfo ( #13175 )
2020-10-26 20:38:45 -07:00
Trent Nelson
ff4b34202c
Add SSH key for buildkite-agent on achille
2020-10-27 01:57:25 +00:00
Michael Vines
1b343665a1
Move KeyedAccount out of solana-program. Native programs are not supported by solana-program
2020-10-26 18:54:54 -07:00
Trent Nelson
0475107654
fix: export message.from()
2020-10-26 18:59:26 -06:00
Jack May
e3c0cc980b
fix .gitignore ( #13177 )
2020-10-27 00:42:26 +00:00
Jack May
fc83a666fc
macos portable rust-bpf ( #13176 )
2020-10-27 00:11:33 +00:00
Greg Fitzgerald
f58bc8589d
Add Bank::get_signature_status_with_blockhash() ( #13167 )
...
Get the signature status in O(1) time, instead of O(n) where
n is the number of blockhashes in the StatusCache.
2020-10-26 23:52:57 +00:00
Michael Vines
c4fb77f057
Delete .lib.rs.swo
2020-10-26 16:01:25 -07:00
Trent Nelson
a82971879f
CLI: Surface deploy transaction errors
2020-10-26 21:16:22 +00:00
Trent Nelson
8b1638f026
Docs: Testnet has a faucet now
2020-10-26 20:13:46 +00:00
Jack May
35f77ccc73
update call depth docs ( #13155 )
2020-10-26 12:41:48 -07:00
Tyera Eulberg
39686ef098
Use bank timestamp to populate Blockstore::blocktime_cf when correction active ( #13158 )
2020-10-26 19:23:45 +00:00
behzad nouri
4bfda3e766
marks pull request creation time only once per peer ( #13113 )
...
mark_pull_request_creation time requires an exclusive lock on gossip:
https://github.com/solana-labs/solana/blob/16944e218/core/src/cluster_info.rs#L1547-L1548
Current code is redundantly marking each peer once for each request.
There are at most only 2 unique peers, whereas there are hundreds of
requests per each. So the lock is acquired hundreds of time longer than
necessary.
2020-10-26 17:11:31 +00:00
dependabot[bot]
439c06b460
chore: bump jest from 26.6.0 to 26.6.1 in /web3.js ( #13149 )
...
Bumps [jest](https://github.com/facebook/jest ) from 26.6.0 to 26.6.1.
- [Release notes](https://github.com/facebook/jest/releases )
- [Changelog](https://github.com/facebook/jest/blob/master/CHANGELOG.md )
- [Commits](https://github.com/facebook/jest/compare/v26.6.0...v26.6.1 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-10-26 08:37:42 +00:00
dependabot[bot]
542355129d
chore: bump buffer from 5.6.0 to 5.6.1 in /web3.js ( #13152 )
...
Bumps [buffer](https://github.com/feross/buffer ) from 5.6.0 to 5.6.1.
- [Release notes](https://github.com/feross/buffer/releases )
- [Commits](https://github.com/feross/buffer/compare/v5.6.0...v5.6.1 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-10-26 08:27:18 +00:00
dependabot[bot]
9290a1ee95
chore: bump eslint from 7.11.0 to 7.12.0 in /web3.js ( #13151 )
...
Bumps [eslint](https://github.com/eslint/eslint ) from 7.11.0 to 7.12.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.11.0...v7.12.0 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-10-26 08:24:18 +00:00
dependabot[bot]
8862105922
chore:(deps): bump @testing-library/jest-dom in /explorer ( #13150 )
...
Bumps [@testing-library/jest-dom](https://github.com/testing-library/jest-dom ) from 5.11.4 to 5.11.5.
- [Release notes](https://github.com/testing-library/jest-dom/releases )
- [Changelog](https://github.com/testing-library/jest-dom/blob/master/CHANGELOG.md )
- [Commits](https://github.com/testing-library/jest-dom/compare/v5.11.4...v5.11.5 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-10-26 08:13:04 +00:00
dependabot[bot]
da508b0ff7
chore:(deps): bump @types/node from 14.14.2 to 14.14.3 in /explorer ( #13148 )
...
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node ) from 14.14.2 to 14.14.3.
- [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-26 08:09:10 +00:00
Michael Vines
41a56e14fc
Don't reuse BPF target build artifacts
2020-10-26 00:10:50 -07:00
Michael Vines
0a89bb4d3c
Fix reward type encoding
2020-10-26 00:10:50 -07:00
Michael Vines
42a4dfab9a
Remove program feature from SPL builds
2020-10-25 21:07:58 -07:00
Ryo Onodera
5caf81dbf8
Hide noisy specialization warnings for frozen abi ( #13141 )
2020-10-26 04:02:58 +00:00
Ryo Onodera
66c7a98009
Allow existence of vote on root in saved tower ( #13135 )
2020-10-26 11:08:20 +09:00
dependabot[bot]
efe683b3be
chore: bump @babel/plugin-transform-runtime in /web3.js ( #12945 )
...
Bumps [@babel/plugin-transform-runtime](https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-transform-runtime ) from 7.11.5 to 7.12.1.
- [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.12.1/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>
2020-10-25 15:39:05 +08:00
Justin Starry
6e13dbe206
feat: allow setting explicit fee payer for transaction ( #13129 )
2020-10-25 09:59:38 +08:00
Michael Vines
0cc9c94c43
Rename "everything" feature to "full"
2020-10-24 17:26:11 +00:00
Michael Vines
a4956844bd
Update frozen_abi hashes
...
The movement of files in sdk/ caused ABI hashes to change
2020-10-24 08:37:55 -07:00
Michael Vines
dd711ab5fb
Rename solana-program-sdk to solana-program
2020-10-24 08:37:55 -07:00