Commit Graph

11850 Commits

Author SHA1 Message Date
Michael Vines 3aff8f69af Bump solana/web3.js to 0.80.1 2020-10-12 22:25:44 -07:00
Michael Vines beaa7ff556 fix: permit getConfirmedTransaction log messages field to be null 2020-10-12 21:42:51 -07:00
Michael Vines d83027c0cd Update docs/src/running-validator/vote-accounts.md
Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com>
2020-10-13 04:17:52 +00:00
Michael Vines 253114ca20 Add docs on vote account key rotation 2020-10-13 04:17:52 +00:00
Michael Vines 649fe6d3b6 get_vote_accounts: access HashMap directly instead of turning it into an iterator 2020-10-13 04:12:10 +00:00
Trent Nelson c38021502e CI: Fix crate publication 2020-10-12 22:19:24 +00:00
Michael Vines 65213a1782 Use latest stable channel release if there's no beta release 2020-10-12 21:57:38 +00:00
Jack May c24da1ee16
fix native_loader behavior for invalid accounts (#12814) 2020-10-12 13:40:04 -07:00
Trent Nelson efbe37ba20 RpcClient: Encode TXs as base64 by default 2020-10-12 20:36:36 +00:00
Eric Williams 1ab36203de
Retry inflation parameter update along with documentation updates (#12778)
* update initial inflation parameter

* update economics section of docs
2020-10-12 13:10:57 -07:00
Ryo Onodera 2f5bb7e507
Move no-0-rent rent dist. behavior under feature (#12804) 2020-10-12 08:47:52 +00:00
dependabot[bot] 80f9df169b
chore: bump jest from 26.5.0 to 26.5.3 in /web3.js (#12809)
Bumps [jest](https://github.com/facebook/jest) from 26.5.0 to 26.5.3.
- [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.5.0...v26.5.3)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-10-12 08:45:35 +00:00
dependabot[bot] 447b3c9413
chore: bump eslint from 7.10.0 to 7.11.0 in /web3.js (#12808)
Bumps [eslint](https://github.com/eslint/eslint) from 7.10.0 to 7.11.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.10.0...v7.11.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-10-12 08:24:53 +00:00
dependabot[bot] 2e58d1d1dd
chore: bump semantic-release from 17.1.2 to 17.2.0 in /web3.js (#12807)
Bumps [semantic-release](https://github.com/semantic-release/semantic-release) from 17.1.2 to 17.2.0.
- [Release notes](https://github.com/semantic-release/semantic-release/releases)
- [Commits](https://github.com/semantic-release/semantic-release/compare/v17.1.2...v17.2.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-10-12 08:23:20 +00:00
dependabot[bot] 9c64b2f4ab
chore:(deps): bump @types/node from 14.11.5 to 14.11.8 in /explorer (#12806)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.11.5 to 14.11.8.
- [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-12 08:22:00 +00:00
dependabot[bot] d86c4ef0ef
chore:(deps): bump @solana/web3.js from 0.79.0 to 0.80.0 in /explorer (#12805)
Bumps [@solana/web3.js](https://github.com/solana-labs/solana-web3.js) from 0.79.0 to 0.80.0.
- [Release notes](https://github.com/solana-labs/solana-web3.js/releases)
- [Commits](https://github.com/solana-labs/solana-web3.js/compare/v0.79.0...v0.80.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-10-12 08:07:31 +00:00
Michael Vines b3c2752bb0 simulate_transaction_with_config() now passes full config to server 2020-10-11 21:45:00 -07:00
Alexandre Esteves 6bbf6a79b7
Check ELF file for errors before deploy (#12741)
* Check ELF file for errors before deploy

* Update cli/src/cli.rs

Co-authored-by: Michael Vines <mvines@gmail.com>

* Fix formatting

* Bump solana_rbpf

Co-authored-by: Michael Vines <mvines@gmail.com>
2020-10-11 21:19:47 -07:00
Michael Vines 859eb606da Cargo.lock 2020-10-11 18:51:09 +00:00
Michael Vines 2301dcf973 Rework cargo audit ignores 2020-10-11 18:51:09 +00:00
Michael Vines d3b0f87a49 Switch to tempfile 2020-10-11 18:51:09 +00:00
Michael Vines 8a119c1483 Bump reqwest/rayon to get past `cargo audit` 2020-10-11 18:51:09 +00:00
Michael Vines 1fc7c1ecee Don't bother paying 0 rent 2020-10-10 17:02:26 +00:00
Michael Vines 1859fbeb30 Update gossip entrypoints 2020-10-10 08:39:13 -07:00
Josh 86ca85d72b
explorer: Add support for all parsed accounts (#11842)
* introduce vote and nonce validators

* introduce config, nonce, sysvar, vote validators / types

* change ConfigProgram to ConfigProgramData

* introduce vote account section and nonce account section, clean up superstructs

* nonce section

* round out vote account and nonce account

* refactor account components, add votes tab

* update program data name to program

* introduce slot hashes, stake history

* introduce blockhashes card and config account

* run fix format

* remove comment

* introduce config section and typings

* refactor tabs if blocks

* change superstructs to pick in some cases

* remove account owners, rename vote history, some nit fixes

* general cleanup and improvements

* add recency column

* add balance row to parsed accounts

* union account types under sysvar and config for improved typing. modify row headers for consistency.

* remove random spaces

* use proper type checking and clean up a cast
2020-10-10 01:03:45 -07:00
Justin Starry f1bbe1cd84
feat: publish more docker ports in localnet script (#12788) 2020-10-10 14:21:47 +08:00
Josh 9478063b3d
Explorer: introduce program logs section on transaction details page (#12625)
* introduce program logs section on transaction details page

* update web3.js version
2020-10-09 23:14:00 -07:00
Michael Vines 1b16790325 fix: surface full block rewards type 2020-10-09 21:54:13 -07:00
Michael Vines c5c8da1ac0 Expose all rewards (fees, rent, voting and staking) in RPC getConfirmedBlock and the cli 2020-10-09 21:54:13 -07:00
Michael Vines 403790760c Default to 50% rent burn 2020-10-09 21:52:31 -07:00
Tyera Eulberg 5800217998
Fix typo (#12780) 2020-10-10 00:35:52 +00:00
Jack May 9ac8db3533
document program address collisions (#12774) 2020-10-09 23:19:41 +00:00
Tyera Eulberg b028c47d2b
Correct Bank timestamp drift every slot (#12737)
* Move timestamp helper to sdk

* Add Bank method for getting timestamp estimate

* Return sysvar info from Bank::clock

* Add feature-gated timestamp correction

* Rename unix_timestamp method to be more descriptive

* Review comments

* Add timestamp metric
2020-10-09 21:53:41 +00:00
Trent Nelson ed95071c27
Add convenience script for working in stability branches (#12765)
* Add convenience script for working in stability branches

* Update scripts/curgo.sh

Co-authored-by: Michael Vines <mvines@gmail.com>

* re{locate,name} to /cargo

Co-authored-by: Michael Vines <mvines@gmail.com>
2020-10-09 14:57:27 -06:00
Jack May c3907be623
Add adjustable stack size and call depth (#12728) 2020-10-09 13:07:09 -07:00
carllin 16d45b8480
Fix zero-lamport accounts preventing slot cleanup (#12606)
Co-authored-by: Carl Lin <carl@solana.com>
2020-10-09 12:40:08 -07:00
Ryo Onodera 1f4bcf70b0
Fix various ledger-tool error due to no builtins (#12759)
* Fix various ledger-tool error due to no builtins

* Add missing file...
2020-10-09 12:19:36 -06:00
Jack May 2cd7cd3149
Bump max invoke depth to 4 (#12742) 2020-10-09 10:33:12 -07:00
Michael Vines 3fedcdc6bc Advise setting `--wal-recovery-mode`, and using `--private-rpc` for mainnet-beta 2020-10-09 15:41:19 +00:00
dependabot[bot] d6f1befee6
chore: bump @solana/spl-token from 0.0.10 to 0.0.11 in /web3.js (#12757)
Bumps [@solana/spl-token](https://github.com/solana-labs/solana-program-library) from 0.0.10 to 0.0.11.
- [Release notes](https://github.com/solana-labs/solana-program-library/releases)
- [Commits](https://github.com/solana-labs/solana-program-library/commits)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-10-09 08:22:09 +00:00
dependabot[bot] 5394ca580f
chore:(deps): bump @types/react-select in /explorer (#12756)
Bumps [@types/react-select](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-select) from 3.0.21 to 3.0.22.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-select)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-10-09 08:09:36 +00:00
dependabot[bot] 8ec1a66f8a
chore:(deps): bump @solana/web3.js from 0.78.3 to 0.79.0 in /explorer (#12755)
Bumps [@solana/web3.js](https://github.com/solana-labs/solana-web3.js) from 0.78.3 to 0.79.0.
- [Release notes](https://github.com/solana-labs/solana-web3.js/releases)
- [Commits](https://github.com/solana-labs/solana-web3.js/compare/v0.78.3...v0.79.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-10-09 08:07:03 +00:00
carllin c879e7c1ad
Fix fee mismatch on snapshot deserialize (#12697)
Co-authored-by: Carl Lin <carl@solana.com>
2020-10-08 23:44:41 -07:00
Ryo Onodera 81489ccb76
Only fetch snapshot if it's newer than local (#12663)
* Only fetch snapshot if it's newer than local

* Prefer as_ref over clone

* More nits

* Don't wait forwever for newer snapshot
2020-10-09 15:05:41 +09:00
Michael Vines c8807d227a Add inflation_kill_switch feature 2020-10-08 21:31:31 -07:00
Josh e0eb374d9c
feat: introduce getRecentPerformanceSamples rpc (#12442)
* feat: introduce getRecentPerformanceSamples rpc

* test: indroduce tests and clean up style

* test: skip live tests

* feat: run tests live
2020-10-08 20:26:58 -07:00
Justin Starry 6972e63f51
fix: return correct number of signatures needed to load programs (#12729) 2020-10-09 08:58:03 +08:00
Dan Albert 2c5f83c264
Add new internal accounts (#12740)
Co-authored-by: publish-docs.sh <maintainers@solana.com>
2020-10-09 00:48:32 +00:00
Michael Vines 3a04026599 Minor variable name cleanup 2020-10-08 17:44:19 -07:00
Josh 8f5431551e
Store program logs in blockstore / bigtable (TransactionWithStatusMeta) (#12678)
* introduce store program logs in blockstore / bigtable

* fix test, transaction logs created for successful transactions

* fix test for legacy bincode implementation around log_messages

* only api nodes should record logs

* truncate transaction logs to 100KB

* refactor log truncate for improved coverage
2020-10-08 12:06:15 -07:00