57baf7f79b
Add memory operation syscalls (backport #16447 ) ( #18149 )
...
* Add memory operation syscalls (#16447 )
(cherry picked from commit 2b50529265
)
# Conflicts:
# programs/bpf/Cargo.lock
# programs/bpf/rust/sysvar/tests/lib.rs
# programs/bpf/tests/programs.rs
# programs/bpf_loader/src/syscalls.rs
# sdk/src/feature_set.rs
* resolve conflicts
Co-authored-by: Jack May <jack@solana.com >
2021-06-22 19:57:51 +00:00
e259388069
Move stake_weighted_timestamp module (backport #18114 ) ( #18119 )
...
* Move stake_weighted_timestamp module (#18114 )
* Move timestamp module into runtime
* Less public
* Remove unused enum
(cherry picked from commit 19fe1dd463
)
# Conflicts:
# runtime/src/bank.rs
# runtime/src/lib.rs
* Fix conflicts
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2021-06-22 00:28:02 +00:00
06d6e357ae
Bump version to v1.6.15 ( #18108 )
2021-06-21 14:23:43 -06:00
7759210ff3
Add logging when RpcHealthStatus::Unknown ( #18099 )
v1.6.14
2021-06-21 11:40:15 -06:00
16c42a7b30
docs: flesh out validator network requirements
2021-06-21 11:14:42 -06:00
d0f08cf25b
docs: don't suggest cloud instances for validators
2021-06-21 11:14:42 -06:00
0ed9f7144c
sdk: refactor pda generation
2021-06-21 10:16:49 -06:00
b17c2f451a
Add additional subscription metrics ( #18071 ) ( #18075 )
...
(cherry picked from commit 83a6c669a5
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2021-06-18 23:56:17 +00:00
4aedc086e5
fix loader instruction checker ( #18047 ) ( #18073 )
...
(cherry picked from commit d18e02ef44
)
Co-authored-by: Jack May <jack@solana.com >
2021-06-18 21:06:23 +00:00
0afb330db0
validator: expose max active pubsub subscriptions to CLI ( #18035 )
...
(cherry picked from commit 5efc48fc69
)
# Conflicts:
# core/src/rpc_pubsub_service.rs
Co-authored-by: Trent Nelson <trent@solana.com >
2021-06-18 00:35:26 +00:00
1201ef172e
Bump version to v1.6.14 ( #18050 )
2021-06-17 20:42:10 +00:00
b63a65bc21
validator: run poh speed test earlier in start up ( #18023 )
...
(cherry picked from commit 5bc6c89adc
)
Co-authored-by: Trent Nelson <trent@solana.com >
v1.6.13
2021-06-17 00:51:27 +00:00
392d2dbd8a
metrics: Don't unwrap client instantiation errors ( #18018 )
...
(cherry picked from commit 5cc073420a
)
Co-authored-by: Trent Nelson <trent@solana.com >
2021-06-16 22:02:43 +00:00
4733d6dfc3
v1.6: Properly handle block_height in Bigtable bincode deserialization ( #17992 )
...
* Default block_height on eof
* Add comment to prevent future errors
2021-06-16 00:55:19 +00:00
337de51088
Bump version to v1.6.13 ( #17972 )
2021-06-15 23:47:22 +09:00
24ee0b3934
Avoid full-range compactions with periodic filtered b.g. ones (backport #16697 ) ( #17956 )
...
* Avoid full-range compactions with periodic filtered b.g. ones (#16697 )
* Update rocksdb to v0.16.0
* Promote the infrequent and important log to info!
* Force background compaction by ttl without manual compaction
* Fix test
* Support no compaction mode in test_ledger_cleanup_compaction
* Fix comment
* Make compaction_interval customizable
* Avoid major compaction with periodic filtering...
* Adress lazy_static, special cfs and range check
* Clean up a bit and add comment
* Add comment
* More comments...
* Config code cleanup
* Add comment
* Use .conflicts_with()
* Nullify unneeded delete_range ops for special CFs
* Some clean ups
* Clarify the locking intention
* Ensure special CFs' consistency with PurgeType::CompactionFilter
* Fix comment
* Fix bad copy paste
* Fix various types...
* Don't use tuples
* Add a unit test for compaction_filter
* Fix typo...
* Remove flag and just use new behavior always
* Fix wrong condition negation...
* Doc. about no set_last_purged_slot in purge_slots
* Write a test and fix off-by-one bug....
* Apply suggestions from code review
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
* Follow up to github review suggestions
* Fix line-wrapping
* Fix conflict
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
(cherry picked from commit 1f97b2365f
)
# Conflicts:
# Cargo.lock
# ledger/src/blockstore_db.rs
* Fix conflicts
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
v1.6.12
2021-06-15 08:49:13 +00:00
ff8f78199d
Bump spl-token to v3.1.1 (backport #17951 ) ( #17957 )
...
* Bump spl-token to v3.1.1 (#17951 )
(cherry picked from commit b7de369992
)
# Conflicts:
# Cargo.lock
# account-decoder/Cargo.toml
# accounts-cluster-bench/Cargo.toml
# programs/bpf/Cargo.lock
# rpc/Cargo.toml
# tokens/Cargo.toml
* Fix conflicts
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2021-06-15 07:54:09 +00:00
b524e0a1a7
add data point for cap mismatch ( #17746 ) ( #17752 )
...
(cherry picked from commit f6fb8906c7
)
Co-authored-by: Jeff Washington (jwash) <75863576+jeffwashington@users.noreply.github.com >
2021-06-15 05:28:40 +00:00
7dcecdd285
Account for duplicate before a bank is frozen or replayed ( #17866 ) ( #17882 )
...
(cherry picked from commit afafa624a3
)
Co-authored-by: carllin <carl@solana.com >
2021-06-11 07:28:22 +00:00
151f025bee
Update a dangling devnet endpoint doc ( #17836 ) ( #17838 )
...
(cherry picked from commit 2dfb5b7579
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2021-06-08 16:07:13 +00:00
edc83c0543
v1.6: Bump jsonrpc crates ( #17799 )
...
* Bump jsonrpc crates
* Update error text
2021-06-07 18:09:09 +00:00
b777bbf7db
system-program: Remove zero lamport check on transfers (backport #17726 ) ( #17763 )
...
* system-program: Remove zero lamport check on transfers (#17726 )
* system-program: Move lamports == 0 check on transfers
* Address feedback
* Update stake split to explicitly allocate + assign
* Update stake tests referring to split instruction
* Revert whitespace
* Update split instruction index in test
* Remove unnecessary `assign_with_seed` from `split_with_seed`
* Fix stake instruction parser
* Update test to allow splitting into account with lamports
(cherry picked from commit 8f5e773caf
)
# Conflicts:
# runtime/src/system_instruction_processor.rs
# sdk/src/feature_set.rs
* Resolve merge conflicts
Co-authored-by: Jon Cinque <jon.cinque@gmail.com >
2021-06-07 12:55:57 +00:00
a29344e681
Document ProgramTest::new and fix ProgramTest::add_program ( #17754 ) ( #17767 )
...
* document ProgramTest::new
* simplify ProgramTest::new doc-string
* make ProgramTest::add_program noisier
`add_program` (and `new`, implicitly) now prints a warning when the user
supplies a bogus program name to a ProgramTest and invokes `test-bpf`.
Additionally, it is now impossible to ask for a regular `test` and for
the generated ProgramTest to load BPF code instead of native code.
Previously, this was caused by a precedence issue: BPF code would always
be preferred over native if the program name was valid, regardless of
user choice.
(cherry picked from commit 2aaf55795f
)
Co-authored-by: xuoe <alex@psi.io >
2021-06-06 05:56:24 +00:00
1bce8a99a2
Add more CPI call depth tests ( #17657 )
2021-06-02 00:22:29 -07:00
3a3454d788
Bump version to v1.6.12 ( #17651 )
2021-06-01 21:40:36 -06:00
0e3131f2b4
Purge expired BlockHeight data from blockstore (backport #17634 ) ( #17640 )
...
* Purge expired BlockHeight data from blockstore (#17634 )
* Purge expired BlockHeight data from blockstore
* Also call compact_storage and add comment....
(cherry picked from commit 96cdbfdcc0
)
# Conflicts:
# ledger/src/blockstore_db.rs
* Fix conflict
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
v1.6.11
2021-06-02 00:04:12 +00:00
27997653f1
Rework #17486 (backport #17566 ) ( #17596 )
...
* Revert "Improve missing default signer error messaging (#17486 )"
This reverts commit 6d40d0d141
.
(cherry picked from commit ca8c1c6c42
)
* Improve missing default filepath signer error messaging
(cherry picked from commit 06a926f2f4
)
* CI: temporarily skip spl downstream build
(cherry picked from commit d01b4f80f9
)
Co-authored-by: Trent Nelson <trent@solana.com >
2021-05-31 17:27:12 +00:00
c3f66dcfa7
Make initialize
public ( #17605 ) ( #17606 )
...
(cherry picked from commit 2896fc3987
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2021-05-31 07:45:34 -07:00
6a2377dd50
Disable read-only optimization features ( #17583 )
...
* Disable RO optimization features
* nudge
2021-05-28 21:55:37 +00:00
8b1a1d9c99
test-validator: add an arg to control faucet genesis balance ( #17581 )
...
(cherry picked from commit 974a96738a
)
Co-authored-by: Trent Nelson <trent@solana.com >
2021-05-28 10:43:31 -07:00
01e2d5cd35
Add block height to ConfirmedBlock structs (backport #17523 ) ( #17534 )
...
* Add block height to ConfirmedBlock structs (#17523 )
* Add BlockHeight CF to blockstore
* Rename CacheBlockTimeService to be more general
* Cache block-height using service
* Fixup previous proto mishandling
* Add block_height to block structs
* Add block-height to solana block
* Fallback to BankForks if block time or block height are not yet written to Blockstore
* Add docs
* Review comments
(cherry picked from commit ab581dafc2
)
# Conflicts:
# core/src/replay_stage.rs
# core/src/tvu.rs
# core/src/validator.rs
* Fix conflicts
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2021-05-26 22:42:46 -07:00
8b61ba4d8d
Add missing fields from getClusterNodes documentation (backport #17501 ) ( #17502 )
...
* Add missing fields from getClusterNodes documentation
(cherry picked from commit 3d40ec3c88
)
# Conflicts:
# docs/src/developing/clients/jsonrpc-api.md
* rebase
Co-authored-by: Michael Vines <mvines@gmail.com >
2021-05-26 21:38:27 -07:00
f364956d15
Plumb transaction-level rewards (aka "rent debits") into the getTransaction
RPC method (backport #17528 ) ( #17532 )
...
* Plumb transaction-level rewards (aka "rent debits") into the `getTransaction` RPC method
(cherry picked from commit 9541411c15
)
# Conflicts:
# docs/src/developing/clients/jsonrpc-api.md
* rebase
Co-authored-by: Michael Vines <mvines@gmail.com >
2021-05-26 21:33:30 -07:00
cedd00e82e
Fix typo in docs ( #17531 )
...
(cherry picked from commit 7dfc1d9790
)
Co-authored-by: Felipe Lima <felipe.lima@gmail.com >
2021-05-27 03:13:21 +00:00
3b22f5b833
simulateTransaction RPC method can now return accounts modified by the simulation (backport #17499 ) ( #17526 )
...
* simulateTransaction can now return accounts modified by the simulation
(cherry picked from commit cbce440af4
)
# Conflicts:
# rpc/src/parsed_token_accounts.rs
* rebase
Co-authored-by: Michael Vines <mvines@gmail.com >
2021-05-27 00:06:05 +00:00
9c549a3ccf
Add custom error for tx-history queries when node does not support (backport #17494 ) ( #17522 )
...
* Add custom error for tx-history queries when node does not support (#17494 )
(cherry picked from commit 6abe089740
)
# Conflicts:
# core/src/rpc.rs
* Fix conflicts
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2021-05-26 21:37:26 +00:00
f4cf7d2c84
Add last valid block height to rpc Fees (backport #17506 ) ( #17507 )
...
* Add last valid block height to rpc Fees (#17506 )
* Add last_valid_block_height to fees rpc
* Add getBlockHeight rpc
* Update docs
(cherry picked from commit e9bc1c6b07
)
# Conflicts:
# client/src/rpc_request.rs
# docs/src/developing/clients/jsonrpc-api.md
* Fix conflicts and a-z docs
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2021-05-26 16:25:41 +00:00
b9834ed9eb
docs: Add find_program_address
and example ( #17515 ) ( #17517 )
...
(cherry picked from commit bb72ab7f1b
)
Co-authored-by: Jon Cinque <jon.cinque@gmail.com >
2021-05-26 15:49:53 +00:00
2781d69319
runtime: add rent debit charges to block metadata (backport #17504 ) ( #17513 )
...
* runtime: add rent debit charges to block metadata
(cherry picked from commit 97eab7edf9
)
* add tests from `RentDebits`
(cherry picked from commit 2a6c5ed0ac
)
Co-authored-by: Trent Nelson <trent@solana.com >
2021-05-26 15:39:38 +00:00
4d58a0e200
Add a hacky shell for fun code reading ( #17503 ) ( #17505 )
...
(cherry picked from commit 7ce910f459
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2021-05-26 06:39:26 +00:00
b37e5c8a36
Improve missing default signer error messaging ( #17486 ) ( #17500 )
...
(cherry picked from commit 6d40d0d141
)
Co-authored-by: Jack May <jack@solana.com >
2021-05-26 02:51:36 +00:00
b06bfeec8d
Add a flag to simulateTransaction to use most recent blockhash (backport #17485 ) ( #17497 )
...
* Add a flag to simulateTransaction to use most recent blockhash
(cherry picked from commit 96cef5260c
)
* rename flag
(cherry picked from commit e14f3eb529
)
* sigVerify conflicts with replace, add tests
(cherry picked from commit 660d37aadf
)
Co-authored-by: Justin Starry <justin@solana.com >
2021-05-26 01:49:52 +00:00
02c4170357
Update sysvar docs ( #17493 ) ( #17495 )
...
(cherry picked from commit 4eb6deee2d
)
Co-authored-by: Jack May <jack@solana.com >
2021-05-26 00:22:32 +00:00
24a21d0ba6
docs: Add RPC node HW recommendations ( #17490 )
...
(cherry picked from commit 64bfc14a75
)
Co-authored-by: Trent Nelson <trent@solana.com >
2021-05-25 23:22:26 +00:00
ae1687bc0a
Bump version to v1.6.11 ( #17484 )
2021-05-25 15:35:50 -06:00
5d4654d2f4
docs: Add inner instruction and cross-program invocation ( #17476 ) ( #17479 )
...
(cherry picked from commit a03230338a
)
Co-authored-by: Jon Cinque <jon.cinque@gmail.com >
v1.6.10
2021-05-25 17:09:11 +00:00
d69c1d6db6
docs: budget program is gone, link to SPL Token multisig ( #17478 )
...
(cherry picked from commit 2019558f03
)
Co-authored-by: Trent Nelson <trent@solana.com >
2021-05-25 16:09:40 +00:00
fa65107460
Avoid ip_echo_server unwrap ( #17445 )
...
(cherry picked from commit 30b60a976b
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2021-05-24 14:40:47 -06:00
dd2d119d2b
v1.6: Ensure cluster-confirmed roots are set on boot ( #17442 )
...
* Add blockstore-root-scan for api nodes on boot
* Ensure cluster-confirmed root and parents are set as root in blockstore in load_frozen_forks()
* Plumb rpc-scan-and-fix-roots validator flag
2021-05-24 20:16:37 +00:00
b7dc7d859c
removes Crds::lookup and lookup_versioned (backport #17438 ) ( #17441 )
...
* removes Crds::lookup and lookup_versioned (#17438 )
(cherry picked from commit e867d7f3b8
)
* patches push_epoch_slots for backport
Co-authored-by: behzad nouri <behzadnouri@gmail.com >
2021-05-24 20:10:44 +00:00