07648f43db
Make it possible to opt-out jemalloc for heaptrack ( #14634 ) ( #14685 )
...
(cherry picked from commit d63b2baf0e
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2021-01-21 03:32:07 +00:00
99f0d29e65
Return confirmation-status ( #14709 ) ( #14715 )
...
(cherry picked from commit 0e87572eb0
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2021-01-21 03:05:53 +00:00
87825f3beb
Sanitize base58 pubkeys and sigs (bp #14708 ) ( #14712 )
...
* SDK: Sanitize base58 pubkey input
(cherry picked from commit 250b3969d4
)
* SDK: Sanitize base58 signature input
(cherry picked from commit 2783aee483
)
Co-authored-by: Trent Nelson <trent@solana.com >
2021-01-21 02:39:58 +00:00
8e38f90e54
Default to highest finalized block if no slot provided ( #14701 ) ( #14704 )
...
(cherry picked from commit c64d4f7693
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2021-01-20 22:48:32 +00:00
d72c90e475
Bump version to v1.5.5 ( #14700 )
2021-01-20 20:26:16 +00:00
459ae81655
Cli: promote commitment to a global arg + config.yml ( #14684 ) ( #14698 )
...
* Make commitment a global arg
* Add commitment to solana/cli/config.yml
* Fixup a couple Display/Verbose bugs
(cherry picked from commit a7086a0f83
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
v1.5.4
2021-01-20 18:04:25 +00:00
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
44ad4a1ecd
Prevent the invoke and upgrade of programs in the same tx batch (bp #14653 ) ( #14680 )
2021-01-19 17:58:45 -08:00
fcd8dd75c5
Cli: default to single gossip ( #14673 ) ( #14676 )
...
* Init cli RpcClient with chosen commitment; default to single_gossip
* Fill in missing client methods
* Cli tests: make RpcClient commitment specific
* Simply rpc_client calls, using configured commitment
* Check validator vote account with single-gossip commitment
(cherry picked from commit 4964b0fe61
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2021-01-19 23:58:19 +00:00
ca262fdeb9
Configure Bigtable's timeout, enabling by default ( #14657 ) ( #14669 )
...
* Configure bigtable's timeout when read-only
* Review comments
* Apply nits (thanks!)
Co-authored-by: Michael Vines <mvines@gmail.com >
* Timeout in the streamed decoding as well
Co-authored-by: Michael Vines <mvines@gmail.com >
(cherry picked from commit dcaa025822
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2021-01-19 15:14:59 +00:00
3d6bb95932
Improve docs around bigtable read limit ( #14660 ) ( #14662 )
...
(cherry picked from commit 2eb19fa5e5
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2021-01-19 07:51:44 +00:00
e5d36fcfb3
feature gates turbine retransmit peers patch ( #14631 ) ( #14659 )
...
(cherry picked from commit c6ae0667e6
)
Co-authored-by: behzad nouri <behzadnouri@gmail.com >
2021-01-19 05:38:26 +00:00
061965e291
Rename RpcNodeUnhealthy error to NodeUnhealthy, generalize getHealth
RPC error object for the future ( #14656 )
...
(cherry picked from commit 5d9dc609b1
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2021-01-19 05:24:29 +00:00
e56681a2f6
Make Bigtable::get_confirmed_blocks inclusive of requested start_slot and end_slot ( #14651 ) ( #14655 )
...
* Fix off-by-one error
* Filter out blocks greater than end slot
(cherry picked from commit cbf8ef7480
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2021-01-19 03:42:59 +00:00
8cf23903ce
Fix the occasional stuck RPC request (bp #14628 ) ( #14638 )
...
* WIP fix the occasional stuck RPC request
(cherry picked from commit 5cf9094bb9
)
* Clean up and add comment
(cherry picked from commit 8d4ab1bab1
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2021-01-18 19:57:28 +00:00
7ac2aae730
More generic accounts purge functions ( #14595 ) ( #14640 )
...
Co-authored-by: Carl Lin <carl@solana.com >
(cherry picked from commit 5f14f45282
)
Co-authored-by: carllin <wumu727@gmail.com >
2021-01-18 05:53:40 +00:00
6f5b9331bd
Add --minimum-validator-identity-balance ( #14636 )
...
(cherry picked from commit a12ede8e7d
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2021-01-18 03:36:58 +00:00
a04375e204
Add getSnapshotSlot
RPC method ( #14632 )
...
(cherry picked from commit 4003f86f04
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2021-01-16 20:51:33 +00:00
7b19d26a6e
Add getHealth
RPC method
2021-01-16 10:51:54 -08:00
3c3a3f0b50
Improve solana-test-validator output
...
(cherry picked from commit 1c2ae15b1d
)
2021-01-16 10:14:43 -08:00
0367b32533
Update-executable flag in pre-accounts ( #14622 ) ( #14625 )
...
(cherry picked from commit 66b54b852d
)
Co-authored-by: Jack May <jack@solana.com >
2021-01-16 03:05:12 +00:00
09392ee562
Support account on tmpfs via net/ scripts (bp #14459 ) ( #14621 )
...
* multinode-demo: Pass --accounts through bootstrap leader wrapper
(cherry picked from commit 327be55acc
)
* gce.sh: Factor out default custom memory
(cherry picked from commit ddf1d2dbf5
)
* net/: Support accounts on swap-backed tmpfs
(cherry picked from commit ff599ace4d
)
* net/gce.sh: Add cusom RAM arg instead of doubling default with tmpfs
(cherry picked from commit 3175cf1deb
)
Co-authored-by: Trent Nelson <trent@solana.com >
2021-01-16 00:14:16 +00:00
1a848e22ea
net/net.sh: Quite pre-emptible instance status check ( #14618 )
...
(cherry picked from commit 7b67228bc1
)
Co-authored-by: Trent Nelson <trent@solana.com >
2021-01-15 21:19:33 +00:00
3d8cadebc0
Use optimistic confirmation in getSignatureStatuses, and various downstream client methods ( #14430 ) ( #14611 )
...
* Add optimistically_confirmed field to TransactionStatus
* Update docs
* Convert new field to confirmation_status
* Update docs to confirmationStatus
* Update variants
* Update docs
* Just Confirmed
(cherry picked from commit 9a89689ad3
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2021-01-15 17:25:04 +00:00
47b8d518c5
Use highest-confirmed-root for max check ( #14599 ) ( #14604 )
...
(cherry picked from commit 465f991035
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2021-01-15 15:28:45 +00:00
011d2dd41d
Fix program-test's CPI support ( #14594 ) ( #14597 )
...
* Fix program-test's CPI support
* feedback
(cherry picked from commit 0d29f9e82c
)
Co-authored-by: Jack May <jack@solana.com >
2021-01-15 04:44:58 +00:00
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
722cebc4c3
docs: Add stake programming documentation ( #14529 ) ( #14582 )
...
* Add stake programming documentation
We had some questions about stake programming documentation, and there
wasn't a place that contained information about the stake-o-matic and
other stake development in one place. This adds a page with that
information.
* Update docs/src/staking/stake-programming.md
Co-authored-by: Eric Williams <eric@solana.com >
* Update docs/src/staking/stake-programming.md
Co-authored-by: Eric Williams <eric@solana.com >
* Update docs/src/staking/stake-programming.md
Co-authored-by: Eric Williams <eric@solana.com >
* Update docs/src/staking/stake-programming.md
Co-authored-by: Eric Williams <eric@solana.com >
* Update docs/src/staking/stake-programming.md
Co-authored-by: Eric Williams <eric@solana.com >
* Apply suggestions from code review
* Remove trailing whitespace
Co-authored-by: Eric Williams <eric@solana.com >
(cherry picked from commit b37dbed479
)
Co-authored-by: Jon Cinque <jon.cinque@gmail.com >
2021-01-14 16:17:25 +00:00
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
1b02ec4f6e
Bump version to v1.5.4
2021-01-14 04:40:25 +00:00
aae51925c1
patches bug in turbine's neighbors computation ( #14565 ) ( #14569 )
...
Removing local node's index early from the set here:
https://github.com/solana-labs/solana/blob/e1b59ded4/core/src/retransmit_stage.rs#L346
distorts the order of nodes depending on which node is computing the
turbine fan-out tree, and results in incorrect neighbors computation.
(cherry picked from commit cfcca1cd3c
)
Co-authored-by: behzad nouri <behzadnouri@gmail.com >
v1.5.3
2021-01-13 23:52:14 +00:00
00626fbf4c
Add --rpc-threads argument ( #14568 )
...
(cherry picked from commit 11daaadc93
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2021-01-13 22:52:15 +00:00
14ffc05fd4
Use leader_forward_count for tx retries too ( #14547 ) ( #14564 )
...
(cherry picked from commit e1b59ded4b
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2021-01-13 19:30:55 +00:00
6e5c9a1b1c
adds pubkey for behzad@solana.com ( #14558 ) ( #14563 )
...
(cherry picked from commit 673cb39975
)
Co-authored-by: behzad nouri <behzadnouri@gmail.com >
2021-01-13 18:57:10 +00:00
1276b92462
Don't stop to find newer cluster-confirmed roots ( #14557 ) ( #14560 )
...
* Don't stop to find newer cluster-confirmed roots
* Fix and add new tests
* nits
(cherry picked from commit e95ebcf864
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2021-01-13 17:05:46 +00:00
89241cedba
Bump RBPF version to v0.2.3
...
(cherry picked from commit 0d26cb6d37
)
2021-01-12 09:47:28 -08:00
0e3e3a03cc
Cache account stores, flush from AccountsBackgroundService ( #13140 ) ( #14542 )
...
(cherry picked from commit 6dfad0652f
)
Co-authored-by: carllin <wumu727@gmail.com >
2021-01-12 06:12:18 +00:00
25fe93e9fb
Check native account owner ( #14535 )
...
(cherry picked from commit 8ad5931bfc
)
2021-01-11 21:29:53 -08:00
4440a8d9fa
Update timestamp max allowable drift to 50% of PoH ( #14531 ) ( #14539 )
...
* Repurpose warp-timestamp feature for general bump
* Change max_allowable_drift to 50%
* Fill in PR#
* Fix rpc test setup
(cherry picked from commit b0e6e29527
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2021-01-12 02:03:41 +00:00
b737e562ab
Use standard tmp-snapshot- file prefix for the "new_state" archive for better cleanup/consistency
2021-01-11 17:33:10 -08:00
9cb32b2105
Restore snapshot hard linking
2021-01-11 17:33:03 -08:00
f46ad1b7b7
Avoid tmp snapshot backlog in SnapshotPackagerService under high load ( #14516 )
2021-01-11 17:32:58 -08:00
b15603b4eb
Add rocskdb high priority threads ( #14515 ) ( #14536 )
...
Without them, memtable writes can stall on compactions.
(cherry picked from commit d8105bb7d7
)
Co-authored-by: sakridge <sakridge@gmail.com >
2021-01-11 23:07:59 +00:00
c7267799ce
Clarify log message, the remote snapshot might not actually be newer
2021-01-11 11:53:55 -08:00
ed0a083cd9
Cli: Implement OutputFormat for some missing subcommands ( #14518 ) ( #14520 )
...
* Implement OutputFormat for solana leader-schedule
* Implement OutputFormat for solana inflation
(cherry picked from commit e4cf845974
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2021-01-10 01:20:39 +00:00
484bd48b35
Various snapshot-related code clean up (bp #14487 ) ( #14513 )
...
* Create account paths once
(cherry picked from commit fe0ba4a429
)
* Replace incorrect symlink_dir usage with symlink_file
(cherry picked from commit f2a7f561a0
)
* Reduce TempDir exposure
(cherry picked from commit 9f70f7dc3e
)
* Rename AccountsPackage::root to AccountsPackage::slot
(cherry picked from commit 141e6706e6
)
* Rename CompressionType to ArchiveFormat
(cherry picked from commit 7be6770808
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2021-01-09 18:29:09 +00:00
ae73cc8d05
Humanize the 'ledger processed...' time ( #14511 )
...
(cherry picked from commit 86c81a0ba2
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2021-01-09 08:14:14 +00:00
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
15da7968c5
Add cli command to query upgradeable account authorities ( #14491 ) ( #14499 )
...
(cherry picked from commit 638f225dc4
)
Co-authored-by: Jack May <jack@solana.com >
2021-01-09 01:13:20 +00:00
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