478c641cb5
Fix token-balance owner type in docs ( #22240 ) ( #22242 )
...
(cherry picked from commit 9029b46570
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2022-01-03 18:28:54 +00:00
735f000952
Remove Xargo.toml reference ( #22239 )
...
(cherry picked from commit 56fd32bda2
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2022-01-03 17:39:19 +00:00
264bb903a3
Bump rbpf to v0.2.21 ( #22216 ) ( #22217 )
...
(cherry picked from commit 9139be89b7
)
2022-01-01 20:42:53 +00:00
7c5d3e5874
Exit early on BigTable error ( #22200 ) ( #22209 )
...
(cherry picked from commit 0b1b36f088
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2022-01-01 00:45:18 +00:00
70d5b6aeaf
Bump solana_rbpf to version v0.2.20 ( #22164 ) ( #22207 )
...
(cherry picked from commit 8a43e2d889
)
Co-authored-by: Alexander Meißner <AlexanderMeissner@gmx.net >
2021-12-31 21:57:20 +00:00
ca451ea23e
checks for authorized voter early on in the vote-listener pipeline (backport #22169 ) ( #22206 )
...
* checks for authorized voter early on in the vote-listener pipeline (#22169 )
Before votes are verified that they are signed by the authorized voter,
they might be dropped in verified-vote-packets code. If there are
enough many spam votes from unauthorized voters, this may potentially
drop valid votes but keep the false ones.
https://github.com/solana-labs/solana/blob/57986f982/core/src/verified_vote_packets.rs#L165-L168
(cherry picked from commit c0c6038654
)
# Conflicts:
# core/src/cluster_info_vote_listener.rs
* removes backport merge conflicts
Co-authored-by: behzad nouri <behzadnouri@gmail.com >
2021-12-31 21:46:12 +00:00
113d261a2c
Count compute units even when transaction errors (backport #22182 ) ( #22199 )
...
* Count compute units even when transaction errors (#22182 )
(cherry picked from commit d06e6c7425
)
# Conflicts:
# program-runtime/src/invoke_context.rs
# runtime/src/cost_model.rs
# runtime/src/message_processor.rs
* Resolve conflicts
Co-authored-by: carllin <carl@solana.com >
2021-12-31 21:14:00 +00:00
c6ab915668
chore: update transaction error links in docs ( #22189 ) ( #22197 )
...
(cherry picked from commit 4e4577afbe
)
Co-authored-by: Jacob Creech <82475023+jacobcreech@users.noreply.github.com >
2021-12-30 22:32:10 +00:00
d5c0ffc11f
Update install/src/command.rs
...
Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com >
(cherry picked from commit 29edb130cc
)
2021-12-30 07:30:17 -08:00
6a2b62de62
Add connect timeout and change overall timeout to None
...
(cherry picked from commit 3c1416091e
)
2021-12-30 07:30:17 -08:00
4645be3e52
fix: Installer increase download req timeout from 30 seconds to 6 minutes
...
(cherry picked from commit a1912f8400
)
2021-12-30 07:30:17 -08:00
7efd0391e9
Revert "Count compute units even when transaction errors (backport #22059 ) ( #22154 )" ( #22175 )
...
This reverts commit 401c542d2a
.
2021-12-30 02:39:25 -05:00
6a556c5adb
Stream additional block metadata via plugin ( #22023 ) ( #22179 )
...
* Stream additional block metadata through plugin
blockhash, block_height, block_time, rewards are streamed
(cherry picked from commit f14928a970
)
Co-authored-by: Lijun Wang <83639177+lijunwangs@users.noreply.github.com >
2021-12-30 05:44:12 +00:00
0cd45400ca
Add docs for notifying transactions via plugin ( #22097 ) ( #22178 )
...
* Added documentations for streaming transactions via plugin
* Updated comments for transaction info
* Updated doc on transaction format
* Removed a white space
* Apply suggestions from code review from Tyera
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
(cherry picked from commit 135af08b8b
)
Co-authored-by: Lijun Wang <83639177+lijunwangs@users.noreply.github.com >
2021-12-30 05:10:32 +00:00
531f36c571
Don't forward packets received from TPU forwards port ( #22078 ) ( #22171 )
...
* Don't forward packets received from TPU forwards port
* Add banking stage test
(cherry picked from commit b1d9a2e60e
)
Co-authored-by: Justin Starry <justin@solana.com >
2021-12-30 10:42:28 +08:00
9c9d3e8b6b
discards serialized gossip crds votes if cannot parse tx (backport #22129 ) ( #22172 )
...
* discards serialized gossip crds votes if cannot parse tx (#22129 )
(cherry picked from commit c9c78622a8
)
# Conflicts:
# gossip/src/crds_value.rs
* removes backport merge conflicts
Co-authored-by: behzad nouri <behzadnouri@gmail.com >
2021-12-29 22:38:12 +00:00
74b98c2dd4
get_signatures_for_address does not correctly account for result sets that span local and Bigtable sources ( #22115 ) ( #22168 )
...
* get_signatures_for_address does not correctly account for result sets that span Blockstore and Bigtable.
This causes Bigtable to return `RowNotFound` until the new tx is uploaded.
Check that `before` exists in Bigtable, and if not, set it to `None` to return the full data set.
References #21442
Closes #22110
* Differentiate between before sig not found and no newer signatures
* Dedupe bigtable results to account for potential upload race
Co-authored-by: Tyera Eulberg <tyera@solana.com >
(cherry picked from commit bac6821e19
)
Co-authored-by: Omar Kilani <omar.kilani@gmail.com >
2021-12-29 19:52:36 +00:00
9fb67f9b07
Prevent log spam ( #22148 ) ( #22152 )
...
(cherry picked from commit f061059e45
)
Co-authored-by: carllin <carl@solana.com >
2021-12-29 08:28:48 +00:00
401c542d2a
Count compute units even when transaction errors (backport #22059 ) ( #22154 )
...
* Count compute units even when transaction errors (#22059 )
(cherry picked from commit eaa8c67bde
)
# Conflicts:
# program-runtime/src/invoke_context.rs
# runtime/src/bank.rs
# runtime/src/message_processor.rs
* Fix merge conflicts
Co-authored-by: carllin <carl@solana.com >
2021-12-29 08:04:12 +00:00
14ed446923
cargo-build-bpf: Add Windows support ( #20276 ) ( #22155 )
...
* cargo-build-bpf: Add Windows support
* Update error message
(cherry picked from commit 57986f982a
)
Co-authored-by: Jon Cinque <jon.cinque@gmail.com >
2021-12-29 03:07:39 +00:00
adc584ee22
Add (preflight) simulation to BanksClient ( #22084 ) ( #22149 )
...
* Add more-legitimate conversion from legacy Transaction to SanitizedTransaction
* Add Banks method with preflight checks
* Expose BanksClient method with preflight checks
* Unwrap simulation err
* Add Bank simulation method that works on unfrozen Banks
* Add simpler api
* Better name: BanksTransactionResultWithSimulation
(cherry picked from commit 422a095647
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2021-12-28 22:04:27 +00:00
810ca36eae
skip reporting all-zero stats ( #22054 )
...
(cherry picked from commit 9c5d82557a
)
Co-authored-by: Tao Zhu <tao@solana.com >
2021-12-28 07:03:13 +00:00
16f821ea8c
Ensure AncestorHashesSerice selects an open port ( #21919 ) ( #21997 )
...
(cherry picked from commit 7f6fb6937a
)
Co-authored-by: carllin <wumu727@gmail.com >
2021-12-28 06:46:59 +00:00
584e9bfbe7
docs: fix typo ( #22116 ) ( #22118 )
...
(cherry picked from commit f643a8b425
)
Co-authored-by: Samuel Oloruntoba <git@kayandra.co >
2021-12-26 04:36:49 +00:00
3ad4c3306c
Add PubsubClient::vote_subscribe ( #22114 )
...
(cherry picked from commit 0a0fc85282
)
Co-authored-by: Kirill Fomichev <fanatid@ya.ru >
2021-12-25 23:19:46 +00:00
be0bcd85ed
tracks erasure coding shreds' indices explicitly ( #21822 ) ( #22094 )
...
The indices for erasure coding shreds are tied to data shreds:
https://github.com/solana-labs/solana/blob/90f41fd9b/ledger/src/shred.rs#L921
However with the upcoming changes to erasure schema, there will be more
erasure coding shreds than data shreds and we can no longer infer coding
shreds indices from data shreds.
The commit adds constructs to track coding shreds indices explicitly.
(cherry picked from commit 65d59f4ef0
)
Co-authored-by: behzad nouri <behzadnouri@gmail.com >
2021-12-23 19:38:50 +00:00
8708186760
Update checks.rs
...
(cherry picked from commit d06c04d02c
)
2021-12-23 07:00:26 -08:00
8f3e37c174
Remove msg spam from deploying
...
(cherry picked from commit 52c1eb0160
)
2021-12-23 07:00:26 -08:00
7d61935bf1
Bump bpf-tools to v1.21 ( #22083 )
...
(cherry picked from commit 7cc6262b5a
)
Co-authored-by: Dmitri Makarov <dmakarov@alumni.stanford.edu >
2021-12-23 03:38:04 +00:00
a70eb098f4
Fix transaction pk violation ( #22057 ) ( #22076 )
...
* Handle PK violation issue for transaction notification. The transaction might be replayed due to
validator restart.
(cherry picked from commit d6de4a2f4e
)
Co-authored-by: Lijun Wang <83639177+lijunwangs@users.noreply.github.com >
2021-12-23 00:33:35 +00:00
f31593bfbe
Update jsonrpc-api.md to document 'owner' property ( #22074 ) ( #22077 )
...
* Update jsonrpc-api.md to document 'owner' property
Documents 'owner' property on the token balances struct.
* Update docs/src/developing/clients/jsonrpc-api.md
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
(cherry picked from commit 67c8034fe5
)
Co-authored-by: splintred <91386295+splintred@users.noreply.github.com >
2021-12-23 00:13:30 +00:00
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