ac86d6ede4
Cli: Implement OutputFormat for some missing subcommands ( #14518 ) ( #14519 )
...
* Implement OutputFormat for solana leader-schedule
* Implement OutputFormat for solana inflation
(cherry picked from commit e4cf845974
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2021-01-10 01:27:44 +00:00
caa26b755c
Humanize the 'ledger processed...' time ( #14510 )
...
(cherry picked from commit 86c81a0ba2
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2021-01-09 08:23:40 +00:00
4470afceaa
Add buffer authority to upgradeable loader (bp #14482 ) ( #14503 )
...
* Add buffer authority to upgradeable loader (#14482 )
(cherry picked from commit 58487c6360
)
* resolve conflicts
* nudge
Co-authored-by: Jack May <jack@solana.com >
2021-01-09 05:13:55 +00:00
35b42e1541
Gate cpi program account passing (bp #14443 ) ( #14505 )
...
* Gate cpi program account passing (#14443 )
(cherry picked from commit a8b5a32b50
)
# Conflicts:
# sdk/src/feature_set.rs
* resolve conflicts
Co-authored-by: Jack May <jack@solana.com >
2021-01-09 03:16:26 +00:00
463e377ccc
Enable program upgrades via CPI ( #14449 ) ( #14502 )
...
(cherry picked from commit 5eacc5d08d
)
Co-authored-by: Jack May <jack@solana.com >
2021-01-09 01:30:42 +00:00
d815fe37c8
Don't use caller passed executable account ( #14276 ) ( #14501 )
2021-01-09 01:21:09 +00:00
709ec20d7c
Report correct program id (bp #14486 ) ( #14497 )
...
* Report correct program id (#14486 )
(cherry picked from commit 9d53eca6e3
)
# Conflicts:
# programs/bpf_loader/src/lib.rs
* resolve conflicts
Co-authored-by: Jack May <jack@solana.com >
2021-01-08 16:53:09 -08:00
e7bb83c037
Bump version to 1.4.23
2021-01-08 16:19:46 -08:00
27c272a12c
Suppress cargo audit failure for difference
crate, there's no newer crate to upgrade to yet
...
(cherry picked from commit 3eaa826ad9
)
v1.4.22
2021-01-08 14:04:32 -08:00
cbcbc3f1c8
limits number of crds values associated with a pubkey (bp #14467 ) ( #14489 )
...
* limits number of crds values associated with a pubkey (#14467 )
(cherry picked from commit 766195dded
)
# Conflicts:
# core/src/crds.rs
* removes backport merge conflicts
* updates smallvec
Co-authored-by: behzad nouri <behzadnouri@gmail.com >
2021-01-08 21:27:00 +00:00
1ab4c616be
docs: Validator tuning improvements (bp #14478 ) ( #14479 )
...
* docs: wrap lines
(cherry picked from commit 140642ea21
)
* docs: Prefer `dd` to `fallocate` when creating swap file
(cherry picked from commit c035f2a745
)
* docs: Add RUST_LOG explainer
(cherry picked from commit 30038a8849
)
Co-authored-by: Trent Nelson <trent@solana.com >
2021-01-07 19:36:12 +00:00
04eed1b57e
indexes crds values associated with a pubkey ( #14088 ) ( #14474 )
...
record_labels returns all the possible labels for a record identified by
a pubkey, used in updating timestamp of crds values:
https://github.com/solana-labs/solana/blob/1792100e2/core/src/crds_value.rs#L560-L577
https://github.com/solana-labs/solana/blob/1792100e2/core/src/crds.rs#L240-L251
The code relies on CrdsValueLabel to be limited to a small deterministic
set of possible values for a fixed pubkey. As we expand crds values to
include duplicate shreds, this limits what the duplicate proofs can be
keyed by in the table.
In addition the computation of these labels is inefficient and will
become more so as duplicate shreds and more types of crds values are
added. An alternative is to maintain an index of all crds values
associated with a pubkey.
(cherry picked from commit c2b7115031
)
Co-authored-by: behzad nouri <behzadnouri@gmail.com >
2021-01-07 15:25:37 +00:00
533a8249c8
docs: Update tmpfs partition guidance to include swap (bp #14387 ) ( #14470 )
...
* Update tmpfs partition guidance to include swap
(cherry picked from commit 68a84cf581
)
* Update docs/src/running-validator/validator-start.md
Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com >
(cherry picked from commit 9bb08ce75e
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2021-01-07 00:41:27 +00:00
d8e878998c
Bump version to 1.4.22 ( #14462 )
2021-01-06 19:42:50 +00:00
50ebc3f4d8
Add fixed tick rate adjustment ( #14447 ) ( #14458 )
...
(cherry picked from commit c282586753
)
Co-authored-by: sakridge <sakridge@gmail.com >
v1.4.21
2021-01-06 04:47:13 +00:00
599f5a16b2
Enable program-id account index for supply calculations ( #14444 ) ( #14455 )
...
* Enable program-id account index for supply calculations
* Fixup comments
(cherry picked from commit ce1766d798
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2021-01-06 04:12:48 +00:00
d916a16115
Save 7G mem on mainnet fixing AccIndex overalloc. ( #14435 ) ( #14451 )
...
(cherry picked from commit c9df6134fa
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2021-01-06 03:43:04 +00:00
d44d8e929b
Bump serum-dex pegged commit ( #14448 ) ( #14453 )
...
(cherry picked from commit d2b0fd973f
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2021-01-05 18:59:50 -07:00
f05347f549
Introduce rpc url monikers for cli ( #14409 ) ( #14432 )
...
* Introduce rpc url monikers for cli
* Use https:// and support initials as well
(cherry picked from commit 54a5876c48
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2021-01-05 12:28:07 +00:00
56acbcdf5f
Improve solana catchup ( #14313 ) ( #14423 )
...
* Improve solana catchup
* Overidable port, retry, args error clean up
* print cleanup
* Reduce diff
* Tweak warns a bit
(cherry picked from commit aa4da339ff
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2021-01-05 02:53:38 +00:00
c083661a6b
Fix pre-merge old name in the docs ( #14425 ) ( #14426 )
...
(cherry picked from commit 974eb6e1ef
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2021-01-05 02:53:24 +00:00
b8d3800f57
Add try_find_program_address syscall (bp #14118 ) ( #14421 )
...
* Add try_find_program_address syscall (#14118 )
(cherry picked from commit ab98c1f2d4
)
# Conflicts:
# programs/bpf_loader/src/syscalls.rs
# sdk/program/src/pubkey.rs
# sdk/src/feature_set.rs
* fix conflicts
Co-authored-by: Jack May <jack@solana.com >
2021-01-05 01:41:41 +00:00
6960eed856
Upgradeable programs needs program account's program id (bp #14417 ) ( #14419 )
...
* Upgradeable programs needs program account's address as program id (#14417 )
(cherry picked from commit 0619805806
)
# Conflicts:
# programs/bpf_loader/src/lib.rs
* fix conflicts
Co-authored-by: Jack May <jack@solana.com >
2021-01-05 00:42:20 +00:00
2e67f093be
docs: Use "msg!" instead of "info!" ( #14411 ) ( #14415 )
...
* docs: Use "msg!" instead of "info!"
* Update docs/src/developing/deployed-programs/developing-rust.md
Co-authored-by: Michael Vines <mvines@gmail.com >
* Fix typo / format
Co-authored-by: Michael Vines <mvines@gmail.com >
(cherry picked from commit a41b5137f6
)
Co-authored-by: Jon Cinque <jon.cinque@gmail.com >
2021-01-04 19:56:05 +00:00
72c6faff99
Use max commitment when fetching epoch info for block production ( #14402 )
...
(cherry picked from commit 2724f37d0e
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2021-01-04 05:53:53 +00:00
d8753631db
Tune rewards output ( #14394 )
...
(cherry picked from commit 560ed90168
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2021-01-03 02:51:33 +00:00
789e2d7f33
Bump version to 1.4.21
2021-01-02 08:52:35 +00:00
bbafd9783b
Add secondary indexes ( #14212 ) ( #14381 )
...
(cherry picked from commit 5affd8aa72
)
Co-authored-by: carllin <wumu727@gmail.com >
v1.4.20
2021-01-01 07:29:48 +00:00
624abc7434
Only initialize BigTable upload service when requested ( #14379 )
...
(cherry picked from commit 4a3d217839
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2021-01-01 03:06:28 +00:00
a8bd92ef70
Add --ignore-http-bad-gateway flag ( #14376 )
...
(cherry picked from commit 6c167615ad
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-12-31 22:14:14 +00:00
3fa08e620a
Gate CPI authorized programs (bp #14361 ) ( #14364 )
...
* Gate CPI authorized programs (#14361 )
(cherry picked from commit 2d8dacb72b
)
# Conflicts:
# programs/bpf_loader/src/syscalls.rs
* resolve conflicts
Co-authored-by: Jack May <jack@solana.com >
2020-12-31 03:43:55 +00:00
bfe9f12fe0
Remove assert ( #14356 ) ( #14359 )
...
(cherry picked from commit 1c5427ff17
)
Co-authored-by: Jack May <jack@solana.com >
2020-12-30 22:32:42 +00:00
b88c56cd36
Limit CPI instruction size (bp #14317 ) ( #14354 )
...
* Limit CPI instruction size (#14317 )
(cherry picked from commit 5524938a50
)
# Conflicts:
# programs/bpf_loader/src/syscalls.rs
# sdk/src/feature_set.rs
* resolve conflicts
Co-authored-by: Jack May <jack@solana.com >
2020-12-30 20:23:52 +00:00
cfb28a1b2e
Prevent bpf loader impersonators (bp #14278 ) ( #14353 )
...
* Prevent bpf loader impersonators (#14278 )
(cherry picked from commit ee0a80a092
)
# Conflicts:
# programs/bpf_loader/src/lib.rs
# runtime/src/message_processor.rs
* resolve conflicts
Co-authored-by: Jack May <jack@solana.com >
2020-12-30 20:10:13 +00:00
a9ee6ef2d1
Save cloning program account data ( #14251 ) ( #14352 )
...
(cherry picked from commit 5945305b1d
)
Co-authored-by: Jack May <jack@solana.com >
2020-12-30 19:14:41 +00:00
4e6e415e40
Upgradeable programs called same as non-upgradeable ( #14239 ) ( #14347 )
...
* Upgradeable programs called same as non-upgradeable
* nudge
(cherry picked from commit ab205b682a
)
Co-authored-by: Jack May <jack@solana.com >
2020-12-30 06:53:16 +00:00
7eb5db98cf
Limit CPI from calling loader or native programs ( #14252 ) ( #14319 )
...
(cherry picked from commit 0b479ab180
)
Co-authored-by: Jack May <jack@solana.com >
2020-12-30 06:39:22 +00:00
fb4204b135
Add experimental knob for tuning PoH pinned CPU core (bp #14330 ) ( #14340 )
...
* core: Update stale error message
(cherry picked from commit 82f61c0c4a
)
* validator: Add experimental flag to select PoH pinned core
(cherry picked from commit fe667db910
)
Co-authored-by: Trent Nelson <trent@solana.com >
2020-12-30 03:52:58 +00:00
cd5bb89a15
Add Program loader/environment instruction errors (bp #14120 ) ( #14333 )
...
* Add Program loader/environment instruction errors (#14120 )
(cherry picked from commit d513b0c4ca
)
# Conflicts:
# programs/bpf_loader/src/lib.rs
* resolve conflicts
* update error
Co-authored-by: Jack May <jack@solana.com >
2020-12-30 01:19:02 +00:00
30d7f6fa0b
Rework upgradeable loader cli (bp #14209 ) ( #14337 )
...
* Rework upgradeable loader cli (#14209 )
(cherry picked from commit 3316e7166c
)
# Conflicts:
# cli/src/cli.rs
# cli/tests/program.rs
* fix conflicts
Co-authored-by: Jack May <jack@solana.com >
2020-12-30 01:01:19 +00:00
50e733837a
Add poh speed check and tick speed calibration ( #14292 ) ( #14327 )
...
(cherry picked from commit 2074e407cd
)
Co-authored-by: sakridge <sakridge@gmail.com >
2020-12-30 00:06:53 +00:00
403220a559
Add CPI support for upgradeable loader (bp #14193 ) ( #14335 )
...
* Add CPI support for upgradeable loader (#14193 )
(cherry picked from commit e8cc0bef6c
)
* update crate version
* nudge
Co-authored-by: Jack May <jack@solana.com >
2020-12-29 23:05:40 +00:00
ebfbe5ed8a
Fix program account rent exemption ( #14176 ) ( #14334 )
...
(cherry picked from commit 593ad80954
)
Co-authored-by: Jack May <jack@solana.com >
2020-12-29 22:32:32 +00:00
1ae516fd4a
core/validator: Wrap std::process:exit(1) for easier testing ( #13990 ) ( #14332 )
...
(cherry picked from commit 3d9d7557c8
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2020-12-29 22:12:47 +00:00
db55eead5c
Upgradeable loader (bp #13689 ) ( #14318 )
...
* Upgradeable loader (#13689 )
(cherry picked from commit 9e90394583
)
# Conflicts:
# cli/src/cli.rs
# ledger/src/builtins.rs
# programs/bpf_loader/src/lib.rs
# sdk/src/feature_set.rs
* fix conflits
* fix commitment
* fix local cluster test
Co-authored-by: Jack May <jack@solana.com >
2020-12-29 20:01:17 +00:00
715fdfefe4
Retry durable-nonce transactions ( #14308 ) ( #14324 )
...
* Retry durable-nonce transactions
* Add metric to track durable-nonce txs in queue
* Populate send-tx-service initial addresses with tpu_address if empty (primarily for testing)
* Reinstate last_valid_slot check for durable-nonce txs; use arbitrary future slot
(cherry picked from commit 3f10fb993b
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2020-12-29 18:12:47 +00:00
9dfe50ecab
Update serialization docs ( #14323 )
...
(cherry picked from commit 03fc031611
)
Co-authored-by: Jack May <jack@solana.com >
2020-12-29 07:09:19 +00:00
9ea5e78852
Log error from AppendVec removal & a panic clean (bp #14302 ) ( #14309 )
...
* Log error from AppendVec removal & a panic clean (#14302 )
(cherry picked from commit addffd7694
)
# Conflicts:
# runtime/src/append_vec.rs
* fix conflict? (blind commit!)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2020-12-28 22:51:57 +00:00
cad95e8f4f
Remove Testnet-specific old code ( #14305 ) ( #14314 )
...
(cherry picked from commit 7893e2e307
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2020-12-28 22:02:00 +00:00
97f6e87322
CLI: Support retrieving past leader schedules (bp #14304 ) ( #14311 )
...
* clap-utils: Add epoch validator
(cherry picked from commit a709850ee4
)
* CLI: Support displaying past leader schedules
(cherry picked from commit bd761e2a52
)
Co-authored-by: Trent Nelson <trent@solana.com >
2020-12-28 21:33:20 +00:00