2929import peergos .shared .mutable .*;
3030import peergos .shared .storage .*;
3131import peergos .shared .storage .auth .*;
32+ import peergos .shared .util .*;
3233
3334import java .io .*;
3435import java .net .*;
@@ -70,8 +71,8 @@ public static NetworkAccess buildNetwork(String url, Hasher h) throws URISyntaxE
7071 JavaPoster poster = new JavaPoster (target , true , Optional .empty ());
7172 CoreNode directCore = NetworkAccess .buildDirectCorenode (poster );
7273 ContentAddressedStorage localDht = NetworkAccess .buildLocalDht (poster , true , h );
73- Cid peergosdotnet = Cid .decode ( "QmcoDbhCiVXGrWs6rwBvB59Gm44veo7Qxn2zmRnPw7BaCH " );
74- return NetworkAccess .buildToPeergosServer (peergosdotnet , directCore , localDht , poster , poster , 7000 , h , Collections .emptyList (), false );
74+ Cid peergosdotnet = Cid .decodePeerId ( "12D3KooWFv6ZcoUKyaDBB7nR5SQg6HpmEbDXad48WyFSyEk7xrSR " );
75+ return NetworkAccess .buildToPeergosServer (Arrays . asList ( peergosdotnet ) , directCore , localDht , poster , poster , 7000 , h , Collections .emptyList (), false );
7576 }
7677 }
7778
@@ -113,7 +114,8 @@ public static void startServer() {
113114 SqlSupplier commands = Builder .getSqlCommands (a );
114115 OfflineCorenode offlineCorenode = new OfflineCorenode (net .coreNode , new JdbcPkiCache (Builder .getDBConnector (a , "pki-cache-sql-file" , dbConnector ), commands ), online );
115116
116- JdbcAccount localAccount = new JdbcAccount (Builder .getDBConnector (a , "account-cache-sql-file" , dbConnector ), commands , "localhost" );
117+ Origin origin = new Origin ("http://localhost:8000" );
118+ JdbcAccount localAccount = new JdbcAccount (Builder .getDBConnector (a , "account-cache-sql-file" , dbConnector ), commands , origin , "localhost" );
117119 OfflineAccountStore offlineAccounts = new OfflineAccountStore (net .account , localAccount , online );
118120
119121 OfflineBatCache offlineBats = new OfflineBatCache (net .batCave , new JdbcBatCave (Builder .getDBConnector (a , "bat-cache-sql-file" , dbConnector ), commands ));
@@ -126,7 +128,7 @@ public static void startServer() {
126128 Cid nodeId = net .dhtClient .id ().join ();
127129 int connectionBacklog = 50 ;
128130 int handlerPoolSize = 4 ;
129- server .initAndStart (localAPIAddress , nodeId , Optional .empty (), Optional .empty (),
131+ server .initAndStart (localAPIAddress , Arrays . asList ( nodeId ) , Optional .empty (), Optional .empty (),
130132 Collections .emptyList (), Collections .emptyList (), appSubdomains , true ,
131133 Optional .empty (), Optional .empty (), Optional .empty (), true , false ,
132134 connectionBacklog , handlerPoolSize );
0 commit comments