mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-07-31 20:11:23 +00:00
Catch AccessControlException in Secp256k1Context initialization
This commit is contained in:
committed by
Andreas Schildbach
parent
7d48f7927f
commit
135d3c7f16
@@ -19,6 +19,8 @@ package org.bitcoin;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import java.security.AccessControlException;
|
||||
|
||||
/**
|
||||
* This class holds the context reference used in native methods to handle ECDSA operations.
|
||||
*/
|
||||
@@ -38,6 +40,9 @@ public class Secp256k1Context {
|
||||
} catch (UnsatisfiedLinkError e) {
|
||||
log.info(e.toString());
|
||||
isEnabled = false;
|
||||
} catch (AccessControlException e) {
|
||||
log.debug(e.toString());
|
||||
isEnabled = false;
|
||||
}
|
||||
enabled = isEnabled;
|
||||
context = contextRef;
|
||||
|
Reference in New Issue
Block a user