mergify[bot]
87f4a1f4b6
Bank gets accounts data len delta from MessageProcessor::process_message() ( #22288 )
...
(cherry picked from commit 635337d2ff
)
Co-authored-by: Brooks Prumo <brooks@solana.com >
2022-01-05 05:50:03 +00:00
mergify[bot]
17411f9b4c
Add accounts_data_len to Bank ( #21781 ) ( #22285 )
...
(cherry picked from commit eeb97fe7ce
)
Co-authored-by: Brooks Prumo <brooks@solana.com >
2022-01-05 02:24:52 +00:00
mergify[bot]
fb0e5adc7e
patches bug in recv_mmsg when npkts != nrecv (backport #22276 ) ( #22280 )
...
* removes total-size from return value of recv_mmsg
(cherry picked from commit 4b24499916
)
* patches bug in recv_mmsg when npkts != nrecv
If recv_mmsg receives 2 packets where the first one is filtered out,
then it returns npkts == 1:
https://github.com/solana-labs/solana/blob/01a096adc/streamer/src/recvmmsg.rs#L104-L115
But then streamer::packet::recv_from will erroneously keep the 1st
packet and drop the 2nd one:
https://github.com/solana-labs/solana/blob/01a096adc/streamer/src/packet.rs#L34-L49
To avoid this bug, this commit updates recv_mmsg to always return total
number of received packets. If socket address cannot be correctly
obtained, it is left as the default value which is UNSPECIFIED:
https://github.com/solana-labs/solana/blob/01a096adc/sdk/src/packet.rs#L145
(cherry picked from commit 379feecae5
)
Co-authored-by: behzad nouri <behzadnouri@gmail.com >
2022-01-04 23:42:52 +00:00
mergify[bot]
f4ded6fb6b
Updates to the address lookup table proposal ( #22269 ) ( #22270 )
...
Co-authored-by: Justin Starry <justin@solana.com >
2022-01-04 23:38:51 +00:00
mergify[bot]
f89bf7b939
Compute accounts data len during generate_index() ( #21757 ) ( #22277 )
...
(cherry picked from commit ec7e17787e
)
Co-authored-by: Brooks Prumo <brooks@solana.com >
2022-01-04 22:44:51 +00:00
mergify[bot]
c99aed4abf
Update address map proposal to improve dev experience ( #21576 ) ( #22283 )
...
* Update address map proposal to improve dev experience
* another revision to match implementation
(cherry picked from commit 0224a8b127
)
Co-authored-by: Justin Starry <justin@solana.com >
2022-01-04 22:11:59 +00:00
mergify[bot]
edfd8c1717
Fix program log filtering ( #22133 ) ( #22151 )
...
(cherry picked from commit c7b0917e1a
)
Co-authored-by: Jack May <jack@solana.com >
2022-01-04 21:56:49 +00:00
mergify[bot]
09dbf069e8
Add test to enforce that program id account info for CPI is optional ( #22069 ) ( #22103 )
...
* Update tests to demonstrate that program id account info for CPI is optional
* Clean up comments that say that program id account info is required
(cherry picked from commit ec7536faf6
)
Co-authored-by: Justin Starry <justin@solana.com >
2022-01-04 21:47:48 +00:00
mergify[bot]
9764d4349b
Add return types to generate_index() ( #21735 ) ( #22275 )
...
(cherry picked from commit 1528f85112
)
Co-authored-by: Brooks Prumo <brooks@solana.com >
2022-01-04 18:27:40 +00:00
mergify[bot]
d84b994451
shrinks size of Packet.Meta (backport #22224 ) ( #22273 )
...
* removes seed and slot fields from Packet.Meta
507367e6ac
updated window-service to send shreds (as opposed to packets) to
retransmit-stage and so seed and slot fields in Packet.Meta are unused:
https://github.com/solana-labs/solana/blob/d6ec103be/sdk/src/packet.rs#L27-L28
(cherry picked from commit aa9f7ed7e8
)
* uses std::net::IpAddr type for Packet.Meta.addr
(cherry picked from commit 73a7741c49
)
# Conflicts:
# streamer/src/streamer.rs
* adds bitflags to Packet.Meta
Instead of a separate bool type for each flag, all the flags can be
encoded in a type-safe bitflags encoded in a single u8:
https://github.com/solana-labs/solana/blob/d6ec103be/sdk/src/packet.rs#L19-L31
(cherry picked from commit 01a096adc8
)
# Conflicts:
# sdk/Cargo.toml
* removes backport merge conflicts
Co-authored-by: behzad nouri <behzadnouri@gmail.com >
2022-01-04 17:38:29 +00:00
mergify[bot]
185f52b712
Lower vote-only-mode to 400 ( #22210 ) ( #22272 )
...
(cherry picked from commit 2486e21ffe
)
Co-authored-by: sakridge <sakridge@gmail.com >
2022-01-04 15:15:16 +00:00
mergify[bot]
3b59f67562
Limit number of accounts that a transaction can lock (backport #22201 ) ( #22263 )
...
* Limit number of accounts that a transaction can lock (#22201 )
(cherry picked from commit 2b5e00d36d
)
# Conflicts:
# accountsdb-plugin-postgres/src/postgres_client/postgres_client_transaction.rs
# runtime/src/accounts.rs
# runtime/src/bank.rs
# sdk/src/feature_set.rs
# sdk/src/transaction/error.rs
# storage-proto/proto/transaction_by_addr.proto
# storage-proto/src/convert.rs
* resolve conflicts
Co-authored-by: Justin Starry <justin@solana.com >
2022-01-04 11:34:34 +00:00
mergify[bot]
7d2589e2ac
Documentation typos ( #22262 ) ( #22268 )
...
* Fix typo markdown link
* Add missing punctuation full stop
(cherry picked from commit 9665da9d0b
)
Co-authored-by: glihm <dev@glihm.net >
2022-01-04 11:15:06 +00:00
mergify[bot]
77558c315d
Fixed issue #22124 -- missing historical data if slot updated later. ( #22193 ) ( #22259 )
...
* Fixed issue #22124 -- missing historical data if slot updated later.
* Fixed a couple of comments
(cherry picked from commit 5b6027bef0
)
Co-authored-by: Lijun Wang <83639177+lijunwangs@users.noreply.github.com >
2022-01-04 07:18:58 +00:00
mergify[bot]
464d533da3
Flip iter operations to keep associated address/header/packets together ( #22245 ) ( #22257 )
...
Flip iter operations to keep associated address/header/packets together
Before this change, if cast_socket_addr() returned a None for any
address/header pair, the subsequent zip() would misalign the
address/header pair and packet. So, this change zips all three together,
then does filter_map() so keep things aligned.
Additionally, compute total_size inline to avoid running through packets
a second time.
(cherry picked from commit 20b61e28b6
)
Co-authored-by: steviez <steven@solana.com >
2022-01-04 07:06:06 +00:00
mergify[bot]
f8bf478fde
Fix bug, add error specific timings ( #22225 ) ( #22252 )
...
(cherry picked from commit 005592998d
)
Co-authored-by: carllin <carl@solana.com >
2022-01-04 02:53:59 +00:00
mergify[bot]
35fb47d1ce
removes epoch_authorized_voters from VoteTracker (backport #22192 ) ( #22248 )
...
* removes epoch_authorized_voters from VoteTracker (#22192 )
https://github.com/solana-labs/solana/pull/22169
verifies authorized-voter early on in vote-listener pipeline; and so
VoteTracker no longer needs to maintain and check for epoch authorized
voters.
(cherry picked from commit 69d71f8f86
)
# Conflicts:
# core/src/cluster_info_vote_listener.rs
* removes backport merge conflicts
Co-authored-by: behzad nouri <behzadnouri@gmail.com >
2022-01-04 01:51:24 +00:00
Michael Vines
5bd27dd175
Correctly set CI_COMMIT when Buildkite provides HEAD instead of a real commit
2022-01-03 17:39:49 -08:00
Michael Vines
794f28d9ab
Switch from arm64-apple-darwin to aarch64-apple-darwin to align with Rust's target names
2022-01-03 17:16:49 -08:00
Michael Vines
d7a673f7f5
Add support for arm64-apple-darwin release/channel artifacts
2022-01-03 17:16:34 -08:00
Michael Vines
b3fa1288aa
Use experimential docker virtualization framework for arm64
...
(cherry picked from commit ed0b47c6f8
)
2022-01-03 16:54:37 -08:00
mergify[bot]
3e4e2e9113
Prevent lookup tables from being closed during deactivation slot ( #22221 ) ( #22247 )
...
(cherry picked from commit bbe5b66324
)
Co-authored-by: Justin Starry <justin@solana.com >
2022-01-03 23:32:03 +00:00
Michael Vines
fd4754e5a9
Correctly set CI_OS_NAME for macOs buildkite agents
2022-01-03 12:54:57 -08:00
mergify[bot]
0a9460ed8b
re-calibrate limit based on mainnet data (backport #21995 ) ( #22212 )
...
* re-calibrate limit based on mainnet data, see issue #21917
(cherry picked from commit d743c2917c
)
# Conflicts:
# runtime/src/block_cost_limits.rs
* set secp256k1 cost similar to sigverify
(cherry picked from commit a2a7e91ad6
)
* removes backport merge conflicts
Co-authored-by: Tao Zhu <tao@solana.com >
2022-01-03 19:22:10 +00:00
mergify[bot]
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
mergify[bot]
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
Alexander Meißner
264bb903a3
Bump rbpf to v0.2.21 ( #22216 ) ( #22217 )
...
(cherry picked from commit 9139be89b7
)
2022-01-01 20:42:53 +00:00
mergify[bot]
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
mergify[bot]
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
mergify[bot]
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
mergify[bot]
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
mergify[bot]
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
Pierre
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
Arrowana
6a2b62de62
Add connect timeout and change overall timeout to None
...
(cherry picked from commit 3c1416091e
)
2021-12-30 07:30:17 -08:00
Arrowana
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
carllin
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
mergify[bot]
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
mergify[bot]
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
mergify[bot]
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
mergify[bot]
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
mergify[bot]
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
mergify[bot]
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
mergify[bot]
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
mergify[bot]
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
mergify[bot]
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
mergify[bot]
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
mergify[bot]
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
mergify[bot]
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
mergify[bot]
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
mergify[bot]
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