d23f1436c5
docs: add log messages to json-rpc docs ( #13317 )
2020-11-11 00:43:32 -08:00
70c87d1a23
Add stubs and heap region definitions ( #13521 ) ( #13523 )
...
* Add stubs and heap region definitions
* nudge
(cherry picked from commit e390c8cb7f
)
Co-authored-by: Jack May <jack@solana.com >
2020-11-11 06:48:02 +00:00
053ce10ce5
Refactor function ( #13294 ) ( #13520 )
...
Co-authored-by: Carl Lin <carl@solana.com >
(cherry picked from commit 2c2432fddc
)
Co-authored-by: carllin <wumu727@gmail.com >
2020-11-11 04:07:51 +00:00
055eb360c2
Add printf declaration ( #13514 ) ( #13518 )
...
(cherry picked from commit 9ca8e98525
)
Co-authored-by: Jack May <jack@solana.com >
2020-11-11 01:50:42 +00:00
25cd1ceeeb
Fix parsing CreateAccountWithSeed instructions ( #13513 ) ( #13517 )
...
* Reduce required num_system_accounts and handle 2-account instructions properly
* Update CreateAccountWithSeed account docs to be correct
* Add CreateAccountWithSeed test
(cherry picked from commit 91f4e99b4c
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2020-11-11 01:13:12 +00:00
52ee3b1cee
watchtower: Fix all clear duration message ( #13510 )
...
(cherry picked from commit 2a96e722b4
)
Co-authored-by: Justin Starry <justin@solana.com >
2020-11-10 19:11:51 +00:00
bbadcca414
Bump token version fetched for localnet ( #13490 ) ( #13506 )
...
(cherry picked from commit 3282334741
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2020-11-10 18:04:15 +00:00
e9eba97299
Fix signature access ( #13491 ) ( #13503 )
...
(cherry picked from commit 70c4626efe
)
Co-authored-by: sakridge <sakridge@gmail.com >
2020-11-10 17:53:43 +00:00
920b63944e
Make testnet section less ambiguous ( #13504 ) ( #13508 )
...
(cherry picked from commit 599dae8f09
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2020-11-10 17:12:57 +00:00
8104895a07
Send RPC notification when account is deleted ( #13440 ) ( #13496 )
...
* Send RPC notification when account is deleted
* Remove unwrap
(cherry picked from commit a97c04b400
)
Co-authored-by: Justin Starry <justin@solana.com >
2020-11-10 13:07:51 +00:00
c9e646b86b
Bump version to v1.4.7 ( #13488 )
2020-11-10 05:55:26 +00:00
7c47db1e3d
align cluster and sim logging as hex ( #13484 ) ( #13486 )
...
(cherry picked from commit c280d40b40
)
Co-authored-by: Jack May <jack@solana.com >
v1.4.6
2020-11-10 03:58:19 +00:00
c619e9b560
Docs update rpc getaccountinfo (bp #13483 ) ( #13487 )
...
* docs: Wrap RPC `getAccountInfo` at 80 char
(cherry picked from commit 1d7c00c915
)
* docs: Consistently use "jsonParsed" param for RPC `getAccountInfo`
(cherry picked from commit 87924c7111
)
* docs: Consistent used of "jsonParsed" throughout RPC reference
(cherry picked from commit fb815294b3
)
Co-authored-by: Trent Nelson <trent@solana.com >
2020-11-10 03:41:26 +00:00
ccd48923a0
Fix Bank accounts hash mismatch related to Clock::unix_timestamp ( #13477 ) ( #13485 )
...
* Test for different ancestors with mismatch bank hash
* Test cleanup
* Remove nondeterministic ancestor check
* Update timestamp bounding feature key
* Update design doc
* Filter recent_timestamps to nodes voting within the last epoch
Co-authored-by: Stephen Akridge <sakridge@gmail.com >
Co-authored-by: Stephen Akridge <sakridge@gmail.com >
2020-11-10 03:35:22 +00:00
4e797cc867
Clean up Delegation::stake_activating_and_deactivating ( #13471 ) ( #13473 )
...
(cherry picked from commit 5306eb93cc
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2020-11-09 09:57:32 +00:00
9627bfced3
propagates errors out of Packet::from_data ( #13445 ) ( #13470 )
...
Packet::from_data is ignoring serialization errors:
https://github.com/solana-labs/solana/blob/d08c3232e/sdk/src/packet.rs#L42-L48
This is likely never useful as the packet will be sent over the wire
taking bandwidth but at the receiving end will either fail to
deserialize or it will be invalid.
This commit will propagate the errors out of the function to the
call-site, allowing the call-site to handle the error.
(cherry picked from commit 73ac104df2
)
Co-authored-by: behzad nouri <behzadnouri@gmail.com >
2020-11-08 16:25:36 +00:00
f823b10597
Clean up Delegation::stake_and_activating ( #13460 ) ( #13469 )
...
(cherry picked from commit 737d3e376d
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2020-11-08 09:47:47 +00:00
c9e56c9749
Output more inflation calc details in ledger-tool ( #13345 ) ( #13467 )
...
* Output more inflation calc details in ledger-tool
* Fix broken ci...
* Rename confusing variables
* Fix panic by wrapping PointValue with Opiton...
* Minor modifications
* Remove explict needless flush; Drop already does
* Yet another csv field adjustments
* Add data_size and rename epochs to earned_epochs
* Introduce null_tracer
* Unwrap Option in new_from_parent_with_tracer
* Don't shorten identifiers
* Allow irrefutable_let_patterns temporalily
* More null_tracer
* More field adjustments
(cherry picked from commit a81e7e7749
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2020-11-08 09:01:36 +00:00
da7482d631
Add PATH to GNU readlink
2020-11-07 11:28:28 -08:00
97650c7f37
Install coreutils on osx for 'readlink -f' support
2020-11-06 23:01:32 -08:00
e738bf1c9a
Bump version to v1.4.6
2020-11-07 02:49:14 +00:00
afebb2a8a5
CLI: Make clear that nonce account 'Nonce' field is a blockhash
...
(cherry picked from commit b4790120cb
)
v1.4.5
2020-11-06 17:19:52 -08:00
4e4fd03b65
Add builtin mem tests (bp #13429 ) ( #13437 )
...
* Add builtin mem tests (#13429 )
(cherry picked from commit 84b139cc94
)
* resolve crate version
* nudge
Co-authored-by: Jack May <jack@solana.com >
2020-11-07 01:15:35 +00:00
049ca18dc5
Fix stake split rent-exempt adjustment ( #13357 ) ( #13453 )
...
* Add failing tests
* Fix stake split
* Calculate split rent-exempt-reserve and use
* Add comment in rent.rs
* Add tests for edge cases when splitting to larger accounts, and reject overflow splits
* Reframe InsufficientFunds checks in terms of lamports var
* Test hardening review comments
(cherry picked from commit 4c5f345798
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2020-11-06 22:05:57 +00:00
495c64556e
cargo-build-bpf/cargo-test-bpf now support --workspace/--all ( #13451 )
...
(cherry picked from commit 0ea795caa8
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-11-06 21:43:12 +00:00
747e91d434
Fix stake redelegate (bp #13358 ) ( #13450 )
...
* stake: Add redelegation failing test
(cherry picked from commit 491ad59d2e
)
* stake: Consider withdraws we redelegating
(cherry picked from commit fe1e08b9ad
)
Co-authored-by: Trent Nelson <trent@solana.com >
2020-11-06 20:07:46 +00:00
6d4f6e79b0
cargo-test-bpf now sets the "test-bpf" feature for crate tests ( #13447 )
...
The feature allows for tests to distinguish between `cargo test` and
`cargo test-bpf` primarily for the purpose of excluding CPI tests that
require the system program under `cargo test`, as the path to enabling
CPI in `cargo test`-based testing is unclear
(cherry picked from commit 1a70a2a25b
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-11-06 19:39:18 +00:00
98e9f34704
Feature-gate stake program ( #13394 ) ( #13439 )
...
* Add legacy stake-program handling
* Strip out duplicative legacy code
* Add feature for stake-program-fix
* Feature-deploy new stake program
* Expand comment
(cherry picked from commit 1b1d9f6b0c
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2020-11-06 09:25:34 +00:00
70f74174e8
program-test: Remove special case for Rent sysvar (bp #13434 ) ( #13435 )
...
* Revert "Include Rent in ProgramTest::start() output"
This reverts commit c3d2d2134c
.
(cherry picked from commit 920cd5285a
)
* Add get_rent()
(cherry picked from commit 9a1c1fbab8
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-11-06 05:24:44 +00:00
70985f82f1
CI: Check monorepo for consistent crate versions (bp #13431 ) ( #13433 )
...
* increment-cargo-version.sh: Add check subcommand
(cherry picked from commit 5d4015358a
)
* CI: Check monorepo for consistent crate versions
(cherry picked from commit 7a4e293b3b
)
Co-authored-by: Trent Nelson <trent@solana.com >
2020-11-06 02:29:26 +00:00
3b2bdd9f8a
Fix duplicate records of inner instructions ( #13380 ) ( #13413 )
...
* Fix duplicate records of inner instructions
* fix tests
* fix clippy
* Remove bad_inner_instructions
(cherry picked from commit c24fbb6f8b
)
Co-authored-by: Justin Starry <justin@solana.com >
2020-11-06 01:30:24 +00:00
d33ae59fbf
SPL Associated Token Account plumbing (bp #13398 ) ( #13430 )
...
* Fetch associated-program-account
(cherry picked from commit 4d553f4879
)
* Add SPL Associated Token Account Program label to explorer
(cherry picked from commit 2d24160376
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-11-06 00:01:31 +00:00
9ead7ca11a
Define BPF_OUT_DIR for program-test, also handle -- arguments better
2020-11-05 22:42:35 +00:00
dbcef35f7d
Search BPF_OUT_DIR for programs
2020-11-05 22:42:35 +00:00
9e733d7d9b
Check file modification times before strip and dump
2020-11-05 22:42:35 +00:00
39f1240ec2
Cargo.lock
2020-11-05 22:42:35 +00:00
fa249721fa
Search for program files in 'target/deploy'
2020-11-05 22:42:35 +00:00
137793cd4c
Add cargo-test-bpf
2020-11-05 22:42:35 +00:00
47d8608aee
Remove unneeded .gitignore
2020-11-05 22:42:35 +00:00
ed410aea10
adds the missing slash in cargo path ( #13424 ) ( #13427 )
...
(cherry picked from commit 44b12a1594
)
Co-authored-by: behzad nouri <behzadnouri@gmail.com >
2020-11-05 22:10:06 +00:00
957dfa8f73
docs: Clarify the commitment levels based on questions ( #13387 )
...
* Clarify the commitment levels based on questions
Many people have asked about what commitment levels mean, and which to
choose. This update includes some of the language at
`sdk/src/commitment_config.rs` and a recommendation for different use
cases.
Additionally, the preflight commitment documentation was out of date,
specifying that "max" was always used, and this is no longer the case.
* Update docs/src/developing/clients/jsonrpc-api.md
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
* Update docs/src/developing/clients/jsonrpc-api.md
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
* Update docs/src/developing/clients/jsonrpc-api.md
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
* Fix typo
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
(cherry picked from commit ede891a6c6
)
2020-11-05 13:25:23 -08:00
98095b6f8d
drops older gossip packets when load shedding ( #13364 ) ( #13423 )
...
Gossip drops incoming packets when overloaded:
https://github.com/solana-labs/solana/blob/f6a73098a/core/src/cluster_info.rs#L2462-L2475
However newer packets are dropped in favor of the older ones.
This is probably not ideal as newer packets are more likely to contain
more recent data, so dropping them will keep the validator state
lagging.
(cherry picked from commit 7f4debdad5
)
Co-authored-by: behzad nouri <behzadnouri@gmail.com >
2020-11-05 18:30:00 +00:00
a2c32d7d0e
shares the lock on gossip when processing prune messages ( #13339 ) ( #13422 )
...
Processing prune messages acquires an exclusive lock on gossip:
https://github.com/solana-labs/solana/blob/55b0428ff/core/src/cluster_info.rs#L1824-L1825
This can be reduced to a shared lock if active-sets are changed to use
atomic bloom filters:
https://github.com/solana-labs/solana/blob/55b0428ff/core/src/crds_gossip_push.rs#L50
(cherry picked from commit 8f0796436a
)
Co-authored-by: behzad nouri <behzadnouri@gmail.com >
2020-11-05 17:18:22 +00:00
b15d826476
Allow feature builtins to overwrite existing builtins ( #13403 ) ( #13420 )
...
* Allow feature builtins to overwrite existing builtins
* Add feature_builtin ActivationType
* Correctly retain idempotent for replacing case
* Fix test
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
(cherry picked from commit bc62313c66
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2020-11-05 16:51:25 +00:00
ed97a2578d
measures processing time of each kind of gossip packets ( #13366 ) ( #13418 )
...
(cherry picked from commit 118ce47b97
)
Co-authored-by: behzad nouri <behzadnouri@gmail.com >
2020-11-05 16:46:25 +00:00
89f61f0b41
Bump low end validator RAM requirement ( #13406 ) ( #13408 )
2020-11-05 15:24:16 +08:00
04cc9c1148
CI: Use branch-versioned cargo throughout ( #13411 )
...
(cherry picked from commit 66c3c6c2b3
)
Co-authored-by: Trent Nelson <trent@solana.com >
2020-11-05 06:25:11 +00:00
8314ab4508
Improve invoke_signed() docs ( #13405 )
...
(cherry picked from commit 8c4995b22b
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-11-05 01:07:24 +00:00
3a98042753
Final program ELF is now placed in ./target/deploy/ instead of . ( #13404 )
...
(cherry picked from commit 661a935075
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-11-05 00:19:19 +00:00
60d316c9fd
Bump spl-token and spl-memo crate versions ( #13400 )
...
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-11-04 23:16:41 +00:00