mirror of
https://github.com/Qortal/qortal.git
synced 2025-03-26 23:44:34 +00:00
Merge pull request #205 from QuickMythril/pubkey-conversion
removed API restriction from pubkey conversion
This commit is contained in:
commit
036d9b67ed
@ -327,11 +327,8 @@ public class AddressesResource {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
@ApiErrors({ApiError.INVALID_PUBLIC_KEY, ApiError.NON_PRODUCTION, ApiError.REPOSITORY_ISSUE})
|
@ApiErrors({ApiError.INVALID_PUBLIC_KEY, ApiError.REPOSITORY_ISSUE})
|
||||||
public String fromPublicKey(@PathParam("publickey") String publicKey58) {
|
public String fromPublicKey(@PathParam("publickey") String publicKey58) {
|
||||||
if (Settings.getInstance().isApiRestricted())
|
|
||||||
throw ApiExceptionFactory.INSTANCE.createException(request, ApiError.NON_PRODUCTION);
|
|
||||||
|
|
||||||
// Decode public key
|
// Decode public key
|
||||||
byte[] publicKey;
|
byte[] publicKey;
|
||||||
try {
|
try {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user