mergify[bot]
ac76a75937
Feature-gate hash-based duplicate transaction check ( #16601 )
...
(cherry picked from commit 285f3c9d56
)
Co-authored-by: Trent Nelson <trent@solana.com >
2021-04-16 19:59:55 +00:00
Michael Vines
4ef3a679a4
Bump version to v1.6.6
2021-04-14 10:27:02 -07:00
mergify[bot]
6da4bec41d
Return sysvars via syscalls (bp #16422 ) ( #16497 )
...
* Return sysvars via syscalls (#16422 )
(cherry picked from commit fa83f3bd73
)
* bad merge
* Fix branch diffs
* nudge
Co-authored-by: Jack May <jack@solana.com >
2021-04-14 05:33:27 +00:00
mergify[bot]
97ba3cbeb0
Cleanup unsupported sysvars (backport #16390 ) ( #16517 )
...
* Cleanup unsupported sysvars (#16390 )
* Cleanup unsupported sysvars
* fix ser description
(cherry picked from commit 92f4018b07
)
# Conflicts:
# runtime/src/bank.rs
* fix conflicts
Co-authored-by: Jack May <jack@solana.com >
2021-04-13 23:28:08 +00:00
mergify[bot]
3bb8016a40
Remove blake3 from bpf program dependencies ( #16506 ) ( #16509 )
...
(cherry picked from commit f641429056
)
Co-authored-by: Justin Starry <justin@solana.com >
2021-04-13 11:18:26 +00:00
Justin Starry
579065443a
v1.6: Use blake3 message hash in status cache ( #16507 )
2021-04-13 16:57:20 +08:00
mergify[bot]
8c0b0f235e
docker: Expose all ports in Dockerfile, add back localnet.sh ( #16401 ) ( #16474 )
...
* docker: Expose all ports in Dockerfile, add back localnet.sh
* Add documentation for where to find containers
* Obliterate script
(cherry picked from commit 448d5be79f
)
Co-authored-by: Jon Cinque <jon.cinque@gmail.com >
2021-04-11 20:17:08 +00:00
mergify[bot]
723e7f11b9
Simplify some pattern-matches ( #16402 ) ( #16446 )
...
When those match an exact combinator on Option / Result.
Tool-aided by [comby-rust](https://github.com/huitseeker/comby-rust ).
(cherry picked from commit b08cff9e77
)
Co-authored-by: François Garillot <4142+huitseeker@users.noreply.github.com >
2021-04-08 20:45:01 +00:00
mergify[bot]
6234090361
Fix cargo-build/test-bpf --workspace (bp #16431 ) ( #16432 )
...
* Fix cargo-build/test-bpf --workspace (#16431 )
(cherry picked from commit 878e52f0b9
)
# Conflicts:
# ci/test-stable.sh
* resolve conflicts
Co-authored-by: Jack May <jack@solana.com >
2021-04-08 16:55:21 +00:00
Tyera Eulberg
5da83c1491
Bump version to v1.6.5 ( #16361 )
2021-04-04 22:00:40 -06:00
sakridge
a788021181
Bump version to v1.6.4 ( #16345 )
2021-04-04 13:31:35 -07:00
mergify[bot]
36e1f9fae8
Bump bpf-tools to version v1.5 ( #16331 ) ( #16350 )
...
The new version of bpf-tools eliminates the separate
rust-bpf-sysroot. The Rust standard libraries for the BPF target are
built in tree when the compiler is built. The standard libraries code
is slightly more optimized and some reduction of compute budget can be
expected with this version of bpf-tools.
(cherry picked from commit 1359bceb5d
)
Co-authored-by: Dmitri Makarov <dmakarov@users.noreply.github.com >
2021-04-04 16:58:52 +00:00
mergify[bot]
20754a7115
Drop write lock on sysvars ( #15497 ) ( #16233 )
...
* Drop write lock on sysvars
* adds env var for demoting sysvar write lock demotion
* moves demote logic to is_writable
* feature gates sysvar write lock demotion
* adds builtins to write lock demotion
* adds system program id to builtins
* adds Feature111...
* adds an abi-freeze test
* mvines set of builtin program keys
Co-authored-by: Michael Vines <mvines@gmail.com >
* update tests
* adds bpf loader keys
* Add test sysvar
* Plumb demote_sysvar to is_writable
* more plumbing of demote_sysvar_write_locks to is_writable
* patches test_program_bpf_instruction_introspection
* hard codes demote_sysvar_write_locks to false for serialization/encoding methods
* Revert "hard codes demote_sysvar_write_locks to false for serialization/encoding methods"
This reverts commit ae3e2d2e777437bddd753933097a210dcbc1b1fc.
* change the hardcoded ones to demote_sysvar_write_locks=true
* Use data_as_mut_slice
Co-authored-by: behzad nouri <behzadnouri@gmail.com >
Co-authored-by: Michael Vines <mvines@gmail.com >
(cherry picked from commit 54c68ea83f
)
Co-authored-by: sakridge <sakridge@gmail.com >
2021-03-31 20:23:20 +00:00
mergify[bot]
8a57ee181e
Cleanup nits (bp #16211 ) ( #16237 )
...
* Cleanup nits (#16211 )
(cherry picked from commit f84e88f0a2
)
# Conflicts:
# programs/bpf/Cargo.lock
# programs/bpf/rust/sysvar/Cargo.toml
* resolve conflicts
Co-authored-by: Jack May <jack@solana.com >
2021-03-31 10:01:18 +00:00
mergify[bot]
4e6b5a9808
Fix BPF ELF layout ( #16256 ) ( #16261 )
...
* Fix BPF ELF layout
* whitespace
(cherry picked from commit bcd89dd34c
)
Co-authored-by: Jack May <jack@solana.com >
2021-03-31 09:56:57 +00:00
Trent Nelson
634959b3ab
Bump version to v1.6.3
2021-03-30 16:17:47 +00:00
Trent Nelson
03b21f2e9d
Bump version to v1.6.2
2021-03-30 00:06:01 -06:00
mergify[bot]
50beef0b15
Allow incomplete features in frozen-abi ( #16205 )
...
(cherry picked from commit 9ba9d2a8ae
)
Co-authored-by: Trent Nelson <trent@solana.com >
2021-03-30 03:46:10 +00:00
mergify[bot]
06a54e1423
remove old code ( #15988 ) ( #15993 )
...
(cherry picked from commit 9760fded2d
)
Co-authored-by: Jeff Washington (jwash) <75863576+jeffwashington@users.noreply.github.com >
2021-03-30 00:50:27 +00:00
mergify[bot]
ee06789a66
sdk: Add try_from_slice_unchecked for Borsh ( #16098 ) ( #16158 )
...
* sdk: Add try_from_slice_unchecked for Borsh
* Add tests
* Rename + clarify comment
* Rename back to unchecked
(cherry picked from commit cffa851e0f
)
Co-authored-by: Jon Cinque <jon.cinque@gmail.com >
2021-03-29 23:15:34 +00:00
mergify[bot]
9fb749deb7
Print the rust version when building bpf programs ( #16181 ) ( #16183 )
...
(cherry picked from commit abada56ba1
)
Co-authored-by: Justin Starry <justin@solana.com >
2021-03-29 07:18:55 +00:00
mergify[bot]
76a6576976
sdk: Use u32::MAX from std to unbreak BPF builds ( #16171 ) ( #16172 )
...
(cherry picked from commit aabe186e3f
)
Co-authored-by: Justin Starry <justin@solana.com >
2021-03-27 17:05:53 +00:00
mergify[bot]
625773e5b8
Rpc: enable getConfirmedBlock and getConfirmedTransaction to return confirmed (not yet finalized) data (bp #16142 ) ( #16160 )
...
* Rpc: enable getConfirmedBlock and getConfirmedTransaction to return confirmed (not yet finalized) data (#16142 )
* Add Blockstore block and tx apis that allow unrooted responses
* Add TransactionStatusMessage, and send on bank freeze; also refactor TransactionStatusSender
* Track highest slot with tx-status writes complete
* Rename and unpub fn
* Add commitment to GetConfirmed input configs
* Support confirmed blocks in getConfirmedBlock
* Support confirmed txs in getConfirmedTransaction
* Update sigs-for-addr2 comment
* Enable confirmed block in cli
* Enable confirmed transaction in cli
* Review comments
* Rename blockstore method
(cherry picked from commit 433f1ead1c
)
# Conflicts:
# core/src/replay_stage.rs
* Fix conflict
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2021-03-27 04:51:53 +00:00
mergify[bot]
8aded2778e
Bump bpf-tools to version v1.4 ( #16152 ) ( #16154 )
...
(cherry picked from commit 658ddd1c9c
)
Co-authored-by: Dmitri Makarov <dmakarov@users.noreply.github.com >
2021-03-26 20:51:25 +00:00
Trent Nelson
1be045df94
sq: optimize
...
(cherry picked from commit 482c027d3b
)
2021-03-25 21:31:52 -06:00
Kristofer Peterson
68a439f8da
Refactored ShortU16Visitor::visit_seq() to reject overflows, extra leading zeros and ensure one-to-one encoding.
2021-03-26 01:20:22 +00:00
Trent Nelson
e021832708
sdk: ShortU16 - rename variables for clarity
...
ShortU16's implementation embeds its usage as the length of a
ShortVec, confusingly referring to both a 'len' and a 'size'
at the same time.
2021-03-26 01:20:22 +00:00
Trent Nelson
87b11aa187
sdk: Add ShortU16 deser test
2021-03-26 01:20:22 +00:00
mergify[bot]
4dc5a53014
Show bpf-tools download progress ( #16135 )
...
(cherry picked from commit 07273bfa9e
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2021-03-25 20:55:11 +00:00
mergify[bot]
5e35cf3536
program: Correct clamp in Message::signer_keys() ( #16114 )
...
(cherry picked from commit 8b3de72e2a
)
Co-authored-by: Trent Nelson <trent@solana.com >
2021-03-25 17:53:34 +00:00
mergify[bot]
defd9238fa
Simplify account.rent_epoch handling for sysvar rent (bp #16049 ) ( #16118 )
...
* Simplify account.rent_epoch handling for sysvar rent (#16049 )
* Add some code for special local testing
* Add comment to store_account_and_update_capitalization
* Simplify account.rent_epoch handling for sysvar rent
* Introduce *_for_test functions
* Add deprecation messages to existing api
(cherry picked from commit 6d5c6c17c5
)
# Conflicts:
# sdk/src/native_loader.rs
* Fix conflicts
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2021-03-25 17:17:43 +09:00
Dmitri Makarov
9f94c2a9a0
Bump bpf-tools to version v1.3
...
This brings in the fix for increased compute budget that wasn't caught
when bpf-tools v1.2 were released.
2021-03-24 11:59:59 +01:00
Dmitri Makarov
34213da9f4
Bump bpf-tools to v1.2 and get rid of xargo
2021-03-24 11:59:59 +01:00
mergify[bot]
c2ce68ab90
Santize instruction index when loading instruction from sysvar ( #15942 ) ( #16004 )
...
(cherry picked from commit 4c5660ba7a
)
Co-authored-by: Justin Starry <justin@solana.com >
2021-03-19 02:48:41 +00:00
mergify[bot]
9e91a2c2fd
Add Close instrruction and tooling to upgradeable loader ( #15887 ) ( #15972 )
...
(cherry picked from commit 7f500d610c
)
Co-authored-by: Jack May <jack@solana.com >
2021-03-18 06:02:57 +00:00
mergify[bot]
5f183bd773
Add helper for paring down signers to those requried by a tx message (bp #15899 ) ( #15938 )
...
* sdk: Add accessor for signer pubkeys of a tx message
(cherry picked from commit bf33ce8906
)
* clap-utils: Add helper to `CliSignerInfo` for getting signers for a message
(cherry picked from commit 4e99f1e634
)
Co-authored-by: Trent Nelson <trent@solana.com >
2021-03-17 07:48:47 +00:00
mergify[bot]
a259ff0e72
Wallclock BankingStage Throttle ( #15731 ) ( #15890 )
...
(cherry picked from commit c1ba265dd9
)
Co-authored-by: carllin <carl@solana.com >
2021-03-16 21:12:59 +00:00
mergify[bot]
6e8aa9af17
nit: fix spelling ( #15908 ) ( #15911 )
...
(cherry picked from commit 5760cf0f41
)
# Conflicts:
# sdk/src/feature_set.rs
Co-authored-by: Jack May <jack@solana.com >
2021-03-16 10:58:39 -07:00
mergify[bot]
899bd1572a
Show flags for accounts in tx by solana confirm ( #15804 ) ( #15906 )
...
* Show flags for accounts in tx by solana confirm
* Address review comments
* Improve comment a bit
* Apply suggestions from code review
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
* Further apply review suggestions
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
(cherry picked from commit 74aa32175b
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2021-03-16 10:43:06 +00:00
mergify[bot]
5500970a7e
Add cargo-bpf-test --no-run flag, matching cargo-test ( #15916 )
...
(cherry picked from commit eb19e11688
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2021-03-16 09:45:35 +00:00
Michael Vines
b1a90c3580
=1.6.1
2021-03-16 08:41:28 +00:00
mergify[bot]
5bd4e38345
Charge compute budget for bytes passed via cpi ( #15874 ) ( #15905 )
...
(cherry picked from commit ad9901d7c6
)
Co-authored-by: Jack May <jack@solana.com >
2021-03-16 07:57:32 +00:00
mergify[bot]
fddba08571
Improve Instruction::new deprecation warning ( #15896 )
...
(cherry picked from commit 8567b41d5f
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2021-03-16 05:18:31 +00:00
mergify[bot]
5af1d48be8
Display actual account length ( #15875 ) ( #15884 )
...
(cherry picked from commit 60e5fd11c9
)
Co-authored-by: Jack May <jack@solana.com >
2021-03-16 01:01:25 +00:00
Michael Vines
be00246fb5
Bump version to v1.6.1
2021-03-15 14:47:58 -06:00
behzad nouri
f2865dfd63
requires stakes for propagating crds values through gossip ( #15561 )
2021-03-12 15:50:14 +00:00
Tyera Eulberg
e5b644e830
Add trait for saturating arithmetic ( #15812 )
...
* Add SaturatingArithmetic trait
* Use Duration saturating arithmetic
* Use new macro to fix poh_config
2021-03-12 06:22:40 +00:00
Jack May
cc38ae72e7
Skip deserialization of readonly accounts ( #15813 )
2021-03-11 19:28:21 -08:00
Ryo Onodera
4bbeb9c033
Remove old feature: simple_capitalization ( #15763 )
...
* Remove old feature: simple_capitalization
* Fix another failing test in core
* Finish up test cleanup
* Further clean up a bit
2021-03-12 11:12:40 +09:00
Jeff Washington (jwash)
3419a5446e
AccountSharedData.set_data ( #15781 )
...
* account.set_data and resize_data
* remove data_resize
2021-03-11 16:40:45 -06:00