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
8fb9992dde
run.sh: add env knob for solana-validor ( #14303 ) ( #14306 )
...
(cherry picked from commit 4af33674a7
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2020-12-28 20:46:32 +00:00
c9a8736a5a
net/gce.sh: Upgrade to Ubuntu 20.04
...
(cherry picked from commit 3322b83183
)
2020-12-28 11:22:32 -07:00
6388603ba0
net/gce.sh: Switch to SSD boot disks
...
(cherry picked from commit a0507505f4
)
2020-12-28 11:22:32 -07:00
69ef980307
net/gce.sh: Bump machine type to 24-core, 64GB RAM
...
(cherry picked from commit ffe0532ded
)
2020-12-28 11:22:32 -07:00
bc8300a308
Add transactionCount field to GetEpochInfo
...
(cherry picked from commit efc091e28a
)
2020-12-24 14:13:54 -08:00
34b3387104
fix: add transactionCount field to GetEpochInfo
...
(cherry picked from commit 01fe835e73
)
2020-12-24 14:13:54 -08:00
6f2b37b015
Deinit zero-lamport account data (bp #14242 ) ( #14265 )
...
* Deinitialize nonce data upon zero balance
(cherry picked from commit 3881ae10fb
)
* vote: Add helper for creating current-versioned states
(cherry picked from commit 5b903318b2
)
* Deinitialize vote data upon zero balance
(cherry picked from commit db5bd6ea1a
)
* Deinitialize stake data upon zero balance
(cherry picked from commit 50710473a8
)
Co-authored-by: Trent Nelson <trent@solana.com >
2020-12-23 04:34:52 +00:00
09a3b5001c
Add log message for when a local snapshot is too old
...
(cherry picked from commit 65dcb3dc81
)
2020-12-22 19:58:46 -08:00
7e4bd087ae
Feature-gate stake-program-v3 (bp #14232 ) ( #14249 )
...
* Feature-gate stake-program-v3 (#14232 )
* Remove deprecated legacy stake program
* Add legacy stake program
* Strip out duplicative legacy code
* Feature-deploy stake-program-v3
* Add ownership check in stake processor
(cherry picked from commit 7042f11791
)
# Conflicts:
# programs/stake/src/stake_instruction.rs
# sdk/src/feature_set.rs
* Fix conflicts
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2020-12-23 00:12:01 +00:00
266c63f105
Ignore long/hanging test ( #14260 )
2020-12-22 15:39:09 -07:00
8afa345eb3
Bump version to 1.4.20
2020-12-21 20:18:12 -08:00
4e7049bdf2
v1.4 fix timestamp metrics ( #14235 )
...
* Fix genesis timestamp metric source
* Move timestamp metrics to report even on estimate failure
2020-12-21 22:02:32 +00:00
9466ad3c1f
Add shrink paths ( #14208 )
v1.4.19
2020-12-21 13:05:07 -08:00
6d0b1bd93e
Fix test_max_hashes ( #14189 )
...
(cherry picked from commit a5db6399ad
)
2020-12-21 09:05:37 -08:00
a0565e2fbd
Restore Content-Length header for streaming snapshot download
...
(cherry picked from commit 57b03c5bc1
)
2020-12-21 09:03:31 -08:00
1f309d0bae
Do not delete ALL other snapshots before downloading a new snapshot ( #14226 )
...
(cherry picked from commit 93ae177503
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-12-21 10:18:06 +00:00
a3342c57db
Allow multiple --accounts arguments ( #14224 )
...
(cherry picked from commit 8082a2454c
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-12-21 09:13:00 +00:00
71eef63fce
Stream RPC snapshot downloads (bp #14213 ) ( #14214 )
...
* Stream RPC snapshot downloads
(cherry picked from commit b3dc988564
)
# Conflicts:
# core/Cargo.toml
* Update Cargo.toml
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-12-20 01:25:16 +00:00
420e4c772f
getBlockTime RPC method now falls back to BigTable in all cases ( #14206 )
...
(cherry picked from commit 0090106f60
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-12-18 22:11:26 +00:00
9f69f79577
Reject invalid --expected-shred-version ( #14183 ) ( #14201 )
...
* Reject invalid --expected-shred-version
* less code
(cherry picked from commit 3c9b853268
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2020-12-18 19:19:32 +09:00
d4b2b787eb
Improved Transaction Forwarding (bp #13944 ) ( #14194 )
...
* Improved Transaction Forwarding (#13944 )
* Forwarding
* Dedupe leaders
* Use consistent commitment for last_valid_slot in rpc send_transaction
* Plumb rpc send_transaction options into solana-validator
* Extend num slots banking-stage holds forwarded txs
Co-authored-by: Tyera Eulberg <tyera@solana.com >
(cherry picked from commit da7d1e2302
)
# Conflicts:
# cli/src/cli.rs
# core/src/validator.rs
# validator/src/main.rs
* Fix conflicts
Co-authored-by: sakridge <sakridge@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2020-12-17 18:13:41 -07:00