Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

requestAirdrop RPC API is now optional #3152

Merged
merged 4 commits into from
Mar 6, 2019
Merged

Conversation

mvines
Copy link
Member

@mvines mvines commented Mar 6, 2019

The hard coded assumption in the RPC API that a drone will be available is problematic for a main net. #1830 proposes removing the requestAirdrop RPC API entirely, this PR takes more subdued approach by:

  1. Making the drone address (and thus requestAirdrop) optional within the RPC subsystem
  2. Removes the hard coded drone address from fullnode
  3. Shifts the knowledge of whether a drone exists or not way up to bash scripts used to start a cluster

@mvines mvines requested a review from CriesofCarrots March 6, 2019 17:35
@codecov
Copy link

codecov bot commented Mar 6, 2019

Codecov Report

Merging #3152 into master will increase coverage by 0.4%.
The diff coverage is 42.4%.

@@           Coverage Diff            @@
##           master   #3152     +/-   ##
========================================
+ Coverage    80.5%     81%   +0.4%     
========================================
  Files         129     129             
  Lines       19533   19368    -165     
========================================
- Hits        15730   15691     -39     
+ Misses       3803    3677    -126

Copy link
Contributor

@CriesofCarrots CriesofCarrots left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like a good step forward. Thanks!

@mvines mvines merged commit 0a4f909 into solana-labs:master Mar 6, 2019
@mvines mvines deleted the rpc branch March 6, 2019 18:24
joncinque added a commit to joncinque/solana that referenced this pull request Nov 14, 2024
#### Problem

The precompiles behave more like programs than instructions, as was
decided with the new secp256r1 precompile in solana-labs#3152, but the ed25519
precompile was split as `ed25519-instructions`.

#### Summary of changes

Rename the crate from `solana-ed25519-instructions` to
`solana-ed25519-program`, which is a previous crate that used to be used
until solana-labs#19930.
joncinque added a commit to joncinque/solana that referenced this pull request Nov 14, 2024
* sdk: Rename ed25519-instructions -> ed25519-program

#### Problem

The precompiles behave more like programs than instructions, as was
decided with the new secp256r1 precompile in solana-labs#3152, but the ed25519
precompile was split as `ed25519-instructions`.

#### Summary of changes

Rename the crate from `solana-ed25519-instructions` to
`solana-ed25519-program`, which is a previous crate that used to be used
until solana-labs#19930.

* Run cargo fmt
yihau pushed a commit to yihau/solana that referenced this pull request Nov 15, 2024
* feat: secp256r1 precompile

* add: num_signatures == 0 check from SIMD-0152

* rm: unnecessary comment

* fix: legacy numeric constant

* CI/fix: compilation for wasm32 target

* Extract secp256r1 crate

* rm: unnecessary import

* update: sbf/Cargo.lock

* rm: unnecesary re-exports

* add: secp256r1 precompile to docs

* add: docs/description to sdk/program/src/lib.rs

* fix: alpha sort deps

* fixes

* docs fixes

* add: solana-instruction std feature to deps

* fix: lockfile from rebase

* fix: target architecture

* fix: workflow for client_target android

* add: sudo to workflow perl install

* fix: Cargo toml workspace member

* modify: ranlib path in client-targets.yaml

* fix: secp256r1/Cargo.toml formatting

* add: openssl feature

* fixes

* add: precompile signature range error

* more adjustments

* change: feature id

* fix: cargo format

* Revert "add: precompile signature range error"

This reverts commit fdf7673.

* fix: cargo sanity

* fix: client target openssl dep

* fix: 31 byte r,s support in new_secp256r1_instruction

* update: Cargo.lock

* fix: unchecked math in new_secp256r1_instruction

* fixes & increased test coverage

* add: solana-sdk/openssl to all release binaries

* update: comment to make openssl feature more clear

* add: solana-sdk/openssl feature to dependencies

* add: solana-sdk/openssl feature to dependencies

* merge: master into secp256r1-precompile

* fix: test-validator formatting

* Revert "add: solana-sdk/openssl to all release binaries"

This reverts commit 5c66b50.

* add: reserved key for secp256r1 program

* modify: client-targets.yaml

* modify: client/Cargo.toml solana-sdk dep

* modify: ledger-tool/Cargo.toml solana-sdk

* modify: test-validator/Cargo.toml solana-sdk dep

* modify: validator/Cargo.toml solana-sdk dep

* change: openssl feature to openssl-vendored

* remove: solana-sdk dep from sdk/program

* refactor: secp256r1 directory name

* fmt

* cargo.lock files

* revert: rustc-demangle bump

* cargo lock sanity

* fix: faulty feature-set merge

* fix: reserved keys pending feature id

---------

Co-authored-by: Iceomatic <[email protected]>
yihau pushed a commit to yihau/solana that referenced this pull request Nov 26, 2024
…) (solana-labs#3662)

* SIMD-0075: Precompile for Secp256r1 (solana-labs#3152)

* feat: secp256r1 precompile

* add: num_signatures == 0 check from SIMD-0152

* rm: unnecessary comment

* fix: legacy numeric constant

* CI/fix: compilation for wasm32 target

* Extract secp256r1 crate

* rm: unnecessary import

* update: sbf/Cargo.lock

* rm: unnecesary re-exports

* add: secp256r1 precompile to docs

* add: docs/description to sdk/program/src/lib.rs

* fix: alpha sort deps

* fixes

* docs fixes

* add: solana-instruction std feature to deps

* fix: lockfile from rebase

* fix: target architecture

* fix: workflow for client_target android

* add: sudo to workflow perl install

* fix: Cargo toml workspace member

* modify: ranlib path in client-targets.yaml

* fix: secp256r1/Cargo.toml formatting

* add: openssl feature

* fixes

* add: precompile signature range error

* more adjustments

* change: feature id

* fix: cargo format

* Revert "add: precompile signature range error"

This reverts commit fdf7673.

* fix: cargo sanity

* fix: client target openssl dep

* fix: 31 byte r,s support in new_secp256r1_instruction

* update: Cargo.lock

* fix: unchecked math in new_secp256r1_instruction

* fixes & increased test coverage

* add: solana-sdk/openssl to all release binaries

* update: comment to make openssl feature more clear

* add: solana-sdk/openssl feature to dependencies

* add: solana-sdk/openssl feature to dependencies

* merge: master into secp256r1-precompile

* fix: test-validator formatting

* Revert "add: solana-sdk/openssl to all release binaries"

This reverts commit 5c66b50.

* add: reserved key for secp256r1 program

* modify: client-targets.yaml

* modify: client/Cargo.toml solana-sdk dep

* modify: ledger-tool/Cargo.toml solana-sdk

* modify: test-validator/Cargo.toml solana-sdk dep

* modify: validator/Cargo.toml solana-sdk dep

* change: openssl feature to openssl-vendored

* remove: solana-sdk dep from sdk/program

* refactor: secp256r1 directory name

* fmt

* cargo.lock files

* revert: rustc-demangle bump

* cargo lock sanity

* fix: faulty feature-set merge

* fix: reserved keys pending feature id

---------

Co-authored-by: Iceomatic <[email protected]>
(cherry picked from commit da4f55e)

# Conflicts:
#	Cargo.lock
#	Cargo.toml
#	ledger-tool/Cargo.toml
#	programs/sbf/Cargo.lock
#	sdk/Cargo.toml
#	sdk/feature-set/src/lib.rs
#	sdk/reserved-account-keys/Cargo.toml
#	sdk/src/reserved_account_keys.rs

* Fix merge conflicts

---------

Co-authored-by: Orion <[email protected]>
Co-authored-by: Jon C <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants