5216f51ff2
Rename IOError to BorshIoError
2021-02-19 10:54:59 -08:00
0c55add96b
Load memo v2 into genesis for test validator (bp #15425 ) ( #15430 )
...
* Load memo v2 into genesis for test validator (#15425 )
* Load memo v2 into genesis for test validator
* feedback
* versions
* remove .so
* add .so
(cherry picked from commit 7b67a6d208
)
# Conflicts:
# explorer/src/utils/tx.ts
* Update tx.ts
Co-authored-by: Justin Starry <justin@solana.com >
2021-02-19 12:23:33 +00:00
291f81d5b0
Bump SPL token version to v3.1.0 (bp #15429 ) ( #15434 )
...
* Bump SPL token version to v3.1.0 (#15429 )
* Bump SPL token version to v3.1.0
* Cargo.lock
(cherry picked from commit 15bbe6436d
)
# Conflicts:
# account-decoder/Cargo.toml
# core/Cargo.toml
* Update Cargo.toml
* Update Cargo.toml
Co-authored-by: Justin Starry <justin@solana.com >
2021-02-19 12:14:05 +00:00
5c8a878f1b
Send program deploy txs to up to 2 leaders ( #15421 ) ( #15424 )
...
(cherry picked from commit 4e84869c8e
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2021-02-19 04:30:05 +00:00
7148aaa30c
chore: bump serde from 1.0.112 to 1.0.118 (bp #14828 ) ( #15394 )
...
* chore: bump serde from 1.0.112 to 1.0.118 (#14828 )
* chore: bump serde from 1.0.112 to 1.0.122
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.112 to 1.0.122.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.112...v1.0.122 )
Signed-off-by: dependabot[bot] <support@github.com >
* [auto-commit] Update all Cargo lock files
* Update frozen_abi digest following serde update
* Revert "chore: bump serde from 1.0.112 to 1.0.122"
This reverts commit a3ef4442a4
.
* Revert "[auto-commit] Update all Cargo lock files"
This reverts commit c41c3b005f
.
* chore: bump serde from 1.0.112 to 1.0.118
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.112 to 1.0.118.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.112...v1.0.118 )
Signed-off-by: dependabot[bot] <support@github.com >
* [auto-commit] Update all Cargo lock files
* Remove serum-dex pinning
* blind commit!
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot-buildkite <dependabot-buildkite@noreply.solana.com >
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
(cherry picked from commit 1df93fa2be
)
# Conflicts:
# banks-interface/Cargo.toml
# perf/Cargo.toml
# programs/config/Cargo.toml
* Fix conflicts
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2021-02-18 13:29:17 +00:00
7a3c4c184f
sdk: Add Borsh support for types and utilities (bp #15290 ) ( #15393 )
...
* sdk: Add Borsh support for types and utilities (#15290 )
* sdk: Add Borsh to Pubkey
* Add serialization error for easier borsh integration
* Add Borsh usage to banks-client and sdk
* Rename SerializationError -> IOError
* Add new errors to proto
* Update Cargo lock
* Update Cargo.lock based on CI
* Clippy
* Update ABI on bank
* Address review feedback
* Update sanity program instruction count test
(cherry picked from commit 0f6f6080f3
)
# Conflicts:
# banks-client/Cargo.toml
* Update new dependencies
Co-authored-by: Jon Cinque <jon.cinque@gmail.com >
2021-02-18 13:23:08 +00:00
bc5f434e48
Add lamports overflow test for nonce withdraw ( #15383 ) ( #15385 )
...
(cherry picked from commit fcee227021
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2021-02-18 02:54:13 +00:00
569edbb241
Return blockstore error if previous_blockhash cannot be determined ( #15382 ) ( #15384 )
...
* Return blockstore error if previous_blockhash cannot be determined
* Add require_previous_blockshash flag
(cherry picked from commit 170cb792eb
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2021-02-18 02:38:48 +00:00
abf2d71f4c
More failure codepath tracing ( #15246 ) ( #15370 )
...
(cherry picked from commit 4e99aa5fa6
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2021-02-18 00:36:46 +00:00
1a8b57fcd0
First step towards denying clippy::integer_arithmetic (bp #15366 ) ( #15381 )
...
* CI: Globally deny clippy::integer_arithmetic lint
(cherry picked from commit 7035e8485c
)
* Re-allow clippy::integer_arithmetic at crate-level
(cherry picked from commit 7f7370c306
)
# Conflicts:
# bench-tps/tests/bench_tps.rs
Co-authored-by: Trent Nelson <trent@solana.com >
2021-02-17 22:30:03 +00:00
723c03dfbd
Adapt to fs_extra 1.2.0 ( #15380 )
...
(cherry picked from commit 9ba69a7381
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2021-02-17 22:07:12 +00:00
0a1fcfa08b
docs: Remove references to "create_address_with_seed" ( #15339 ) ( #15372 )
...
(cherry picked from commit 3ac7e09de6
)
Co-authored-by: Jon Cinque <jon.cinque@gmail.com >
2021-02-17 14:50:25 +00:00
8820933287
Bump version to 1.5.9
2021-02-16 22:17:10 -08:00
460c643f8e
Clean nonce
v1.5.8
2021-02-16 19:24:35 -08:00
65600f9a1f
Move fn to sdk
2021-02-16 19:24:35 -08:00
ef61dc9780
Vote program updates
2021-02-16 18:58:34 -08:00
477e5d4bff
Add --force arg for bigtable upload ( #15362 )
...
(cherry picked from commit 98e3e570d2
)
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2021-02-17 02:55:35 +00:00
d54632da00
Clean & check stake
2021-02-16 18:54:24 -07:00
26b420bd39
cli: Speed up program deploys ( #15347 )
...
* Speed up deploys
* fix test
(cherry picked from commit f5c564bc6c
)
2021-02-16 17:47:50 -08:00
c3dda3ce0c
stake: add lamports overflow test for withdraw
...
(cherry picked from commit ae82b5ebfd
)
2021-02-16 17:38:38 -08:00
c527e1f2e5
adds an upper bound on cluster-slots size ( #15300 ) ( #15357 )
...
https://github.com/solana-labs/solana/issues/14366#issuecomment-769096305
(cherry picked from commit f79c9d4094
)
Co-authored-by: behzad nouri <behzadnouri@gmail.com >
2021-02-16 22:32:26 +00:00
135f47b6be
checks that prune-messages have the same inner/outer pubkey ( #15352 ) ( #15356 )
...
(cherry picked from commit 076c20f1ca
)
Co-authored-by: behzad nouri <behzadnouri@gmail.com >
2021-02-16 22:22:29 +00:00
6656b3965f
rbpf-v0.2.5 ( #15334 ) ( #15335 )
...
(cherry picked from commit b43d2bc882
)
Co-authored-by: Alexander Meißner <AlexanderMeissner@gmx.net >
2021-02-16 17:55:04 +00:00
3068572bb9
Fix typo in account docs ( #15349 ) ( #15351 )
...
(cherry picked from commit 17a328bc6f
)
Co-authored-by: Austin Abell <austinabell8@gmail.com >
2021-02-16 17:23:06 +00:00
f48236837c
fill in timing gaps in replay_stage ( #14550 ) ( #15197 )
...
* fill in timing gaps in replay_stage
* add replay_stage bank_count metric
* formatting
* handle another gap
* cleanup wait_receive_time to be more straightforward
(cherry picked from commit 935dfdf0f6
)
Co-authored-by: Jeff Washington (jwash) <75863576+jeffwashington@users.noreply.github.com >
2021-02-16 09:53:08 +00:00
59beb8e548
More configurable rocksdb compaction ( #15213 ) ( #15325 )
...
rocksdb compaction can cause long stalls, so
make it more configurable to try and reduce those stalls
and also to coordinate between multiple nodes to not induce
stall at the same time.
(cherry picked from commit 5b8f046c67
)
Co-authored-by: sakridge <sakridge@gmail.com >
2021-02-16 01:46:36 +00:00
543f7e7ec1
Bump rand_core to 0.6.2
...
https://rustsec.org/advisories/RUSTSEC-2021-0023
2021-02-15 17:58:41 -07:00
efe563201f
Track RecycleStore basic stats with needed refactor ( #15291 ) ( #15327 )
...
* Track RecycleStore basic stats with needed refactor
* Fix another wrong metrics def
(cherry picked from commit 30f18319f2
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2021-02-15 08:26:24 +00:00
603cae4a5c
Log if unsanitary transactions are read from blockstore ( #15319 ) ( #15322 )
...
(cherry picked from commit 0812931c38
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2021-02-14 07:46:54 +00:00
73fb9695bc
style: Fix the typos ( #15318 )
...
(cherry picked from commit 9c7b3dc1b5
)
Co-authored-by: HowJMay <vulxj0j8j8@gmail.com >
2021-02-14 00:46:40 +00:00
1aec2102d4
Fix broken TdS links
2021-02-13 10:24:26 -07:00
99012f022e
sdk: sanitize Hash
base58 input ( #15315 )
...
(cherry picked from commit 1a20ab968f
)
Co-authored-by: Trent Nelson <trent@solana.com >
2021-02-13 09:54:06 +00:00
20afb912cd
Bump version to 1.5.8
2021-02-13 04:34:36 +00:00
563231132f
Stake program update ( #15308 )
v1.5.7
2021-02-12 17:15:48 -08:00
32ec9147bb
Rework spl_token_v2_self_transfer_fix to avoid any SPL Token downtime ( #15306 )
...
(cherry picked from commit 2e7aebf0bb
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2021-02-12 23:59:08 +00:00
4be8842925
Upgrade to SPL Token 3.1.0 program binary ( #15302 )
...
(cherry picked from commit aa97da2146
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2021-02-12 23:27:30 +00:00
b1ef9045ec
docs: getLargestAccounts caching notice ( #15293 ) ( #15295 )
...
(cherry picked from commit 760e163190
)
Co-authored-by: Josh <josh.hundley@gmail.com >
2021-02-12 18:43:56 +00:00
dbe4d87e60
Fix registration link
2021-02-11 21:54:00 -07:00
d2efa3aa15
RPC documentation updates for token deltas / blockTimes in getConfirmedSignatures2/getConfirmedTransaction ( #14871 ) ( #15284 )
...
* docs: add token balances response info
* docs: add blockTime to getConfirmedSignatures and getConfirmedTransaction
* docs: update example responses
* fix: remove space
(cherry picked from commit 6b8e710988
)
Co-authored-by: Josh <josh.hundley@gmail.com >
2021-02-12 02:13:32 +00:00
ccd2c6cc13
Add per-byte logging cost ( #15279 ) ( #15282 )
...
(cherry picked from commit 6650fbf443
)
Co-authored-by: Jack May <jack@solana.com >
2021-02-12 02:09:45 +00:00
e976b1547a
Fix flaky test test_concurrent_snapshot_packaging ( #15252 ) ( #15281 )
...
(cherry picked from commit 990bb426a9
)
Co-authored-by: carllin <carl@solana.com >
2021-02-12 01:22:06 +00:00
03ac807756
RPC: add caching to getLargestAccounts ( #15154 ) ( #15271 )
...
* introduce get largest accounts cache
* remove cache size and change hash key
* remove eq and hash derivation from commitment config
* add slot to the cache
(cherry picked from commit 4013f91dbe
)
Co-authored-by: Josh <josh.hundley@gmail.com >
2021-02-11 21:13:09 +00:00
067871cc39
Clean up mainnet-beta inflation candidate features ( #15257 )
...
(cherry picked from commit 47c60f8e98
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2021-02-11 03:02:16 +00:00
e9ceb99460
Match BPF instruction reporting to dump file ( #15254 ) ( #15256 )
...
(cherry picked from commit 10abd199e1
)
Co-authored-by: Jack May <jack@solana.com >
2021-02-11 02:52:25 +00:00
cd994f0162
Bump version to 1.5.7
2021-02-10 05:18:39 +00:00
01e4d0a1e9
Use spl-token-mint secondary index for relevant getProgramAccounts requests ( #15219 ) ( #15224 )
...
(cherry picked from commit 948819dfa8
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
v1.5.6
2021-02-10 00:39:55 +00:00
7f0f43cb28
Warp timestamp and extend max-allowable-drift for accommodate slow blocks ( #15204 ) ( #15222 )
...
* Remove timestamp_correction feature gating
* Remove timestamp_bounding feature gating
* Remove unused deprecated ledger code
* Remove unused deprecated unbounded-timestamp code
* Enable independent adjustment of fast/slow timestamp bounding
* Update timestamp bounds to 25% fast, 80% slow; warp timestamp
* Update bank hash test
* Add PR number to feature
Co-authored-by: Michael Vines <mvines@gmail.com >
Co-authored-by: Michael Vines <mvines@gmail.com >
(cherry picked from commit da6753b8c0
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2021-02-10 00:03:26 +00:00
d0bf97d25d
uses btree-map instead of hash-map for cluster-slots ( #15194 ) ( #15220 )
...
retain traverses all values in the hashmap which is slow:
https://github.com/solana-labs/solana/blob/88f22c360/core/src/cluster_slots.rs#L45
btree-map instead allows more efficient prunning there.
In addition there is potential race condition here:
https://github.com/solana-labs/solana/blob/88f22c360/core/src/cluster_slots.rs#L68-L74
If another thread inserts a value at the same slot key between the read
and write lock, current thread will discard the inserted value.
(cherry picked from commit 2758588ddd
)
Co-authored-by: behzad nouri <behzadnouri@gmail.com >
2021-02-09 23:21:08 +00:00
c3056734e3
solana-test-validator now uses the BPF JIT by default, --no-bpf-jit
to disable
2021-02-09 21:43:00 +00:00
5e2b9e595d
use index version of calculating hash ( #15189 ) ( #15211 )
...
* use index version of calculating hash
* invert const
* formatting
(cherry picked from commit 8424fe2c12
)
Co-authored-by: Jeff Washington (jwash) <75863576+jeffwashington@users.noreply.github.com >
2021-02-09 18:02:23 +00:00