Commit Graph

17167 Commits

Author SHA1 Message Date
0269bf0f19 Bump version to 1.9.17 2022-04-15 09:30:21 +00:00
4e5edd8a46 cli: sort option for validators by version (#24236)
(cherry picked from commit 91993d89b0)

# Conflicts:
#	Cargo.lock
#	cli-output/Cargo.toml
#	programs/bpf/Cargo.lock

Co-authored-by: Trent Nelson <trent@solana.com>
v1.9.16
2022-04-14 21:58:05 +00:00
2ac42ef4ec Remove duplicate increment (#24219) (#24225)
(cherry picked from commit ff3b6d2b8b)

Co-authored-by: carllin <carl@solana.com>
2022-04-14 13:24:33 -07:00
ad6df47c24 refactor clone 2022-04-14 13:22:52 -07:00
468d9b3933 Bump bpf-tools to v1.25 (#24289)
- Tweak linker script
  Ensure that all read only sections end up in one segment, and
  everything else in other segments. Discard .eh_frame, .hash and
  .gnu.hash since they are unused.
- Don't create invalid string slices in stdout/stderr on Solana
- Report exceeded stack size as a warning if dynamic frames are off
- Native support for signed division in SBF
  Adds BPF_SDIV, which is enabled only for the SBF subtarget.
- Introduce dynamic stack frames and the SBFv2 flag
  Dynamic stack frames  are currently opt-in and enabled setting
  cpu=sbfv2. When sbfv2 is used, ELF files are flagged with
  e_flags=EF_SBF_V2 so the runtime can detect it and react
  accordingly.

(cherry picked from commit 6b611e1c52)

Co-authored-by: Dmitri Makarov <dmakarov@alumni.stanford.edu>
2022-04-13 20:05:22 +00:00
89c0357ec8 Bump sbf-tools version to v1.24
(cherry picked from commit 689064a4f4)
2022-04-12 19:09:44 -07:00
2ae5b411f5 Double the chunk size for sending the program binary data in tx
(cherry picked from commit 03ed334ebb)

# Conflicts:
#	programs/bpf/tests/programs.rs
2022-04-12 19:09:44 -07:00
643ae053ab Bump version to v1.9.16 2022-04-09 03:08:56 +00:00
e02542003d fix merge conflicts v1.9.15 2022-04-08 19:22:26 -05:00
671e9cbac1 Address review comments
(cherry picked from commit a058f348a2)

# Conflicts:
#	runtime/src/cost_tracker.rs
2022-04-08 19:22:26 -05:00
55e64910f7 Unittest for cost tracker after process_and_record_transactions
(cherry picked from commit 2ed29771f2)
2022-04-08 19:22:26 -05:00
9ae13f26e5 Adjustments to cost_tracker updates
- don't store pending tx signatures and costs in CostTracker
- apply tx costs to global state immediately again
- go from commit_or_cancel to update_or_remove, where the cost tracker
  is either updated with the true costs for successful tx, or the costs
  of a retryable tx is removed
- move the function into qos_service and hold the cost tracker lock for
  the whole loop

(cherry picked from commit 924b8ea1eb)

# Conflicts:
#	core/src/qos_service.rs
#	runtime/src/cost_tracker.rs
2022-04-08 19:22:26 -05:00
6cb6b9206f - Only commit successfully executed transactions' cost to cost_tracker;
- In-fly transactions are pended in cost_tracker until being committed
  or cancelled;

(cherry picked from commit 9e07272af8)

# Conflicts:
#	core/src/qos_service.rs
#	runtime/src/cost_model.rs
#	runtime/src/cost_tracker.rs
2022-04-08 19:22:26 -05:00
a225421737 remove 'check_hash' from accounts hash calc (backport #23873) (backport #23902) (#24191)
* disable 'check_hash' on accounts hash calc (#23873) (#23902)

(cherry picked from commit 5a892af2fe)

Co-authored-by: Jeff Washington (jwash) <wash678@gmail.com>
(cherry picked from commit f0c5962817)

# Conflicts:
#	runtime/src/accounts_db.rs

* resolve conflicts

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Co-authored-by: Jeff Washington (jwash) <wash678@gmail.com>
2022-04-08 15:44:33 -05:00
7615585464 v1.9: Bump tonic, tonic-build, prost, and etcd-client (#24159)
* Bump tonic, prost, and etcd-client

* Restore doc ignores

* Restore clippy ignore
2022-04-08 10:22:05 -06:00
1489cbf5a0 Note this is a modified backport that does not SAVE the new fields, but does load them. (#24074) (#24078)
Original:
Start saving/loading prior_roots(_with_hash) to snapshot (#23844)

    * Start saving/loading prior_roots(_with_hash) to snapshot

    * Update runtime/src/accounts_index.rs

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

    * Update runtime/src/accounts_index.rs

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

    * update comment

    Co-authored-by: Michael Vines <mvines@gmail.com>
    (cherry picked from commit 396b49a7c1)

Co-authored-by: Jeff Washington (jwash) <wash678@gmail.com>
(cherry picked from commit b157a9111f)

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2022-04-08 09:55:00 -05:00
af3f26ac96 reduces gossip crds stats (#24132) (#24143)
(cherry picked from commit cd09390367)

Co-authored-by: behzad nouri <behzadnouri@gmail.com>
2022-04-06 18:26:53 +00:00
a812f4410e Specify if archive size datapoint is for full or incremental snapshots (#23941) (#23956)
(cherry picked from commit 31b707b625)

Co-authored-by: Brooks Prumo <brooks@solana.com>
2022-03-26 19:08:21 +00:00
aa26edb7fe Bump version to 1.9.15 (#23954) 2022-03-26 11:33:49 -05:00
caa55bb0f2 cli: allow skipping fee-checks when writing program buffers (hidden) v1.9.14 2022-03-25 19:34:26 -06:00
fb5b42cabc Add get_confirmed_blocks_with_data method (backport #23618) (#23939)
* add get_confirmed_blocks_with_data and get_protobuf_or_bincode_cells

(cherry picked from commit f3219fb695)

* appease clippy

(cherry picked from commit 5533e9393c)

* use &[T] instead of Vec<T> where appropriate

clippy

(cherry picked from commit fbcf6a0802)

* modify get_protobuf_or_bincode_cells to accept and return an iterator

(cherry picked from commit f717fda9a3)

* make get_protobuf_or_bincode_cells accept IntoIter on row_keys, make get_confirmed_blocks_with_data return an Iterator

(cherry picked from commit d8be0d9430)

Co-authored-by: Edgar Xi <edgarxi97@gmail.com>
2022-03-26 01:13:32 +00:00
0c01b236c6 ci: don't allow mergify to add automerge label to merged PRs (#23930)
(cherry picked from commit e34c52934c)

Co-authored-by: Trent Nelson <trent@solana.com>
2022-03-25 16:20:04 +00:00
6e02c14055 docs: fix stake state typo (#23776) (#23778)
(cherry picked from commit c556811c0f)

Co-authored-by: g1stavo <gustavocsalvador@gmail.com>
2022-03-22 00:10:40 +00:00
a70bce050d Add ability to get the latest incremental snapshot via RPC (#23788) (#23808)
(cherry picked from commit 739e43ba58)

Co-authored-by: DimAn <diman@diman.io>
2022-03-21 20:07:34 +00:00
edb38c4bbd validator: --only-known-rpc requires a --known-validator ... (#23767)
(cherry picked from commit ce2e82cfb6)

Co-authored-by: Trent Nelson <trent@solana.com>
2022-03-18 08:54:52 +00:00
2e1989bb9b validator: adds --no-incremental-snapshots NOP arg for v1.10 forward compat 2022-03-17 23:50:37 -06:00
08f4b19a21 Add accounts_data_len to bank snapshot (backport #23714) (#23758)
* Add accounts_data_len to bank snapshot (#23714)

(cherry picked from commit 7ff8c80e25)

# Conflicts:
#	runtime/src/serde_snapshot/tests.rs

* fix frozen abi hash

Co-authored-by: Brooks Prumo <brooks@solana.com>
2022-03-18 04:44:56 +00:00
da6bb66475 Pin version for publish cargo-check (#23716) (#23721)
(cherry picked from commit 330d6db19a)

Co-authored-by: Tyera Eulberg <tyera@solana.com>
2022-03-17 01:52:19 +00:00
8859f35b26 Bump version to 1.9.14 (#23703)
* Bump version to 1.9.14

* Bump openssl-src
2022-03-16 11:21:18 -06:00
3ac7e043a7 Update InvalidRentPayingAccount error (#23680) (#23693)
(cherry picked from commit 410463fb72)

Co-authored-by: Tyera Eulberg <tyera@solana.com>
v1.9.13
2022-03-16 05:25:23 +00:00
db43c5d46d log hash and lamport result of calculate_accounts_hash_without_index (#23425) (#23676)
(cherry picked from commit d909b7c80b)

Co-authored-by: Jeff Washington (jwash) <wash678@gmail.com>
2022-03-15 19:23:13 +00:00
48dc4b3bb2 ledger tool halt at slot verify hash (#23424) (#23677)
(cherry picked from commit ef8b7d9c62)

Co-authored-by: Jeff Washington (jwash) <wash678@gmail.com>
2022-03-15 16:17:29 +00:00
b0543a1ae6 docs: update sysvar docs for load_instruction_at_checked (#22925) (#23673)
* docs: update sysvar docs for load_instruction_at_checked

Update the instruction introspection docs to use the updated load_instruction_at_checked function instead of deprecated load_instruction_at

* Update to load_current_index_checked

(cherry picked from commit 64e2d9dc47)

Co-authored-by: Zayyan Faizal <zayyanf@gmail.com>
2022-03-15 12:51:15 +00:00
8b0576d954 Rename AccountsDb plugins to Geyser plugins (backport #23604) (#23668)
* Rename AccountsDb plugins to Geyser plugins (#23604)

(cherry picked from commit 102dd68a03)

# Conflicts:
#	Cargo.lock
#	Cargo.toml
#	core/Cargo.toml
#	core/src/replay_stage.rs
#	core/src/tvu.rs
#	geyser-plugin-interface/Cargo.toml
#	geyser-plugin-manager/Cargo.toml
#	geyser-plugin-manager/src/geyser_plugin_service.rs
#	geyser-plugin-manager/src/slot_status_notifier.rs
#	validator/src/bin/solana-test-validator.rs
#	validator/src/main.rs

* Fix conflicts

Co-authored-by: Tyera Eulberg <tyera@solana.com>
2022-03-15 05:04:17 +00:00
5c3e1967e6 Add space for keys in calculation for rent exempt in process_set_validator_info (#23485) (#23658)
* Fix `process_set_validator_info`

Add space for keys in calculation for rent exempt in
`process_set_validator_info`.

The space required for allocating the `(ConfigKeys, ValidatorInfo)`
tuple only considered space for `ValidatorInfo`.
But `config_instruction::create_account` also requires space for `n`
keys.

* Remove one clone call from closure

(cherry picked from commit 7eaec26a1c)

Co-authored-by: Enrique Fynn <me@enriquefynn.com>
2022-03-14 23:18:14 +00:00
06ebed861e Bump publish crate timeout 2022-03-13 21:01:15 -07:00
52bd1658cc Disable publish of test crates 2022-03-13 20:48:17 -07:00
07a6b597d0 Update Cargo.toml 2022-03-13 17:22:01 -07:00
857a541ddb Pin histogram crate version to fix cargo publish
(cherry picked from commit 01b6f97f0b)

# Conflicts:
#	ledger-tool/Cargo.toml
2022-03-13 17:22:01 -07:00
87fee49ed7 Add token-balance unit test 2022-03-11 20:58:00 -07:00
3ed915dcc9 Bump version to 1.9.13 (#23614) 2022-03-11 10:09:26 -06:00
3875bc91ab Revert "chore: bump dashmap from 4.0.2 to 5.1.0 (#23372) (#23521)" (#23596)
This reverts commit f56b25ac29.
v1.9.12
2022-03-11 09:12:46 +01:00
e0f5fb887b Ensure blocks do not exceed the max accounts data size during Replay Stage (backport #23422) (#23589)
* Ensure blocks do not exceed the max accounts data size during Replay Stage (#23422)

(cherry picked from commit 3c6840050c)

# Conflicts:
#	runtime/src/bank.rs

* fix conflicts

Co-authored-by: Brooks Prumo <brooks@solana.com>
2022-03-10 18:59:46 +00:00
49952e05cf Report even if slot begins and ends in process_buffered_packets() (#23549) (#23576)
(cherry picked from commit 588414a776)

Co-authored-by: carllin <carl@solana.com>
2022-03-10 07:59:26 +00:00
4a100fbe3b Bump version to 1.9.12 (#23577) 2022-03-09 23:22:45 -06:00
607a98e9d0 remove persist_cost_table code v1.9.11 2022-03-09 21:06:00 -07:00
86a97563b5 Patch validator from loading persisted program costs 2022-03-09 21:06:00 -07:00
4e5d9885da Revert exponential moving average cost model changes (backport #23541) (#23543)
* Revert "fix tests after merge"

This reverts commit ba2d83f580.

(cherry picked from commit 0a17edcc1f)

* Revert "1. Persist to blockstore less frequently;"

This reverts commit 7aa1fb4e24.

(cherry picked from commit c878c9e2cb)

# Conflicts:
#	core/src/cost_update_service.rs
#	core/src/tvu.rs
#	runtime/src/cost_model.rs

* Revert "use EMA in place of Welford"

This reverts commit 6587dbfa47.

(cherry picked from commit 9acbfa5eb1)

* Revert "- estimate a program cost as 2 standard deviation above mean"

This reverts commit a25ac1c988.

(cherry picked from commit 5a0cd05866)

# Conflicts:
#	core/src/cost_update_service.rs
#	runtime/src/cost_model.rs

* fix merge conflicts

Co-authored-by: Carl Lin <carl@solana.com>
Co-authored-by: Tao Zhu <tao@solana.com>
2022-03-09 03:55:36 +00:00
714cf0eff2 solana-validator set-identity no longer writes a tower file unnecessarily (#23542)
(cherry picked from commit b719d6a2ad)

Co-authored-by: Michael Vines <mvines@gmail.com>
2022-03-09 01:55:14 +00:00
babba3b0ff Fix getting the golden snapshot hashes during bootstrap with Incremental Snapshots (#23518) (#23532)
(cherry picked from commit 9b80452c7c)

Co-authored-by: Brooks Prumo <brooks@solana.com>
2022-03-08 23:07:26 +00:00