8f26c71964
Fixed a typo in the SQL statement ( #21872 ) ( #22075 )
...
* Fixed a typo in the SQL statement
* Fixed additional two errors in the postgres database objects
(cherry picked from commit b610e5503e
)
Co-authored-by: Lijun Wang <83639177+lijunwangs@users.noreply.github.com >
2021-12-22 22:55:58 +00:00
9fbaaa5102
Increment execution timings on errors as well ( #22053 ) ( #22072 )
...
(cherry picked from commit 37f6777ceb
)
Co-authored-by: carllin <carl@solana.com >
2021-12-22 22:50:19 +00:00
78e7913352
Bump version to 1.9.3 ( #22065 )
2021-12-22 11:41:03 -06:00
f58b87befe
v1.9: bump tarpc from 0.26.2 to 0.27.2 and add BanksClientError ( #22055 )
...
* chore: bump tarpc from 0.26.2 to 0.27.2
Bumps [tarpc](https://github.com/google/tarpc ) from 0.26.2 to 0.27.2.
- [Release notes](https://github.com/google/tarpc/releases )
- [Changelog](https://github.com/google/tarpc/blob/master/RELEASES.md )
- [Commits](https://github.com/google/tarpc/commits )
---
updated-dependencies:
- dependency-name: tarpc
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
* [auto-commit] Update all Cargo lock files
* Accommodate breaking changes
* Reword incorrect error message
* Add error module
* Revert client Error type to io::Error; easy transition to BanksClientError
* Bump tracing crates in programs
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot-buildkite <dependabot-buildkite@noreply.solana.com >
v1.9.2
2021-12-22 03:41:16 +00:00
1a2823b875
chore: bump lru from 0.7.0 to 0.7.1 ( #22018 ) ( #22056 )
...
Bumps [lru](https://github.com/jeromefroe/lru-rs ) from 0.7.0 to 0.7.1.
- [Release notes](https://github.com/jeromefroe/lru-rs/releases )
- [Changelog](https://github.com/jeromefroe/lru-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/jeromefroe/lru-rs/compare/0.7.0...0.7.1 )
---
updated-dependencies:
- dependency-name: lru
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>
(cherry picked from commit 69d0b08dd8
)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-12-21 16:27:43 -07:00
75fe0d3ecf
Fix #21986 ( #22035 ) ( #22049 )
...
* Partial revert "Updates documentation around what needs to be passed in CPI. (#21633 )"
* Enforces the program_id being passed explicitly by removing it from get_instruction_keyed_accounts().
* instruction_accounts => instructions_account
(cherry picked from commit ba8e15848e
)
Co-authored-by: Alexander Meißner <AlexanderMeissner@gmx.net >
2021-12-21 17:54:18 +00:00
c296a6c9ed
The sidebar for the plugin doc is showing the item as "Overview", corrected the styles ( #22033 ) ( #22040 )
...
(cherry picked from commit 2347f65133
)
Co-authored-by: Lijun Wang <83639177+lijunwangs@users.noreply.github.com >
2021-12-21 02:58:53 +00:00
57e5406476
Add deactivation cooldown before address lookup tables can be closed ( #22011 ) ( #22036 )
...
(cherry picked from commit f5d1115468
)
Co-authored-by: Justin Starry <justin@solana.com >
2021-12-21 02:10:14 +00:00
4f57c4a4fe
Fix weird formatting of bullets ( #22013 ) ( #22030 )
...
(cherry picked from commit 116517fb6d
)
Co-authored-by: Kardashev <96332127+0xkardashev@users.noreply.github.com >
2021-12-20 20:41:18 +00:00
c4b3b2865d
Update program close docs ( #22026 ) ( #22027 )
...
(cherry picked from commit b8eff3456c
)
Co-authored-by: Jack May <jack@solana.com >
2021-12-20 18:55:39 +00:00
f58c375b1f
typo: lanaguage -> language ( #22009 ) ( #22015 )
...
(cherry picked from commit e92a81b741
)
Co-authored-by: Peter Johnson <peter@geocode.earth >
2021-12-20 07:34:31 +00:00
bf41c53f11
chore: add blockSubscribe api docs ( #22002 ) ( #22008 )
...
Co-authored-by: Zano <segfaultdoctor@protonmail.com >
(cherry picked from commit df6a4930b9
)
Co-authored-by: segfaultdoctor <seg@jito.network >
2021-12-19 16:48:36 +00:00
e3a4b98432
removes Select in favor of recv_timeout/try_iter ( #21981 ) ( #22001 )
...
crossbeam_channel::Select::ready_timeout might return with success spuriously.
(cherry picked from commit 7476dfeec0
)
Co-authored-by: behzad nouri <behzadnouri@gmail.com >
2021-12-18 19:37:07 +00:00
91657ba8fe
new net-stats require a new table ( #21996 ) ( #22000 )
...
(cherry picked from commit 3fe942ab30
)
Co-authored-by: Jeff Biseda <jbiseda@gmail.com >
2021-12-18 10:26:16 +00:00
35ee48bec9
RPC Block Subscription (backport #21787 ) ( #21992 )
...
* RPC Block Subscription (#21787 )
* add stuff
* compiling
* add notify block
* wip
* feat: add blockSubscribe pubsub method
* address PR comments
Co-authored-by: Lucas B <buffalu@jito.network >
Co-authored-by: Zano <segfaultdoctor@protonmail.com >
(cherry picked from commit 76098dd42a
)
# Conflicts:
# Cargo.lock
# client-test/Cargo.toml
# rpc/src/rpc_subscriptions.rs
* Fix conflicts
Co-authored-by: segfaultdoctor <seg@jito.network >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2021-12-18 01:43:37 +00:00
02cfa85214
Update to reed-solomon-erasure 5.0.1, to get simd-accel on M1 macs ( #21990 )
...
(cherry picked from commit 5f054cd51b
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2021-12-18 00:52:21 +00:00
02be3a6568
Check file size of snapshot_version
when unarchiving snapshot ( #21925 ) ( #21983 )
...
(cherry picked from commit 0f6e8d3385
)
Co-authored-by: mooori <moritz.zielke@gmail.com >
2021-12-17 21:02:53 +00:00
b20fae5a09
simplifies ShredIndex api ( #21932 ) ( #21959 )
...
(cherry picked from commit efd64a3862
)
Co-authored-by: behzad nouri <behzadnouri@gmail.com >
2021-12-17 19:50:49 +00:00
e572678176
removes next_shred_index from return value of entries to shreds api ( #21961 ) ( #21980 )
...
next-shred-index is already readily available from returned data shreds.
The commit simplifies the api for upcoming changes to erasure coding
schema which will require explicit tracking of indices for coding shreds
as well as data shreds.
(cherry picked from commit 89d66c3210
)
Co-authored-by: behzad nouri <behzadnouri@gmail.com >
2021-12-17 17:57:57 +00:00
f4521002b9
Clean up demote program write lock feature (backport #21949 ) ( #21969 )
...
* Clean up demote program write lock feature (#21949 )
* Clean up demote program write lock feature
* fix test
(cherry picked from commit 6ff0be6a82
)
# Conflicts:
# programs/bpf_loader/src/syscalls.rs
# runtime/src/accounts.rs
* resolve conflicts
Co-authored-by: Justin Starry <justin@solana.com >
2021-12-17 04:45:22 +00:00
0c5a2bcd5a
Update getSignaturesForAddress and getConfirmedSignaturesForAddress2 RPC call description ( #21955 ) ( #21960 )
...
* Update jsonrpc-api.md
* Update docs/src/developing/clients/jsonrpc-api.md
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
* Wrap 80chars
* Update docs/src/developing/clients/jsonrpc-api.md
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
(cherry picked from commit 3398f5a2f5
)
Co-authored-by: jdcaballerov <743513+jdcaballerov@users.noreply.github.com >
2021-12-16 20:59:51 +00:00
c25d16bf0d
adds ErasureSetId identifying erasure coding sets of shreds (backport #21928 ) ( #21946 )
...
* adds ErasureSetId identifying erasure coding sets of shreds (#21928 )
(cherry picked from commit 8183f28636
)
# Conflicts:
# ledger/src/blockstore.rs
* removes backport merge conflicts
Co-authored-by: behzad nouri <behzadnouri@gmail.com >
2021-12-16 17:49:39 +00:00
301e38044a
Fixes the calculation of the "compute_meter_consumption" across process_instruction() and process_message(). ( #21944 ) ( #21945 )
...
(cherry picked from commit 49cb161203
)
Co-authored-by: Alexander Meißner <AlexanderMeissner@gmx.net >
2021-12-16 16:28:28 +00:00
bfa6302985
Bump version to 1.9.2
2021-12-15 16:18:14 -08:00
b66e2ae353
add caching_enabled option to test-validator
...
(cherry picked from commit 5fb7da12f2
)
v1.9.1
2021-12-15 16:11:51 -08:00
3967dc8685
rebase
2021-12-15 15:33:45 -08:00
569c83295d
Update argument name
...
(cherry picked from commit ed924e3bc4
)
2021-12-15 15:33:45 -08:00
a462c58594
Add option to load accounts from file
...
This introduces the `--clone-from-file` option for
solana-test-validator. It allows specifying any number of files
(without extension) containing account info and data, which will be
loaded at genesis. This is similar to `--bpf-program` for programs
loading.
The files will be searched for in the CWD or in `tests/fixtures`.
Example: `solana-test-validator --clone-from-file SRM_token USD_token`
(cherry picked from commit 9b06d64eb8
)
# Conflicts:
# test-validator/Cargo.toml
2021-12-15 15:33:45 -08:00
7dba8bb49f
Add complete account dump to file
...
This commit introduces the ability to dump the complete content of an
account to a JSON file (compact or not depending on the provided format
option).
Example:
```sh
solana account -u m \
--output json-compact \
--output-file SRM_token.json \
SRMuApVNdxXokk5GT7XD5cUUgXMBCoAz2LHeuAoKWRt
```
Note: Behavior remains untouched if format option `--output` is not
provided (only account data gets written to file).
(cherry picked from commit 0e9e67b65d
)
2021-12-15 15:33:45 -08:00
c907d4444d
add accountsdb-plugin-config to test-validator ( #21918 )
...
(cherry picked from commit c2a94a8fb0
)
Co-authored-by: Kirill Fomichev <fanatid@ya.ru >
2021-12-15 09:48:12 +00:00
b4c847557b
Restore solana_validator::test_validator export
...
(cherry picked from commit e124659aca
)
2021-12-15 00:29:04 -08:00
de48347078
Add json support for feature sets; also print output after feature list ( #21905 ) ( #21914 )
...
* Add json support for feature sets; also print output after feature list
* Move stringifying into Display implementation
(cherry picked from commit dcd2854829
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2021-12-15 07:08:39 +00:00
9f173d3717
Add helper crate to generate syscalls.txt
2021-12-14 21:34:36 -08:00
dcd76e484f
Update openssl-src package to resolve cargo audit complaint
...
(cherry picked from commit 7ba27e5cae
)
2021-12-14 19:09:26 -08:00
2246135654
Document solana_program::instruction ( #21817 ) ( #21906 )
...
* Document solana_program::instruction
* Apply suggestions from code review
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
(cherry picked from commit dcb5849484
)
Co-authored-by: Brian Anderson <andersrb@gmail.com >
2021-12-15 00:55:56 +00:00
41ea597256
Fix subtraction overflow ( #21871 ) ( #21901 )
...
(cherry picked from commit cb395abff7
)
Co-authored-by: carllin <carl@solana.com >
2021-12-14 23:22:47 +00:00
fb955bd4ec
Update Cargo.toml
2021-12-14 14:18:20 -08:00
5c3fbb384f
Futures 0.3.18 has been yanked, back off to .17
...
(cherry picked from commit 2a6dcb2ffd
)
# Conflicts:
# ledger/Cargo.toml
2021-12-14 14:18:20 -08:00
a056fd88cb
uses Option<Slot> for SlotMeta.parent_slot (backport #21808 ) ( #21899 )
...
* uses Option<Slot> for SlotMeta.parent_slot (#21808 )
SlotMeta.parent_slot for the head of a detached chain of slots is
unknown and that is indicated by u64::MAX which lacks type-safety:
https://github.com/solana-labs/solana/blob/6c108c8fc/ledger/src/blockstore_meta.rs#L203-L205
The commit changes the type to Option<Slot>. Backward compatibility is
maintained by customizing serde serialize/deserialize implementations.
(cherry picked from commit 8d980f07ba
)
# Conflicts:
# ledger-tool/src/main.rs
* removes backport merge conflicts
Co-authored-by: behzad nouri <behzadnouri@gmail.com >
2021-12-14 21:42:57 +00:00
2f1816d1db
adds ShredId uniquely identifying each shred (backport #21820 ) ( #21897 )
...
* adds ShredId uniquely identifying each shred (#21820 )
(cherry picked from commit 4ceb2689f5
)
# Conflicts:
# ledger/src/blockstore.rs
* removes backport merge conflicts
Co-authored-by: behzad nouri <behzadnouri@gmail.com >
2021-12-14 21:03:08 +00:00
2cd2f3ba7b
Bump rbpf to v0.2.19 ( #21880 ) ( #21891 )
...
* Bump rbpf to v0.2.19
Co-authored-by: Alexander Meißner <AlexanderMeissner@gmx.net >
(cherry picked from commit 509bcd2e74
)
Co-authored-by: Jack May <jack@solana.com >
2021-12-14 20:30:31 +00:00
135dfdbf1e
Don't publish rbpf-cli to crates.io
2021-12-14 12:12:19 -08:00
fad4bfdf2a
Don't publish poh-bench to crates.io
2021-12-14 12:10:03 -08:00
a9d4728c35
Deserialize accounts before acquiring stakes cache lock ( #21733 ) ( #21889 )
...
* Deserialize stored accounts before locking stakes cache
* fix test
(cherry picked from commit 2bbe1d875a
)
Co-authored-by: Justin Starry <justin@solana.com >
2021-12-14 16:47:01 +00:00
3977bcde63
Add missing word "that" ( #21878 ) ( #21884 )
...
(cherry picked from commit 746869fdac
)
Co-authored-by: Raza <42661870+AlmostEfficient@users.noreply.github.com >
2021-12-14 14:44:48 +00:00
cf2a9de19c
Add solana-cli-config link to rust-api.md ( #21840 ) ( #21874 )
...
(cherry picked from commit 033106ed81
)
Co-authored-by: Brian Anderson <andersrb@gmail.com >
2021-12-14 08:22:13 +00:00
5e2b12aee5
Restore ALL behavior; add enum variant, comments, and help text to make behavior clearer ( #21854 ) ( #21863 )
...
(cherry picked from commit bed1b143a5
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2021-12-14 05:21:25 +00:00
6c329e2fd3
Fixup RPC docs (backport #21858 ) ( #21864 )
...
* Remove old notes referring to EOL versions
(cherry picked from commit eebaf89874
)
* Add notes about new v1.9 rpc apis
(cherry picked from commit fd212fd2a4
)
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2021-12-14 02:46:44 +00:00
0376045c7d
cli: Order displayed feature list by status ( #21810 ) ( #21830 )
...
(cherry picked from commit 1149c1880d
)
Co-authored-by: Justin Starry <justin@solana.com >
2021-12-13 14:39:47 +00:00
c1f54c22ed
Remove the 5 integer msg! form
...
(cherry picked from commit c5c699a918
)
2021-12-11 12:47:43 -08:00