4fc9f12d7b
CLI: Drop unused runtime dep ( #12374 )
...
(cherry picked from commit 6767264aa1
)
Co-authored-by: Trent Nelson <trent@solana.com >
2020-09-21 20:38:44 +00:00
8af90c9c08
Add keccak-secp256k1 instruction ( #11839 ) ( #12368 )
...
* Implement keccak-secp256k1 instruction
Verifies eth addreses with ecrecover function
* Move secp256k1 test
Co-authored-by: sakridge <sakridge@gmail.com >
2020-09-21 18:09:05 +00:00
7db0464d1b
Bind to correct RPC addresses ( #12358 )
...
(cherry picked from commit 65b247a922
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-09-20 08:33:07 +00:00
bc774e3ea6
Bump version to v1.3.13
2020-09-20 05:40:32 +00:00
64af712723
Use validator_config for RPC address instead of cluster_info for port verification checks
v1.3.12
2020-09-20 02:27:35 +00:00
ea2611f3a9
Document that testnet has a faucet
2020-09-19 17:41:13 -07:00
a26e1f62bb
validator/ cleanup (bp #12340 ) ( #12352 )
...
* validator/ cleanup
(cherry picked from commit 1a03afccb1
)
# Conflicts:
# core/src/validator.rs
* Move TestValidator into its own module
(cherry picked from commit 208dd1de3a
)
# Conflicts:
# core/src/validator.rs
# tokens/tests/commands.rs
* Rebase
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-09-19 22:45:09 +00:00
54b87b34c3
Add get_token_account methods ( #12346 ) ( #12349 )
...
(cherry picked from commit 28f2c15597
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2020-09-19 03:53:51 +00:00
12327c8683
Improve error message when .config/solana/id.json is not found ( #12345 )
...
(cherry picked from commit 0ed7b0561e
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-09-19 00:44:16 +00:00
86554c4945
Docs: Add SPL Token exchange integration (bp #12303 )
2020-09-19 00:37:25 +00:00
95ed3641c6
Add blocktime column to blockstore ( #12336 )
2020-09-18 21:42:45 +00:00
83c775cee8
Unbreak 'Listening for Deposits' section ( #12338 ) ( #12339 )
...
(cherry picked from commit 06906413ef
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2020-09-18 21:19:15 +00:00
9fbbb7b044
SendTransactionServices now exit their thread on channel drop instead of by a flag (bp #12333 ) ( #12335 )
...
* Give the duplicate send_transaction_service a different thread name
(cherry picked from commit 75c3690ccd
)
* SendTransactionServices now exit their thread on channel drop instead of by a flag
(cherry picked from commit c4913e3c9e
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-09-18 18:32:06 +00:00
7656034bd4
Fix blockstore processor squash ( #12319 ) ( #12323 )
...
(cherry picked from commit 3533e11786
)
Co-authored-by: carllin <wumu727@gmail.com >
2020-09-18 05:34:37 +00:00
3ede265ff9
Add Pack and COption to sdk (bp #12294 ) ( #12322 )
...
* Add Pack and COption to sdk (#12294 )
* Add COption to sdk
* Add Pack to sdk
* Except program_option from nits check
* No Default::default
(cherry picked from commit 58542cf7f6
)
# Conflicts:
# ci/nits.sh
* Fix conflict
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2020-09-18 04:31:09 +00:00
a20e954a16
Restore --expected-shred-version argument for mainnet-beta ( #12300 )
...
(cherry picked from commit 9410eab2af
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-09-17 01:20:25 +00:00
1f69b125ce
Remove client resends ( #12290 ) ( #12296 )
...
* Remove resends from client send_tx methods
* Retry status queries until blockhash expires
(cherry picked from commit a79790dea6
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2020-09-17 01:01:40 +00:00
0196c83846
Fix panic in BanksServer ( #12293 ) ( #12295 )
...
Fixes #12167
(cherry picked from commit 3ecb390b10
)
Co-authored-by: Greg Fitzgerald <greg@solana.com >
2020-09-17 00:36:30 +00:00
37175d0cdf
Fix off-by-one max payload checks
...
(cherry picked from commit f6cda2579f
)
2020-09-16 17:05:09 -07:00
a6e73acfa4
Rework snapshot download logic to be more forgiving when --expected-shred-version
is not provided ( #12289 )
...
(cherry picked from commit 98cfe92745
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-09-16 21:37:57 +00:00
f00c504555
RPC: Limit request payload size to 50kB ( #12287 )
...
(cherry picked from commit 32dcce0ac1
)
Co-authored-by: Trent Nelson <trent@solana.com >
2020-09-16 21:26:31 +00:00
19eb73d645
docs: Fix 'Description will go into a meta tag in head' meta tag (bp #12277 ) ( #12279 )
...
* Fix 'Description will go into a meta tag in head' meta tag
(cherry picked from commit 5d682d2e05
)
* Update index.js
(cherry picked from commit c231bb7154
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-09-16 16:56:26 +00:00
d35dc79ee7
RPC sendTransaction now returns transaction logs on simulation failure (bp #12267 ) ( #12276 )
...
* RPC sendTransaction now returns transaction logs on simulation failure
(cherry picked from commit 749208fa32
)
* Remove stale comment
(cherry picked from commit c6eea94edc
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-09-16 16:45:09 +00:00
2316846c53
solana-tokens: Add capability to perform the same transfer to a batch of recipients (bp #12259 ) ( #12266 )
...
* solana-tokens: Add capability to perform the same transfer to a batch of recipients (#12259 )
* Add transfer-amount argument, use simplified input-csv
* Add transfer-amount to readme
(cherry picked from commit a48cc073cf
)
# Conflicts:
# tokens/src/commands.rs
# tokens/tests/commands.rs
* Fix build
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2020-09-16 06:21:40 +00:00
c77fe54629
CLI: Use Base58 encoding rather than deprecated Binary for TX decode ( #12265 )
...
(cherry picked from commit 83f93fed02
)
Co-authored-by: Trent Nelson <trent@solana.com >
2020-09-16 05:43:38 +00:00
953c40a9e3
Improve solana-tokens UX ( #12253 ) ( #12260 )
...
* Fix computed banks port
* Readme incorrect
* Return error if csv cannot be read
* Move column headers over columns
* Add dry-run check for sender/fee-payer balances
* Use clap requires method for paired args
* Write transaction-log anytime outfile is specified
* Replace campaign-name with required db-path
* Remove bids
* Exclude new_stake_account_address from logs for non-stake distributions
* Fix readme
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2020-09-16 04:50:55 +00:00
c10f14d60b
Add lockups via solana-tokens (bp #11782 ) ( #12263 )
...
* Add lockups via solana-tokens (#11782 )
* Allow stake distributions to update lockups
* Reorg
* Add lockup test
* Fix clippy warning
(cherry picked from commit 5553732ae2
)
# Conflicts:
# tokens/Cargo.toml
# tokens/src/commands.rs
# tokens/src/main.rs
* Fix build
Co-authored-by: Greg Fitzgerald <greg@solana.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2020-09-16 03:33:39 +00:00
c3c3872f8d
validator-info get/set
no longer crash on invalid account data (#12258 )
...
(cherry picked from commit 56282f0c01
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-09-16 01:17:45 +00:00
c539526f1e
Add memory allocation support for C programs ( #12254 ) ( #12256 )
...
(cherry picked from commit 5ab4109b7e
)
Co-authored-by: Jack May <jack@solana.com >
2020-09-16 00:49:36 +00:00
8ea4c1c2c0
Friendlier error message for mapping failures ( #12213 ) ( #12255 )
...
(cherry picked from commit 3d4b9bb00d
)
Co-authored-by: sakridge <sakridge@gmail.com >
2020-09-16 00:21:11 +00:00
557fee8183
Make noop a real noop (bp #12196 ) ( #12247 )
...
* Make noop a real noop (#12196 )
* Make noop a real noop
* nudge
(cherry picked from commit 555252f435
)
* resolve conflicts
Co-authored-by: Jack May <jack@solana.com >
2020-09-15 23:16:15 +00:00
1957e960ac
Add BPF test program instruction monitoring (bp #11984 ) ( #12248 )
...
* Add BPF test program instruction monitoring (#11984 )
(cherry picked from commit fab2d44abd
)
* fix conflicts
Co-authored-by: Jack May <jack@solana.com >
2020-09-15 23:16:01 +00:00
11ff80c64b
Cache re-usable work performed by the loader (bp #12135 ) ( #12216 )
...
* Cache re-usable work performed by the loader (#12135 )
(cherry picked from commit 3278d78f08
)
# Conflicts:
# programs/bpf/Cargo.toml
# programs/bpf/tests/programs.rs
# programs/bpf_loader/Cargo.toml
* resolve conflicts
Co-authored-by: Jack May <jack@solana.com >
2020-09-15 21:25:32 +00:00
7267257073
Bump version to v1.3.12 ( #12249 )
2020-09-15 20:15:03 +00:00
f107b9b423
Really skip private rpc port reachable checks ( #12239 ) ( #12241 )
...
(cherry picked from commit b85e8497b5
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
v1.3.11
2020-09-15 17:43:23 +00:00
1354a0c1a3
Drop the recommendation that --expected-shred-version
be set by validators ( #12244 )
...
`--expected-shred-version` is another knob for users to get wrong and is
documentation that can get stale due to cluster restarts. Turns out
it's also generally not required anymore either because:
1. The cluster entrypoint can always be expected to be using the correct
shred version, and that shred version will be adopted by the new node
(earlier this was not the case when the `solana-gossip spy` node on
mainnet-beta.solana.com:8001 ran with shred version 0)
2. On a cluster restart, `--expected-bank-hash` is a much stronger
assertion that the validator is starting from the correct place (and
didn't exist when `--expected-shred-version` was first recommended)
(cherry picked from commit 4ada4d43f2
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-09-15 17:41:36 +00:00
52ee9155b5
Bump version to v1.3.11 ( #12238 )
2020-09-15 10:25:22 +00:00
65a1884c7b
Enable stricter check on rent-exempt accounts on testnet ( #12224 ) ( #12226 )
...
(cherry picked from commit 241e6f1ecf
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
v1.3.10
2020-09-15 08:07:23 +00:00
c1a9c826f3
Enable retirement of rent collect in Bank::deposit() on testnet ( #12223 ) ( #12227 )
...
(cherry picked from commit 629572831b
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2020-09-15 07:53:36 +00:00
d9d8ec480a
Enable eager-rent-collect-across-gapped-epochs bugfix ( #12219 ) ( #12222 )
...
(cherry picked from commit 7d48339b7c
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2020-09-15 06:14:35 +00:00
b5c7ad3a9b
Add new validator options for running in more restrictive environments (bp #12191 ) ( #12218 )
...
* Add --restricted-repair-only-mode flag
(cherry picked from commit 63a67f415e
)
* Add --gossip-validator argument
(cherry picked from commit daae638781
)
* Documenet how to reduce validator port exposure
(cherry picked from commit c8f03c7f6d
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-09-15 04:26:23 +00:00
771ff65fb4
Faucet: Improve error handling ( #12215 )
...
(cherry picked from commit af2262cbba
)
Co-authored-by: Trent Nelson <trent@solana.com >
2020-09-15 01:31:02 +00:00
a5bf59b92a
patches default impl for crds filter ( #12199 ) ( #12200 )
...
In CrdsFilter.mask all bits after mask_bits are set to 1:
https://github.com/solana-labs/solana/blob/555252f4/core/src/crds_gossip_pull.rs#L65
However the default implementation, sets both mask and mask_bits to zero
which is inconsistent with CrdsFilter::compute_mask for a mask_bits of
zero.
This commit changes the default implementation by setting mask to
`!0u64` (i.e all bits set to one). As a result, for the default crds
filter, `test_mask` will always return true, whereas previously it was
always returning false.
https://github.com/solana-labs/solana/blob/555252f4/core/src/crds_gossip_pull.rs#L85
This is only used in tests and benchmarks, but causes some benchmarks to
be misleading by short circuiting in this line:
https://github.com/solana-labs/solana/blob/555252f4/core/src/crds_gossip_pull.rs#L429
(cherry picked from commit d6ec03f13c
)
Co-authored-by: behzad nouri <behzadnouri@gmail.com >
2020-09-13 14:10:42 +00:00
8dc019ae98
Gate pointer alignment enforcement (bp #12176 ) ( #12188 )
...
* Gate pointer alignment enforcement (#12176 )
(cherry picked from commit ae7b15f062
)
# Conflicts:
# programs/bpf/tests/programs.rs
* Fix conflicts
Co-authored-by: Jack May <jack@solana.com >
2020-09-12 00:06:39 +00:00
61dcab8c07
Update commitment options ( #12173 ) ( #12189 )
...
(cherry picked from commit 3c69cd6d61
)
Co-authored-by: carllin <wumu727@gmail.com >
2020-09-11 19:24:16 +00:00
640bf7015f
Check bank capitalization (bp #11927 ) ( #12184 )
...
* Check bank capitalization (#11927 )
* Check bank capitalization
* Simplify and unify capitalization calculation
* Improve and add tests
* Avoid overflow and inhibit automatic restart
* Fix test
* Tweak checked sum for cap. and add tests
* Fix broken build after merge conflicts..
* Rename to ClusterType
* Rename confusing method
* Clarify comment
* Verify cap. in rent and inflation tests
Co-authored-by: Stephen Akridge <sakridge@gmail.com >
(cherry picked from commit de4a613610
)
# Conflicts:
# Cargo.lock
# accounts-bench/Cargo.toml
* Fix conflict 1/2
* Fix conflict 2/2
Co-authored-by: Ryo Onodera <ryoqun@gmail.com >
2020-09-11 18:04:10 +00:00
db1f57162a
Fix propagation on startup from snapshot ( #12177 ) ( #12182 )
...
(cherry picked from commit 9c490e06b0
)
Co-authored-by: carllin <wumu727@gmail.com >
2020-09-11 10:04:55 +00:00
bbddffa805
solana-validator --rpc-bind-address
argument now works as expected (bp #12168 ) ( #12174 )
...
* `solana-validator --rpc-bind-address` argument now works as expected
(cherry picked from commit 6f325d4594
)
* Update bootstrap-validator.sh
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-09-10 22:02:50 +00:00
61cf432477
Update commitment options ( #12171 ) ( #12172 )
...
(cherry picked from commit 361e5322e4
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
2020-09-10 13:55:48 -06:00
9396618c12
Calc size ahead of time to alloc once ( #12154 ) ( #12169 )
...
(cherry picked from commit fd47d38e59
)
Co-authored-by: Jack May <jack@solana.com >
2020-09-10 19:17:20 +00:00