mergify[bot]
baf7713744
Fix integer overflow in degenerate invoke_signed BPF syscalls ( #15051 ) ( #15069 )
...
(cherry picked from commit ebbaa1f8ea
)
Co-authored-by: Mrmaxmeier <Mrmaxmeier@gmail.com >
2021-02-03 23:04:03 +00:00
mergify[bot]
573304cf73
Fix which shared object the test uses ( #15060 ) ( #15068 )
...
(cherry picked from commit 02a5f7104a
)
Co-authored-by: Jack May <jack@solana.com >
2021-02-03 22:49:55 +00:00
mergify[bot]
f463ebfde2
Upgradeable loader max_data_len limit ( #15039 ) ( #15057 )
...
(cherry picked from commit d24d5fba0e
)
Co-authored-by: Jack May <jack@solana.com >
2021-02-03 18:34:06 +00:00
mergify[bot]
f534698618
CLI: Add sigverify results to solana decode-transaction
output (bp #14964 ) ( #15008 )
...
* cli-output: Add option sigverify status to `println_transaction()` output
(cherry picked from commit a2aea0ca33
)
* cli: Add sigverify status to `decode-transaction` output
(cherry picked from commit d547585041
)
* CLI: Modernize `decode-transaction` about message
(cherry picked from commit fddbfe1052
)
Co-authored-by: Trent Nelson <trent@solana.com >
2021-02-02 20:33:24 +00:00
mergify[bot]
5da9e7cb8a
Parse SPL Memo v3 ( #14979 ) ( #14989 )
...
* Parse memo v3 too
* tree
(cherry picked from commit 34dfcc9c6f
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2021-02-01 23:16:01 -07:00
mergify[bot]
bdd19c09d1
More rich runtime logging ( #14938 ) ( #14967 )
2021-02-01 14:26:31 -08:00
Jack May
34504797b4
Richer runtime failure logging ( #14875 )
...
(cherry picked from commit 0b1015f7d3
)
2021-01-29 18:03:33 -08:00
mergify[bot]
08bda35fd6
Buffer authority must match upgrade authority for deploys and upgrades (bp #14923 ) ( #14935 )
...
* Buffer authority must match upgrade authority for deploys and upgrades (#14923 )
(cherry picked from commit 07cef5a557
)
# Conflicts:
# cli/src/program.rs
# cli/tests/program.rs
* fix conflicts
Co-authored-by: Jack May <jack@solana.com >
2021-01-29 23:04:23 +00:00
mergify[bot]
5ba8b4884b
Ignore syscalls which are not registered in cached rbpf executable. ( #14898 ) ( #14929 )
...
(cherry picked from commit d026da4a1b
)
Co-authored-by: Alexander Meißner <AlexanderMeissner@gmx.net >
2021-01-29 11:07:54 -08:00
mergify[bot]
b62349f081
cli now supports a custodian for stake authorize operations ( #14860 )
...
Co-authored-by: Michael Vines <mvines@gmail.com >
2021-01-28 18:30:43 +00:00
mergify[bot]
d16638dc90
Add syscall feature activation test ( #14890 ) ( #14895 )
...
(cherry picked from commit 63429507b2
)
Co-authored-by: Jack May <jack@solana.com >
2021-01-28 09:57:46 -08:00
mergify[bot]
b97fc31fcd
nit: message doesn't represent ( #14893 ) ( #14897 )
...
(cherry picked from commit 2ca0872a98
)
Co-authored-by: Jack May <jack@solana.com >
2021-01-28 09:57:23 -08:00
Michael Vines
4378634970
Bump version to 1.5.6
2021-01-27 10:50:56 -08:00
Michael Vines
a2f643e7c7
Include Clock sysvar in AuthorizeWithSeed instruction
...
(cherry picked from commit 8359f4f5ff
)
2021-01-26 17:01:41 -08:00
Michael Vines
7ebaf1c192
Add StakeInstruction::Merge logging
...
(cherry picked from commit ff22091a98
)
2021-01-26 17:01:33 -08:00
Jack May
1c23f135bf
Bump rbpf to v0.2.4 ( #14867 )
2021-01-26 22:49:57 +00:00
mergify[bot]
d380b9cef7
Add more upgradeable tests ( #14846 ) ( #14850 )
...
(cherry picked from commit e57b9c3b02
)
Co-authored-by: Jack May <jack@solana.com >
2021-01-26 09:42:49 -08:00
Michael Vines
f762b4a730
Remove legacy_stake program
...
(cherry picked from commit 2b50433099
)
2021-01-26 08:53:38 -08:00
mergify[bot]
a154414e65
patches crds vote-index assignment bug (bp #14438 ) ( #14741 )
...
* patches crds vote-index assignment bug (#14438 )
If tower is full, old votes are evicted from the front of the deque:
https://github.com/solana-labs/solana/blob/2074e407c/programs/vote/src/vote_state/mod.rs#L367-L373
whereas recent votes if expire are evicted from the back:
https://github.com/solana-labs/solana/blob/2074e407c/programs/vote/src/vote_state/mod.rs#L529-L537
As a result, from a single tower_index scalar, we cannot infer which crds-vote
should be overwritten:
https://github.com/solana-labs/solana/blob/2074e407c/core/src/crds_value.rs#L576
In addition there is an off by one bug in the existing code. tower_index is
bounded by MAX_LOCKOUT_HISTORY - 1:
https://github.com/solana-labs/solana/blob/2074e407c/core/src/consensus.rs#L382
So, it is at most 30, whereas MAX_VOTES is 32:
https://github.com/solana-labs/solana/blob/2074e407c/core/src/crds_value.rs#L29
Which means that this branch is never taken:
https://github.com/solana-labs/solana/blob/2074e407c/core/src/crds_value.rs#L590-L593
so crds table alwasys keeps 29 **oldest** votes by wallclock, and then
only overrides the 30st one each time. (i.e a tally of only two most
recent votes).
(cherry picked from commit 8e581601d6
)
* removes unnecessary semicolon
Co-authored-by: behzad nouri <behzadnouri@gmail.com >
2021-01-24 21:24:16 +00:00
mergify[bot]
b48dd58fda
Upgrade sha2 to 0.9.3 ( #14746 ) ( #14799 )
...
(cherry picked from commit 191193289f
)
Co-authored-by: sakridge <sakridge@gmail.com >
2021-01-23 23:08:33 +00:00
mergify[bot]
480a35d678
Track account writable deescalation (bp #14626 ) ( #14787 )
...
* Track account writable deescalation (#14626 )
(cherry picked from commit 77572a7c53
)
# Conflicts:
# sdk/src/feature_set.rs
* fix conflicts
Co-authored-by: Jack May <jack@solana.com >
2021-01-23 03:33:21 +00:00
mergify[bot]
733a1c85cf
Add block_time to getConfirmedSignaturesForAddress2 and getConfirmedTransaction (bp #14572 ) ( #14728 )
...
* Add block_time to getConfirmedSignaturesForAddress2 and getConfirmedTransaction (#14572 )
* add block_time to get_confirmed_signatures_for_address2 and protobuf implementation for tx_by_addr
* add tests for convert
* update cargo lock
* run cargo format after rebase
* introduce legacy TransactionByAddrInfo
* move LegacyTransactionByAddrInfo back to storage-bigtable
(cherry picked from commit 1de6d28eaf
)
* fix local sanity script
* add missing block_time field
Co-authored-by: Josh <josh.hundley@gmail.com >
2021-01-22 02:02:45 +00:00
mergify[bot]
afa7343bc2
Add ic_msg()/ic_logger_msg() macros ( #14757 )
...
(cherry picked from commit 3c6dbd21d2
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2021-01-21 23:10:50 +00:00
mergify[bot]
6e6a55b7d6
Add signer/writable de/escalation tests ( #14726 ) ( #14739 )
...
(cherry picked from commit aa96ad042b
)
Co-authored-by: Jack May <jack@solana.com >
2021-01-21 10:39:08 +00:00
Jack May
d72c90e475
Bump version to v1.5.5 ( #14700 )
2021-01-20 20:26:16 +00:00
mergify[bot]
a2ce22f11b
Bail on small deploy buffers ( #14677 ) ( #14682 )
...
(cherry picked from commit a480b63234
)
Co-authored-by: Jack May <jack@solana.com >
2021-01-20 03:39:27 +00:00
mergify[bot]
44ad4a1ecd
Prevent the invoke and upgrade of programs in the same tx batch (bp #14653 ) ( #14680 )
2021-01-19 17:58:45 -08:00
mergify[bot]
bdfffd0151
Add load/execute/store timings ( #14561 ) ( #14591 )
...
(cherry picked from commit 907f518f6d
)
Co-authored-by: sakridge <sakridge@gmail.com >
2021-01-14 23:48:36 +00:00
mergify[bot]
771b98a168
Load executable accounts from invoke context ( #14574 ) ( #14575 )
...
(cherry picked from commit 6e8a1ba7de
)
Co-authored-by: Jack May <jack@solana.com >
2021-01-14 09:39:26 +00:00
Trent Nelson
1b02ec4f6e
Bump version to v1.5.4
2021-01-14 04:40:25 +00:00
Alexander Meißner
89241cedba
Bump RBPF version to v0.2.3
...
(cherry picked from commit 0d26cb6d37
)
2021-01-12 09:47:28 -08:00
mergify[bot]
fc59a08f0e
Bail on all CPI errors ( #14500 ) ( #14507 )
...
* Bail on all CPI errors
* whitespace
(cherry picked from commit ec48631fc5
)
Co-authored-by: Jack May <jack@solana.com >
2021-01-09 04:44:14 +00:00
mergify[bot]
b58a6e2b6e
Report correct program id ( #14486 ) ( #14498 )
...
(cherry picked from commit 9d53eca6e3
)
Co-authored-by: Jack May <jack@solana.com >
2021-01-09 01:00:42 +00:00
Michael Vines
ec15ea079f
Bump version to 1.5.3
2021-01-08 16:19:27 -08:00
mergify[bot]
7dd7141307
Suppress cargo audit failure for difference
crate (bp #14488 ) ( #14493 )
...
* Suppress cargo audit failure for `difference` crate, there's no newer crate to upgrade to yet
(cherry picked from commit 3eaa826ad9
)
* Bump smallvec version
(cherry picked from commit 21a0a83543
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2021-01-08 21:52:28 +00:00
mergify[bot]
e5175c843d
Add buffer authority to upgradeable loader ( #14482 ) ( #14485 )
...
(cherry picked from commit 58487c6360
)
Co-authored-by: Jack May <jack@solana.com >
2021-01-08 18:54:11 +00:00
mergify[bot]
0fbdc7e152
Enable program upgrades via CPI ( #14449 ) ( #14469 )
...
(cherry picked from commit 5eacc5d08d
)
Co-authored-by: Jack May <jack@solana.com >
2021-01-06 23:45:10 +00:00
mergify[bot]
fcc147b4f2
Gate cpi program account passing ( #14443 ) ( #14446 )
...
(cherry picked from commit a8b5a32b50
)
Co-authored-by: Jack May <jack@solana.com >
2021-01-06 19:20:49 +00:00
mergify[bot]
0063a58e95
Upgradeable programs needs program account's address as program id ( #14417 ) ( #14420 )
...
(cherry picked from commit 0619805806
)
Co-authored-by: Jack May <jack@solana.com >
2021-01-04 23:00:36 +00:00
Michael Vines
97665b977e
Bump version to v1.5.2
2021-01-04 06:44:52 +00:00
mergify[bot]
c6b2eb07ee
Gate CPI authorized programs ( #14361 ) ( #14365 )
...
(cherry picked from commit 2d8dacb72b
)
Co-authored-by: Jack May <jack@solana.com >
2020-12-31 03:29:46 +00:00
mergify[bot]
7a3e1f9826
Remove assert ( #14356 ) ( #14360 )
...
(cherry picked from commit 1c5427ff17
)
Co-authored-by: Jack May <jack@solana.com >
2020-12-30 22:39:55 +00:00
mergify[bot]
8a690b6cf7
nit: clarify loader id ( #14355 ) ( #14358 )
...
(cherry picked from commit 6c6095abe7
)
Co-authored-by: Jack May <jack@solana.com >
2020-12-30 21:25:41 +00:00
mergify[bot]
e2ddb2f0ea
Limit CPI instruction size ( #14317 ) ( #14321 )
...
(cherry picked from commit 5524938a50
)
Co-authored-by: Jack May <jack@solana.com >
2020-12-29 02:38:22 +00:00
Michael Vines
02da7dfedf
Bump version to v1.5.1
2020-12-27 21:57:43 -08:00
mergify[bot]
bf4c169703
Prevent bpf loader impersonators ( #14278 ) ( #14279 )
...
(cherry picked from commit ee0a80a092
)
Co-authored-by: Jack May <jack@solana.com >
2020-12-24 04:24:30 +00:00
mergify[bot]
0020e43476
Don't use caller passed executable account ( #14276 ) ( #14277 )
...
(cherry picked from commit b1d702a618
)
Co-authored-by: Jack May <jack@solana.com >
2020-12-23 23:52:04 +00:00
mergify[bot]
a9a2c76221
Limit CPI from calling loader or native programs ( #14252 ) ( #14275 )
...
(cherry picked from commit 0b479ab180
)
Co-authored-by: Jack May <jack@solana.com >
2020-12-23 20:01:56 +00:00
Trent Nelson
bd0b1503c6
Deinitialize stake data upon zero balance
2020-12-23 06:17:59 +00:00
Trent Nelson
10e7fa40ac
Deinitialize vote data upon zero balance
2020-12-23 06:17:59 +00:00