11f4443a7b
Add missing backslash to solana-validator command ( #11957 )
...
(cherry picked from commit a19f696a42
)
Co-authored-by: Richard Ayotte <rich.ayotte@gmail.com >
2020-08-31 23:41:52 +00:00
a8eea4f42d
Increase message_processor logging to error level ( #11945 ) ( #11947 )
...
(cherry picked from commit 9b9d559312
)
Co-authored-by: sakridge <sakridge@gmail.com >
2020-08-31 21:55:07 +00:00
18e7112608
Fix get_parsed_token_accounts ( #11907 ) ( #11908 )
...
(cherry picked from commit 60c7ac6f95
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2020-08-29 20:07:04 +00:00
857e44c147
Update to spl-token 2
2020-08-29 09:24:35 -07:00
bd0536c80f
Bump spl-token version
2020-08-29 02:22:33 -06:00
184e4253c7
Update to token pack/unpack changes ( #11901 )
2020-08-29 04:57:09 +00:00
5828d2cff7
Update spl-token to v2.0 (bp #11884 ) ( #11896 )
...
* Update spl-token to v2.0 (#11884 )
* Update account-decoder to spl-token v2.0
* Update transaction-status to spl-token v2.0
* Update rpc to spl-token v2.0
* Update getTokenSupply to pull from Mint directly
* Fixup to spl-token v2.0.1
(cherry picked from commit 76be36c9ce
)
# Conflicts:
# Cargo.lock
# account-decoder/Cargo.toml
# core/Cargo.toml
# core/src/rpc.rs
# transaction-status/Cargo.toml
* Fix non-Cargo.lock conflicts
* Limited Deserialize isn't limiting anything (#10952 )
* Add failing test
* Use deserialize_from to enable limit
* Cargo.lock
* chore(deps): bump bincode from 1.2.1 to 1.3.1 (#10867 )
* chore(deps): bump bincode from 1.2.1 to 1.3.1
Bumps [bincode](https://github.com/servo/bincode ) from 1.2.1 to 1.3.1.
- [Release notes](https://github.com/servo/bincode/releases )
- [Commits](https://github.com/servo/bincode/commits )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
* [auto-commit] Update all Cargo lock files
* Switch from deprecated method
* Add options to maintain behavior with bincode::options()
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: dependabot-buildkite <dependabot-buildkite@noreply.solana.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: dependabot-buildkite <dependabot-buildkite@noreply.solana.com >
2020-08-29 01:27:10 +00:00
eeb7503fb6
Revert "Align host addresses ( #11384 ) ( #11836 )" ( #11876 )
...
This reverts commit 3296c13ef2
.
2020-08-27 16:19:05 +00:00
7e1aa02ce4
Revert "Make BPF Loader static (bp #11516 ) ( #11865 )" ( #11871 )
...
This reverts commit 81db361d77
.
2020-08-27 06:48:21 +00:00
734e669581
Revert "cli: Add (hidden) --use-deprecated-loader flag to solana deploy
(bp #11675 ) ( #11866 )" ( #11872 )
...
This reverts commit 97c3ff8a4f
.
2020-08-27 06:44:06 +00:00
81db361d77
Make BPF Loader static (bp #11516 ) ( #11865 )
...
* Make BPF Loader static (#11516 )
(cherry picked from commit 7c736f71fe
)
# Conflicts:
# Cargo.lock
# core/Cargo.toml
# core/src/lib.rs
# core/src/validator.rs
# genesis/src/main.rs
# programs/bpf/tests/programs.rs
# runtime/src/builtin_programs.rs
# runtime/src/lib.rs
* resolve conflicts
* nudge
Co-authored-by: Jack May <jack@solana.com >
2020-08-27 01:00:24 +00:00
97c3ff8a4f
cli: Add (hidden) --use-deprecated-loader flag to solana deploy
(bp #11675 ) ( #11866 )
...
* Add (hidden) --use-deprecated-loader flag to `solana deploy`
(cherry picked from commit de736e00ad
)
# Conflicts:
# cli/src/cli.rs
# cli/tests/deploy.rs
* resolve conflicts
Co-authored-by: Michael Vines <mvines@gmail.com >
Co-authored-by: Jack May <jack@solana.com >
2020-08-27 00:36:12 +00:00
5f85ecd457
Merge pull request #11857 from mvines/cache ( #11862 )
...
ci: cargo-target-cache is now channel specific
(cherry picked from commit 5c7080c1f4
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-08-26 19:58:36 +00:00
fb1985fe5e
Rpc: Filter accounts with invalid mints from get_parsed_token_accounts ( #11844 ) ( #11858 )
...
* Filter out accounts with invalid mints from get_parsed_token_accounts
* Explicit docs
(cherry picked from commit 1988ee9cd6
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2020-08-26 19:07:23 +00:00
3296c13ef2
Align host addresses ( #11384 ) ( #11836 )
...
* Align host addresses
* support new program abi
* update epoch rollout
* Enforce aligned pointers in cross-program invocations
(cherry picked from commit 9290e561e1
)
# Conflicts:
# programs/bpf_loader/src/lib.rs
Co-authored-by: Jack May <jack@solana.com >
2020-08-26 00:19:38 +00:00
b8cc10749a
Re-route program logging (bp #10528 ) ( #11838 )
...
* Route all loader messages to log collector (#10528 )
(cherry picked from commit b6a9573748
)
# Conflicts:
# Cargo.lock
# programs/bpf/Cargo.lock
# programs/bpf/benches/bpf_loader.rs
# programs/bpf_loader/Cargo.toml
# programs/bpf_loader/src/syscalls.rs
# runtime/src/message_processor.rs
# sdk/src/entrypoint_native.rs
* resolve conflicts
* nudge
Co-authored-by: Jack May <jack@solana.com >
2020-08-25 21:09:24 +00:00
c1f9a9a021
Update system tuning and docs (bp #11680 ) ( #11829 )
...
* Sync FD limit and max maps to 500k
(cherry picked from commit 11951eb009
)
* Expand system tuning docs
(cherry picked from commit 5354df8c1c
)
* clippy
Co-authored-by: Trent Nelson <trent@solana.com >
2020-08-25 20:39:00 +00:00
f88b0c4827
Bump MacOS nofile recommendation message ( #11834 )
...
(cherry picked from commit 8841c3398c
)
Co-authored-by: Trent Nelson <trent@solana.com >
2020-08-25 19:52:22 +00:00
c3564203e9
Document how to validate account pubkey ( #11821 ) ( #11832 )
...
(cherry picked from commit 2c5366f259
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2020-08-25 16:29:20 +00:00
de4e548105
sdk: Make PubKey::create_program_address available in program unit tests (bp #11745 ) ( #11809 )
...
* sdk: Make PubKey::create_program_address available in program unit tests (#11745 )
* sdk: Make PubKey::create_program_address available in program unit tests
This finishes the work started in #11604 to have
`create_program_address` available when `target_arch` is not `bpf` and
`program` is enabled. Otherwise, there is an undefined reference error
to `sol_create_program_address`, which is only defined in `bpf`.
A small test to simply call the function has been added in order to catch
the problem in the future.
The default dependency to `solana-sdk/default` doesn't cause a problem with
existing programs since `build.sh` always specifies
`--no-default-features`, and programs in `solana-program-library` all
use it too.
* Add `default-features = false` for inter-program dependencies
Fix the build error found during CI. The `--no-default-features` flag
only applies to the top-level package, and not to dependencies. A program that
depends on another program, i.e. `128bit` which depends on `128bit_dep`,
must specify `default-features = false` when including that package,
otherwise the `bpf` build will try to pull in default packages, which
includes `std`.
(cherry picked from commit 9a366281d3
)
# Conflicts:
# programs/bpf/rust/128bit/Cargo.toml
# programs/bpf/rust/invoke/Cargo.toml
# programs/bpf/rust/many_args/Cargo.toml
# programs/bpf/rust/param_passing/Cargo.toml
* Fix merge conflicts
Co-authored-by: Jon Cinque <jon.cinque@gmail.com >
2020-08-24 21:30:15 +00:00
8d67204123
Return an error from create_program_address syscall (bp #11658 ) ( #11788 )
...
* Return an error from create_program_address syscall (#11658 )
(cherry picked from commit 750e5344f1
)
# Conflicts:
# programs/bpf/rust/invoke/src/lib.rs
# programs/bpf_loader/src/syscalls.rs
* resolve conflicts
Co-authored-by: Jack May <jack@solana.com >
2020-08-24 05:03:27 +00:00
99a01abfd7
RPC: Allow the sendTransaction preflight commitment level to be configured (bp #11792 ) ( #11793 )
...
* Allow the sendTransaction preflight commitment level to be configured
(cherry picked from commit b660704faa
)
# Conflicts:
# cli/src/cli.rs
# core/src/rpc.rs
* rebase
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-08-22 17:00:49 +00:00
973b00debb
Fix typo
2020-08-22 09:23:12 -07:00
900139da3e
Fix region check (bp #11651 ) ( #11784 )
...
* fix region checks (#11651 )
(cherry picked from commit 768b386f0a
)
# Conflicts:
# sdk/src/pubkey.rs
* resolve conflicts
Co-authored-by: Jack May <jack@solana.com >
2020-08-22 03:12:55 +00:00
d94ad7523b
Unified signature for create_program_address ( #11460 ) ( #11783 )
...
(cherry picked from commit 140b2392f6
)
Co-authored-by: Jack May <jack@solana.com >
2020-08-22 00:37:31 +00:00
4e0dbd6a73
Fix filter_crds_values output alignment with the inputs (bp #11734 ) ( #11780 )
...
* Fix filter_crds_values output alignment with the inputs (#11734 )
(cherry picked from commit 418b483af6
)
# Conflicts:
# core/src/crds_gossip_pull.rs
* Resolve conflicts
Co-authored-by: behzad nouri <behzadnouri@gmail.com >
Co-authored-by: Carl <carl@solana.com >
2020-08-21 22:24:48 +00:00
9ee69017dc
Add option for repairing only from trusted validators ( #11752 ) ( #11772 )
...
Co-authored-by: Carl <carl@solana.com >
(cherry picked from commit c8d67aa8eb
)
Co-authored-by: carllin <wumu727@gmail.com >
2020-08-21 09:01:39 +00:00
7c956a87e5
Rpc: Return error if block does not exist ( #11743 ) ( #11748 )
...
* Return error if block does not exist
* Update docs
(cherry picked from commit 747f8d5877
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2020-08-20 22:52:18 +00:00
0beb443d44
Bump version to 1.2.27
2020-08-20 13:32:49 -06:00
5d8ae9628c
Do not delete any ledger when --limit-ledger-size
is not provided ( #11740 )
...
(cherry picked from commit ea88bbdc33
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-08-20 19:08:21 +00:00
de76df0cbb
Bump spl-token to clean up magic number (bp #11726 ) ( #11737 )
...
* Bump spl-token to clean up magic number (#11726 )
(cherry picked from commit 2fd2aceeb2
)
# Conflicts:
# account-decoder/Cargo.toml
# core/Cargo.toml
# transaction-status/Cargo.toml
* Fix conflicts and toml order
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
v1.2.26
2020-08-20 17:35:28 +00:00
a0190b4105
Hotfix for enabling CPI ( #11728 )
2020-08-20 15:41:37 +08:00
5255a6ebd2
Cleanup test utilities ( #11725 )
...
Co-authored-by: Carl <carl@solana.com >
2020-08-20 00:10:18 -07:00
8575514235
Allow votes to timestamp subsequent slots with the same timestamp ( #11715 ) ( #11719 )
...
(cherry picked from commit b1bc901a66
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2020-08-20 02:00:32 +00:00
2a1946436b
Bump version to 1.2.26
2020-08-19 20:33:40 +00:00
80649a9c3d
Revert "Revert "rpc: rework binary encoding. BREAKING CHANGE (bp #11646 ) ( #11673 )""
...
This reverts commit fb90fb3feb
.
v1.2.25
2020-08-18 21:25:31 -07:00
ad74ba0eb0
The end_slot argument to purge is now optional
2020-08-19 03:19:02 +00:00
fd41ad5d8f
Remove old signatureSubscribe info ( #11704 ) ( #11705 )
...
(cherry picked from commit 35828e8fe7
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2020-08-19 02:43:44 +00:00
63855d5c2a
Get index ( #11694 ) ( #11696 )
...
(cherry picked from commit 55ce2ebd53
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2020-08-18 19:12:49 +00:00
00251f710e
Bump version to v1.2.25
2020-08-18 08:40:00 -07:00
14bc623989
Fully enable cross program support in mainnet-beta
v1.2.24
2020-08-18 06:33:12 -07:00
fb90fb3feb
Revert "rpc: rework binary encoding. BREAKING CHANGE (bp #11646 ) ( #11673 )"
...
This reverts commit d6ca879d39
.
2020-08-18 06:27:20 -07:00
d6ca879d39
rpc: rework binary encoding. BREAKING CHANGE (bp #11646 ) ( #11673 )
...
* Add base64 (binary64) encoding for getConfirmedTransaction/getConfirmedBlock
(cherry picked from commit b5f3ced860
)
# Conflicts:
# transaction-status/Cargo.toml
* decode-transaction now supports binary64
(cherry picked from commit 2ebc68a9e2
)
# Conflicts:
# cli/src/cli.rs
* Rework UiAccountData encode/decode such that it works from Rust
(cherry picked from commit 757e147b3b
)
# Conflicts:
# cli/src/cli.rs
* Rename Binary64 to Base64. Establish Base58 encoding
(cherry picked from commit adc984a225
)
* Remove "binary" encoding. Document "encoding" as required
(cherry picked from commit e5281157fa
)
* resolve conflicts
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-08-18 04:18:48 +00:00
2dcde5281d
Faucet: Add per-request cap ( #11665 ) ( #11668 )
...
* Add per-request cap; also use clap-utils
* Clean up arg names and take cap inputs as SOL
(cherry picked from commit 71d5409b3b
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2020-08-18 01:24:41 +00:00
e2626dad83
Re-do rent collection check on rent-exempt account (bp #11349 ) ( #11654 )
...
* Re-do rent collection check on rent-exempt account (#11349 )
* wip: re-do rent collection check on rent-exempt account
* Let's see how the ci goes
* Restore previous code
* Well, almost all new changes are revertable
* Update doc
* Add test and gating
* Fix tests
* Fix tests, especially avoid to change abi...
* Fix more tests...
* Fix snapshot restore
* Align to _new_ with better uninitialized detection
(cherry picked from commit 23fa84b322
)
# Conflicts:
# core/src/rpc_subscriptions.rs
# core/tests/bank_forks.rs
# runtime/src/bank.rs
* Fix conflicts
* Add missing comment
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2020-08-17 11:14:56 +00:00
070fbeb69a
Rpc: Add until parameter for getConfirmedSignaturesForAddress2 ( #11644 ) ( #11647 )
...
* Refactor bigtable apis to accept start and end keys
* Make helper fn to deserialize cell data
* Refactor get_confirmed_signatures_for_address to use get_row_data range
* Add until param to get_confirmed_signatures_for_address
* Add until param to blockstore api
* Plumb until through client/cli
* Simplify client params
(cherry picked from commit 6c5b8f324a
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2020-08-15 18:04:08 +00:00
497ec24754
Bigtable: Use index to filter address-signatures correctly ( #11622 ) ( #11642 )
...
* Use index to filter address-signatures correctly
* Pull additional keys to account for filtered records
* Clarify variable name
(cherry picked from commit 820af533a4
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2020-08-14 21:08:52 +00:00
1bda09bf0e
Bump version to 1.2.24
2020-08-14 18:51:08 +00:00
7ca7f8604d
short_vec::decode_len() returns wrong size for aliased values (bp #11624 ) ( #11630 )
...
* Add failing test for decoding ShortU16 alias values
(cherry picked from commit 338f66f9aa
)
* Factor out ShortU16 deser vistor logic to helper
(cherry picked from commit 6222fbcc66
)
* Reimplement decode_len() with ShortU16 vistor helper
(cherry picked from commit 30dbe257cf
)
Co-authored-by: Trent Nelson <trent@solana.com >
v1.2.23
2020-08-14 15:40:12 +00:00
e2b5f2dd9c
RPC: getConfirmedSignaturesForAddress2 only returns confirmed signatures ( #11615 ) ( #11617 )
...
* Add failing test case
* Limit to only rooted slots
(cherry picked from commit 99fb36fe45
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2020-08-13 18:31:20 +00:00