upgrade status-go

This commit is contained in:
Roman Volosovskyi 2017-03-18 15:45:54 +02:00
parent 951b25716c
commit de41bd0f5f
4 changed files with 8 additions and 7 deletions

View File

@ -14,5 +14,5 @@ android {
dependencies { dependencies {
compile 'com.facebook.react:react-native:+' compile 'com.facebook.react:react-native:+'
compile(group: 'status-im', name: 'status-go', version: '0.9.4', ext: 'aar') compile(group: 'status-im', name: 'status-go', version: '1.1.0-44-g8a96fc1', ext: 'aar')
} }

View File

@ -99,8 +99,8 @@ class StatusModule extends ReactContextBaseJavaModule implements LifecycleEventL
File extStore = Environment.getExternalStorageDirectory(); File extStore = Environment.getExternalStorageDirectory();
String dataFolder = extStore.exists() ? String dataFolder = extStore.exists() ?
extStore.getAbsolutePath() + "/ethereum" : extStore.getAbsolutePath() + "/ethereum/testnet" :
currentActivity.getApplicationInfo().dataDir + "/ethereum"; currentActivity.getApplicationInfo().dataDir + "/ethereum/testnet";
Log.d(TAG, "Starting Geth node in folder: " + dataFolder); Log.d(TAG, "Starting Geth node in folder: " + dataFolder);
try { try {
@ -111,7 +111,7 @@ class StatusModule extends ReactContextBaseJavaModule implements LifecycleEventL
Log.e(TAG, "error making folder: " + dataFolder, e); Log.e(TAG, "error making folder: " + dataFolder, e);
} }
Statusgo.StartNode(dataFolder); Statusgo.StartNode(Statusgo.GenerateConfig(dataFolder, 3));
Log.d(TAG, "Geth node started"); Log.d(TAG, "Geth node started");
} }

View File

@ -135,7 +135,7 @@ RCT_EXPORT_METHOD(startNode:(RCTResponseSenderBlock)onResultCallback) {
NSURL *folderName =[[[[NSFileManager defaultManager] NSURL *folderName =[[[[NSFileManager defaultManager]
URLsForDirectory:NSDocumentDirectory inDomains:NSUserDomainMask] URLsForDirectory:NSDocumentDirectory inDomains:NSUserDomainMask]
lastObject] lastObject]
URLByAppendingPathComponent:@"ethereum"]; URLByAppendingPathComponent:@"ethereum/testnet"];
if (![[NSFileManager defaultManager] fileExistsAtPath:folderName.path]) if (![[NSFileManager defaultManager] fileExistsAtPath:folderName.path])
[[NSFileManager defaultManager] createDirectoryAtPath:folderName.path withIntermediateDirectories:NO attributes:nil error:&error]; [[NSFileManager defaultManager] createDirectoryAtPath:folderName.path withIntermediateDirectories:NO attributes:nil error:&error];
@ -147,7 +147,8 @@ RCT_EXPORT_METHOD(startNode:(RCTResponseSenderBlock)onResultCallback) {
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0),
^(void) { ^(void) {
StartNode((char *) [folderName.path UTF8String]); char *config = GenerateConfig([folderName.path UTF8String], 3);
StartNode(config);
}); });
NSString *peer1 = @"enode://5f23bf4913dd005ce945648cb12d3ef970069818d8563a3fe054e5e1dc3898b9cb83e0af1f51b2dce75eaffc76e93f996caf538e21c5b64db5fa324958d59630@95.85.40.211:30303"; NSString *peer1 = @"enode://5f23bf4913dd005ce945648cb12d3ef970069818d8563a3fe054e5e1dc3898b9cb83e0af1f51b2dce75eaffc76e93f996caf538e21c5b64db5fa324958d59630@95.85.40.211:30303";
NSString *peer2 = @"enode://b9de2532421f15ac55da9d9a7cddc0dc08b0d646d631fd7ab2a170bd2163fb86b095dd8bde66b857592812f7cd9539f2919b6c64bc1a784a1d1c6ec8137681ed@188.166.229.119:30303"; NSString *peer2 = @"enode://b9de2532421f15ac55da9d9a7cddc0dc08b0d646d631fd7ab2a170bd2163fb86b095dd8bde66b857592812f7cd9539f2919b6c64bc1a784a1d1c6ec8137681ed@188.166.229.119:30303";

View File

@ -25,7 +25,7 @@
<artifactItem> <artifactItem>
<groupId>status-im</groupId> <groupId>status-im</groupId>
<artifactId>status-go-ios-simulator</artifactId> <artifactId>status-go-ios-simulator</artifactId>
<version>0.9.4</version> <version>1.1.0-44-g8a96fc1</version>
<type>zip</type> <type>zip</type>
<overWrite>true</overWrite> <overWrite>true</overWrite>
<outputDirectory>./</outputDirectory> <outputDirectory>./</outputDirectory>