Commit Graph

24000 Commits

Author SHA1 Message Date
Sylwester Rąpała 63fd5cf049
chore: impl decode for UiAccountData (#33632) 2023-11-06 13:24:13 +01:00
Liam Vovk e840b9759a
Remove RWLock from EntryNotifier because it causes perf degradation (#33797)
* Remove RWLock from EntryNotifier because it causes perf degradation when entry notifications are enabled on geyser

* remove unused RWLock

* Remove RWLock
2023-11-06 00:55:36 -08:00
Justin Starry ebe8afb0c3
Burn fees collected into invalid accounts (#33887)
* refactor: create bank::fee_distribution module

* feature: add checks to fee distribution

* refactor: move Bank::deposit fn into test_utils

* feedback

* feedback 2

* add datapoints

* change to datapoint_warn

* typo
2023-11-06 10:02:22 +08:00
Yihau Chen 662ac8bc86
ci: reorg docker images (#33815)
* ci: remove unnecessary args from docker-run.sh

* ci: remove cargo uninstall from buildkite post checkout

* ci: reorg docker images

* ci: add mscgen for docs
2023-11-03 20:32:38 +08:00
dependabot[bot] 43668c4246
build(deps): bump num_enum from 0.7.0 to 0.7.1 (#33932)
* build(deps): bump num_enum from 0.7.0 to 0.7.1

Bumps [num_enum](https://github.com/illicitonion/num_enum) from 0.7.0 to 0.7.1.
- [Commits](https://github.com/illicitonion/num_enum/commits)

---
updated-dependencies:
- dependency-name: num_enum
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

* [auto-commit] Update all Cargo lock files

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot-buildkite <dependabot-buildkite@noreply.solana.com>
2023-11-03 20:29:46 +08:00
dependabot[bot] cc0e417ecb
build(deps): bump tempfile from 3.8.0 to 3.8.1 (#33925)
* build(deps): bump tempfile from 3.8.0 to 3.8.1

Bumps [tempfile](https://github.com/Stebalien/tempfile) from 3.8.0 to 3.8.1.
- [Changelog](https://github.com/Stebalien/tempfile/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Stebalien/tempfile/commits)

---
updated-dependencies:
- dependency-name: tempfile
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

* [auto-commit] Update all Cargo lock files

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot-buildkite <dependabot-buildkite@noreply.solana.com>
2023-11-03 20:29:16 +08:00
dependabot[bot] 79056341d5
build(deps): bump futures-util from 0.3.28 to 0.3.29 (#33924)
* build(deps): bump futures-util from 0.3.28 to 0.3.29

Bumps [futures-util](https://github.com/rust-lang/futures-rs) from 0.3.28 to 0.3.29.
- [Release notes](https://github.com/rust-lang/futures-rs/releases)
- [Changelog](https://github.com/rust-lang/futures-rs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/futures-rs/compare/0.3.28...0.3.29)

---
updated-dependencies:
- dependency-name: futures-util
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

* [auto-commit] Update all Cargo lock files

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot-buildkite <dependabot-buildkite@noreply.solana.com>
2023-11-03 20:28:53 +08:00
Ryo Onodera a4a66026e1
Introduce InstalledSchedulerPool trait (#33934)
* Introduce InstalledSchedulerPool

* Use type alias

* Remove log_prefix for now...

* Simplify return_to_pool()

* Simplify InstalledScheduler's context methods

* Reorder trait methods semantically

* Simplify Arc<Bank> handling
2023-11-03 16:02:12 +09:00
norwnd 1c00d5d81a
cli: solana-tokens, validate inputs gracefully (#33926)
* cli: solana-tokens, refactor imports

* cli: solana-tokens, validate inputs gracefully

* change Allocation struct field types to simplify things

* fix typos, apply some review suggestions

* preserve backward compatibility for public APIs

* apply latest review suggestions

* address next batch of review comments

---------

Co-authored-by: norwnd <norwnd>
2023-11-02 18:06:00 -06:00
Kirill Fomichev 808f67aead
check plugin name on plugin_reload rpc call (#33582)
* check plugin name on plugin_reload rpc call

* add name to error message
2023-11-01 12:21:53 -07:00
Tyera 25a29c9b7f
solana-tokens: unpub/remove some helpers (#33937)
* Unpub token helpers

* Remove unused method
2023-11-01 17:21:25 +00:00
Jeff Biseda 63abc72e86
remove unused replay-loop-voting-stats values (#33935) 2023-10-31 23:40:45 -07:00
Jeff Biseda 3f805ad06d
improve batch_send error handling (#33936) 2023-10-31 23:39:26 -07:00
Ryo Onodera 136ab21f34
Define InstalledScheduler::wait_for_termination() (#33922)
* Define InstalledScheduler::wait_for_termination()

* Rename to wait_for_scheduler_termination

* Comment wait_for_termination and WaitReason better
2023-10-31 14:33:36 +09:00
Andrew Fitzgerald b2cec5aa48
multinode-demo scripts support --block-production-method arg (#33891) 2023-10-31 12:20:39 +08:00
Illia Bobyr 30491995ed
Fixup: zeroize: Allow versions newer than 1.3 for `curve25519-dalek` (#33930)
Fixes

    commit a099c7a0b8
    Author: Illia Bobyr <illia.bobyr@solana.com>
    Date:   Mon Oct 23 12:19:59 2023 -0700

    zeroize: Allow versions newer than 1.3 for `curve25519-dalek` (#33516)

Use correct commit hash from `solana-labs/curve25519-dalek.git`.
2023-10-31 11:23:00 +08:00
Brooks cdc284189a
Refactors RollingBitField::min() (#33911) 2023-10-28 12:47:29 -04:00
samkim-crypto b0bf24b6fc
[zk-token-proof] Round compute units to nice numbers (#33910)
round zk-token-proof compute units to nice numbers
2023-10-27 15:37:45 -07:00
Joe C 24a4670cef
add program examples repo to docs (#33898) 2023-10-27 14:54:55 -05:00
Brooks 1814b2bc81
Adds logs for starting/stopping of the background account hasher (#33903) 2023-10-27 13:03:33 -04:00
Yihau Chen 1ce91a56a5
ci: fixed sccache version for sccache-action (#33904) 2023-10-27 16:51:34 +00:00
Joe C ecd674bd92
revert programify feature gate (#33897) 2023-10-27 18:28:13 +02:00
Daniel Porteous (dport) 01603fdd1d
Fix typo in versioned-transactions.md (#33902) 2023-10-27 09:45:24 -06:00
Jeff Washington (jwash) a18debc34a
allow test feature to skip rewrites (#33851)
* allow test feature to skip rewrites

* hook up cli arg for test skip rewrites, update tests

* fix sanity checker

* add account hash to abi to fix a test

* reviews

* use hashmap to collect skip_rewrites. exclude skip_rewrites from dirty
pubkey set

* accumulate skipped_rewrite in reduce

* mutex

* fmt

* skip hash verify for this test flag

* add skipped rewrites num stat

* skip bank hash verify not account hash verify

* reviews

---------

Co-authored-by: HaoranYi <haoran.yi@solana.com>
2023-10-27 09:14:05 -05:00
dependabot[bot] f6bce134c5
build(deps): bump serde from 1.0.189 to 1.0.190 (#33877)
* build(deps): bump serde from 1.0.189 to 1.0.190

Bumps [serde](https://github.com/serde-rs/serde) from 1.0.189 to 1.0.190.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.189...v1.0.190)

---
updated-dependencies:
- dependency-name: serde
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

* [auto-commit] Update all Cargo lock files

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot-buildkite <dependabot-buildkite@noreply.solana.com>
2023-10-27 13:20:20 +00:00
dependabot[bot] 372af8d3aa
build(deps): bump ahash from 0.8.5 to 0.8.6 (#33878)
* build(deps): bump ahash from 0.8.5 to 0.8.6

Bumps [ahash](https://github.com/tkaitchuck/ahash) from 0.8.5 to 0.8.6.
- [Release notes](https://github.com/tkaitchuck/ahash/releases)
- [Commits](https://github.com/tkaitchuck/ahash/commits)

---
updated-dependencies:
- dependency-name: ahash
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

* [auto-commit] Update all Cargo lock files

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot-buildkite <dependabot-buildkite@noreply.solana.com>
2023-10-27 13:19:05 +00:00
Ryo Onodera 950ca5ea86
Add InstalledScheduler for blockstore_processor (#33875)
* Add InstalledScheduler for blockstore_processor

* Reverse if clauses

* Add more comments for process_batches()

* Elaborate comment

* Simplify schedule_transaction_executions type
2023-10-27 21:42:18 +09:00
Brooks d04ad6557d
Fastboots by default (#33883) 2023-10-27 07:23:29 -04:00
Brooks a2138dba98
snapshot test requires using snapshot archives at startup (#33885) 2023-10-27 00:26:51 -04:00
Ryo Onodera 0873705c1b
Define register_unique_recent_blockhash_for_test (#33880) 2023-10-27 12:30:45 +09:00
Ryo Onodera 080285cb95
Adjust solana-core for cleaner scheduler-pr diff (#33881) 2023-10-27 12:29:41 +09:00
Tao Zhu 510b6b949f
Split compute budget instructions process from struct (#33852)
* Split compute budget instruction processing from ComputeBudget struct itself, so CB instructions can be processed elsewhere without involving ComputeBudget

* updated tests

* avoid built ComputeBudget from dated ComputeBudgetLimits in this refactoring PR

* Clean-up program-runtime/src/compute_budget_processor.rs

* Add test for a corner case that deprecated instruction is used to request units greater than max limit;
* Update code to handle the corner case.
2023-10-26 22:12:56 -05:00
Andrew Fitzgerald ba112a021a
TransactionScheduler: SchedulerController (#33825) 2023-10-27 09:30:51 +08:00
Pankaj Garg 2a5ec4acf8
Cleanup cargo registry code (#33879) 2023-10-26 12:58:20 -07:00
Tyera 7048e72d81
Blockstore: only return block times for rooted slots (#33871)
* Add Blockstore::get_rooted_block_time method and use in RPC

* Un-pub get_block_time
2023-10-26 11:38:58 -06:00
Tyera 22503f0ae9
BigtableUploadService: increment start_slot to prevent rechecks (#33870)
Increment start_slot
2023-10-26 09:21:20 -06:00
steviez a799a90a62
Update upload_confirmed_blocks() return value when no blocks to upload (#33861)
upload_confirmed_blocks() states that it will return the passed in
ending_slot when there are no blocks to upload. This is enforced in one
early return but not the other. The result is that BigTableUploadService
could potentially get stuck in a loop of trying to upload the same slot.

While this case seems to be caused when an operator restarts their node
without --no-snapshot-fetch (which can cause a gap in blockstore), we
can still be friendly and allow them to break out of this loop.
2023-10-26 10:34:07 +02:00
Pankaj Garg 70107e2196
Retrieve crate version from cargo-registry package (#33867) 2023-10-25 12:27:57 -07:00
behzad nouri e555a61c78
adds metrics to repair QUIC endpoint (#33818) 2023-10-25 18:59:14 +00:00
dependabot[bot] a851670d54
build(deps): bump bytecount from 0.6.4 to 0.6.7 (#33857)
Bumps [bytecount](https://github.com/llogiq/bytecount) from 0.6.4 to 0.6.7.
- [Commits](https://github.com/llogiq/bytecount/commits)

---
updated-dependencies:
- dependency-name: bytecount
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-25 17:44:18 +00:00
dependabot[bot] 3e21361534
build(deps): bump rustls from 0.21.7 to 0.21.8 (#33855)
* build(deps): bump rustls from 0.21.7 to 0.21.8

Bumps [rustls](https://github.com/rustls/rustls) from 0.21.7 to 0.21.8.
- [Release notes](https://github.com/rustls/rustls/releases)
- [Commits](https://github.com/rustls/rustls/compare/v/0.21.7...v/0.21.8)

---
updated-dependencies:
- dependency-name: rustls
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

* [auto-commit] Update all Cargo lock files

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot-buildkite <dependabot-buildkite@noreply.solana.com>
2023-10-25 17:43:58 +00:00
Pankaj Garg bdfb644122
Append crate to ELF file while deploying program (#33849)
* Append crate to ELF file while deploying program

* review feedback
2023-10-25 09:04:44 -07:00
Brooks bd1080b26f
Adds AtomicAge to bucket map holder (#33841) 2023-10-25 10:47:21 -04:00
Kevin Heavey af7fd32f4c
chore: fix some typos (#33833)
* fix spelling of "retrieved"
* fix spelling of "should"
* fix spelling of "comparisons"
2023-10-25 16:21:53 +02:00
Pankaj Garg 78c31aa6b8
Use program cache fork graph in extract() (#33806)
* Use program cache fork graph instead of WorkingSlot trait

* Fix deadlocked tests

* keep WorkingSlot trait for now
2023-10-25 06:04:38 -07:00
Ashwin Sekar a3b0348649
docs: outline requirement of stake in order to vote (#33842)
* docs: outline requirement of stake in order to vote

* pr feedback: move stake section up
2023-10-25 00:45:07 -04:00
steviez 9ffbe2afd8
Replace several .expect() statements with error handling (#33783) 2023-10-24 23:48:21 +02:00
Brooks 612e8e8457
Removes Default and pub from CumulativeOffset (#33840) 2023-10-24 19:22:34 +00:00
Brooks abf51864b4
Removes `#[allow(dead_code)]` in StorableAccounts impl (#33821) 2023-10-24 18:31:27 +00:00
HaoranYi 9064b8b2a2
Optimize account hash CumulativeOffset index from vec to 2-element array (#33839)
* optimize account hash merkle tree index from vec to 2-element array

* typo

---------

Co-authored-by: HaoranYi <haoran.yi@solana.com>
2023-10-24 18:26:16 +00:00