steviez
a15564d719
ledger-tool: Cleanup argument parsing logic ( #33283 )
...
value_t!() macro and .unwrap_or() are more succinct than if/else blocks,
and the value_t!() macro handles parsing values from strings.
2023-09-18 11:07:35 -05:00
steviez
9e11ae6275
Make program owners a const array instead of Vec<_> ( #33275 )
...
The program owners pubkeys are constant, no need to reconstruct the
Vec<Pubkey> and Vec<&Pubkey> each time this function runs (every time we
execute transactions).
2023-09-18 10:59:03 -05:00
Yihau Chen
fe598a9273
bump syn to 2.0.37 for test-case ( #33288 )
2023-09-18 22:50:11 +08:00
Pankaj Garg
5dbc19ccbf
Processors to compile and send LoaderV4 CLI commands ( #33228 )
...
* Processors to compile and send LoaderV4 CLI commands
* suppress unused code warning
* clippy fixes
* redeploy program using source buffer
* unify deploy and redeploy to a single function
* clippy fixes
* fixes after testing the CLI frontend
2023-09-18 06:43:33 -07:00
dependabot[bot]
196a354093
build(deps): bump test-case from 3.1.0 to 3.2.1 ( #33285 )
...
Bumps [test-case](https://github.com/frondeus/test-case ) from 3.1.0 to 3.2.1.
- [Release notes](https://github.com/frondeus/test-case/releases )
- [Changelog](https://github.com/frondeus/test-case/blob/master/CHANGELOG.md )
- [Commits](https://github.com/frondeus/test-case/compare/v3.1.0...v3.2.1 )
---
updated-dependencies:
- dependency-name: test-case
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-18 13:26:04 +00:00
dependabot[bot]
f20466d278
build(deps): bump syn from 2.0.33 to 2.0.37 ( #33286 )
...
* build(deps): bump syn from 2.0.33 to 2.0.37
Bumps [syn](https://github.com/dtolnay/syn ) from 2.0.33 to 2.0.37.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/2.0.33...2.0.37 )
---
updated-dependencies:
- dependency-name: syn
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-09-18 12:55:15 +00:00
dependabot[bot]
694e7b9456
build(deps): bump chrono from 0.4.30 to 0.4.31 ( #33284 )
...
* build(deps): bump chrono from 0.4.30 to 0.4.31
Bumps [chrono](https://github.com/chronotope/chrono ) from 0.4.30 to 0.4.31.
- [Release notes](https://github.com/chronotope/chrono/releases )
- [Changelog](https://github.com/chronotope/chrono/blob/main/CHANGELOG.md )
- [Commits](https://github.com/chronotope/chrono/compare/v0.4.30...v0.4.31 )
---
updated-dependencies:
- dependency-name: chrono
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-09-18 12:54:52 +00:00
Pankaj Garg
6db57f81db
Fix lamport calculation and transfer for loader-v4 program upgrade ( #33279 )
2023-09-16 13:12:27 -07:00
Pankaj Garg
6300a43f5c
Set loader-v4 program deployment slot at actual deployment ( #33278 )
2023-09-16 13:11:47 -07:00
Brooks
6283c1d568
Refactors out `unsafe` from cache_hash_data.rs ( #33271 )
2023-09-15 14:25:43 -04:00
Brooks
a47f65d882
Refactors `unsafe` out of CacheHashDataFile's header ( #33270 )
2023-09-15 16:49:35 +00:00
Brooks
f77b3d9389
Derives Pod for CalculateHashIntermediate ( #33267 )
2023-09-15 12:47:38 -04:00
Brooks
4c42413c1f
Refactors out `unsafe` from MmapAccountHashesFile::read() ( #33266 )
2023-09-15 15:09:01 +00:00
Yihau Chen
d4946ddfaa
ci: move solana-cargo-build-sbf to nextest ( #33257 )
2023-09-15 14:24:43 +00:00
dependabot[bot]
0df6749550
build(deps): bump syn from 2.0.32 to 2.0.33 ( #33264 )
...
* build(deps): bump syn from 2.0.32 to 2.0.33
Bumps [syn](https://github.com/dtolnay/syn ) from 2.0.32 to 2.0.33.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/2.0.32...2.0.33 )
---
updated-dependencies:
- dependency-name: syn
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-09-15 13:30:53 +00:00
Brooks
6481496564
Derives Pod and Zeroable on Hash ( #33256 )
2023-09-15 07:27:30 -04:00
behzad nouri
c1090d3959
moves new_warmup_cooldown_rate_epoch outside iterators and for loops ( #33259 )
...
Recalculating new_warmup_cooldown_rate_epoch for each item is redundant
and wasteful and instead can be done only once outside the iterators and
for loops.
Also NewWarmupCooldownRateEpoch is unnecessary and verbose and is
removed in this commit.
2023-09-15 00:06:34 +00:00
Tao Zhu
dfaec7897a
loaded accounts data size cost does not apply to vote transaction ( #33235 )
...
* loaded accounts data size cost does not apply to vote transaction
* add a test for vote cost
2023-09-14 17:22:51 -05:00
Yihau Chen
99b24bd741
check source_path before delete it ( #33255 )
2023-09-14 18:44:12 +00:00
Yihau Chen
596e17f74b
ci: have new_with_external_ip_test_random use all threads ( #33233 )
2023-09-15 01:31:07 +08:00
dependabot[bot]
432cacdb0e
build(deps): bump proc-macro2 from 1.0.66 to 1.0.67 ( #33250 )
...
* build(deps): bump proc-macro2 from 1.0.66 to 1.0.67
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2 ) from 1.0.66 to 1.0.67.
- [Release notes](https://github.com/dtolnay/proc-macro2/releases )
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.66...1.0.67 )
---
updated-dependencies:
- dependency-name: proc-macro2
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-09-14 16:15:22 +00:00
dependabot[bot]
a13fb1d220
build(deps): bump libc from 0.2.147 to 0.2.148 ( #33249 )
...
* build(deps): bump libc from 0.2.147 to 0.2.148
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.147 to 0.2.148.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.147...0.2.148 )
---
updated-dependencies:
- dependency-name: libc
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-09-14 16:14:36 +00:00
Tyera
1e1e296414
Remove unused test code ( #33247 )
2023-09-14 08:58:46 -06:00
Jeff Washington (jwash)
3ad8394047
stop removing empty bins during index generation ( #33242 )
2023-09-14 07:53:33 -07:00
Jeff Washington (jwash)
886eabd74d
gen idx: refactor StorageSizeAndCount population ( #33244 )
2023-09-14 07:53:05 -07:00
dependabot[bot]
5d29ed196f
build(deps): bump serde_json from 1.0.106 to 1.0.107 ( #33248 )
...
* build(deps): bump serde_json from 1.0.106 to 1.0.107
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.106 to 1.0.107.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.106...v1.0.107 )
---
updated-dependencies:
- dependency-name: serde_json
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-09-14 12:48:34 +00:00
kirill lykov
c6b0d4a496
specify compute budget when padding program is used ( #33234 )
...
* specify compute budget when padding program is used
* fix numeric const format
2023-09-14 14:18:58 +02:00
Jon Cinque
30055b02b5
docs: Clarify when validator commission can be set ( #32796 )
...
docs: Clarify when commission can be set
2023-09-14 11:29:42 +02:00
Yihau Chen
4e2d67f19a
ci: move solana-core to nextest ( #33231 )
2023-09-14 12:11:31 +08:00
Jeff Washington (jwash)
602f0f6ecb
generate index: fn arg: &Slot -> Slot ( #33229 )
...
fn arg: &Slot -> Slot
2023-09-13 14:14:30 -07:00
Jeff Washington (jwash)
c2bf2a969d
remove unused metrics ( #33241 )
2023-09-13 14:14:10 -07:00
Jeff Washington (jwash)
cb310a310a
set approx store count at generate index time ( #33240 )
2023-09-13 14:13:46 -07:00
Jeff Washington (jwash)
093ae61e85
single pass through each storage to populate info ( #33227 )
2023-09-13 12:37:01 -07:00
Christian Kamm
525e59f01a
sdk, programs/bpf_loader: add sol_remaining_compute_units syscall ( #31640 )
...
bpf_loader: add sol_remaining_compute_units syscall
Co-authored-by: jonch <9093549+jon-chuang@users.noreply.github.com>
2023-09-13 08:57:08 -06:00
Brooks
c40e88aef9
Adds metrics for fastboot storages kept alive ( #33222 )
2023-09-13 09:28:19 -04:00
Pankaj Garg
5562f79cc5
Do not unnecessarily re-verify unloaded program ( #32722 )
...
* Do not unnecessarily re-verify unloaded program
* clippy fixes
* new unit test for extract
* fixes after rebase
* fixes after rebase
* address review comments
* fix clippy
2023-09-13 06:25:56 -07:00
kirill lykov
ec9b30965e
Increase loaded accounts data size when padding program is used ( #33219 )
...
* Increase loaded accounts data size when padding program is used
* fix dos tool accordingly
2023-09-13 11:20:40 +02:00
samkim-crypto
1cc681dd83
[clap-v3-utils] Add replace deprecated `value_of` and `is_present` with `get_one` and `contains_id` ( #33184 )
...
* add try variants to input parsers
* replace deprecated `value_of` and `is_present` with `get_one` and `contains_id`
2023-09-12 21:27:38 -07:00
Yihau Chen
99ef411600
ci: move solana-client-test to nextest ( #33185 )
2023-09-13 12:12:20 +08:00
Jeff Washington (jwash)
3ffd78f2d7
add comments ( #33226 )
2023-09-12 13:51:27 -07:00
bji
bdf7207eec
Implement timely vote credits feature. ( #32957 )
2023-09-12 10:40:04 -07:00
Brooks
acd7ad96c3
Purges old accounts hash cache dirs ( #33183 )
2023-09-12 13:10:22 -04:00
behzad nouri
2151393271
adds more context why the first data shred is inserted synchronously ( #33092 )
2023-09-12 15:27:06 +00:00
Brooks
21e7f98b3a
Uses hex for the hash in accounts hash cache file names ( #33196 )
2023-09-12 11:26:08 -04:00
Brooks
c61ee20b44
Transient accounts hash cache dir is unnecessary ( #33181 )
2023-09-12 11:23:07 -04:00
dependabot[bot]
d34a881b12
build(deps): bump serde_json from 1.0.105 to 1.0.106 ( #33200 )
...
* build(deps): bump serde_json from 1.0.105 to 1.0.106
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.105 to 1.0.106.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.105...v1.0.106 )
---
updated-dependencies:
- dependency-name: serde_json
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-09-12 14:11:39 +00:00
dependabot[bot]
2b1a30d81f
build(deps): bump syn from 2.0.31 to 2.0.32 ( #33201 )
...
* build(deps): bump syn from 2.0.31 to 2.0.32
Bumps [syn](https://github.com/dtolnay/syn ) from 2.0.31 to 2.0.32.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/2.0.31...2.0.32 )
---
updated-dependencies:
- dependency-name: syn
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-09-12 14:11:13 +00:00
dependabot[bot]
212f1b4735
build(deps): bump base64 from 0.21.3 to 0.21.4 ( #33202 )
...
* build(deps): bump base64 from 0.21.3 to 0.21.4
Bumps [base64](https://github.com/marshallpierce/rust-base64 ) from 0.21.3 to 0.21.4.
- [Changelog](https://github.com/marshallpierce/rust-base64/blob/master/RELEASE-NOTES.md )
- [Commits](https://github.com/marshallpierce/rust-base64/compare/v0.21.3...v0.21.4 )
---
updated-dependencies:
- dependency-name: base64
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-09-12 14:10:49 +00:00
dependabot[bot]
5f4f593acd
build(deps): bump socket2 from 0.5.3 to 0.5.4 ( #33218 )
...
* build(deps): bump socket2 from 0.5.3 to 0.5.4
Bumps [socket2](https://github.com/rust-lang/socket2 ) from 0.5.3 to 0.5.4.
- [Release notes](https://github.com/rust-lang/socket2/releases )
- [Changelog](https://github.com/rust-lang/socket2/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/socket2/commits )
---
updated-dependencies:
- dependency-name: socket2
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-09-12 14:10:09 +00:00
HaoranYi
3cd3994939
clean up pub crate ( #33214 )
...
Co-authored-by: HaoranYi <haoran.yi@solana.com>
2023-09-11 19:28:26 -05:00