add Whisper flag and comments for Android quirks
This commit is contained in:
parent
103d83edd9
commit
ebd42db745
|
@ -17,14 +17,20 @@ public class MainActivity extends ReactActivity {
|
|||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
|
||||
// Required for android-16 (???)
|
||||
System.loadLibrary("gethraw");
|
||||
System.loadLibrary("geth");
|
||||
|
||||
// Required because of crazy APN settings redirecting localhost
|
||||
Properties properties = System.getProperties();
|
||||
properties.setProperty("http.nonProxyHosts", "localhost|127.0.0.1");
|
||||
properties.setProperty("https.nonProxyHosts", "localhost|127.0.0.1");
|
||||
|
||||
// Launch!
|
||||
new Thread(new Runnable() {
|
||||
public void run() {
|
||||
Geth.run("--ipcdisable --nodiscover --rpc --rpcapi \"db,eth,net,web3\" --fast --datadir=" + getFilesDir().getAbsolutePath());
|
||||
Geth.run("--shh --ipcdisable --nodiscover --rpc --rpcapi \"db,eth,net,web3\" --fast --datadir=" + getFilesDir().getAbsolutePath());
|
||||
}
|
||||
}).start();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue