BlockStudio.Ethereum.GethService.GetCommandLineArgs C# (CSharp) 메소드

GetCommandLineArgs() 공개 정적인 메소드

public static GetCommandLineArgs ( Connection connection ) : string
connection Connection
리턴 string
        public static string GetCommandLineArgs(Connection connection)
        {
            var args = string.Empty;

            //var solc = "C:/Program Files/Ethereum (++) 0.9.34/Release/solc.exe";
            var solc = "C:/Program Files/Ethereum 1.0.0/Release/solc.exe";

            if (connection.PrivateChain)
            {
                
                //args = string.Format(@" --genesis ""C:/Users/machine/Dropbox/Ethereum/Geth/genesis.js"" --datadir ""C:/Users/machine/Dropbox/Ethereum/Geth/privatechain/"" --networkid {0} --mine --port {1} --nodiscover --maxpeers 0 --rpc --rpcaddr=""0.0.0.0"" --rpcapi ""eth,web3,personal"" --minerthreads ""1"" --rpcport={2} --rpccorsdomain *",
                args = string.Format(@" --genesis ""C:/Users/machine/Dropbox/Ethereum/Geth/genesis.js"" --datadir ""C:/Users/machine/Dropbox/Ethereum/Geth/privatechain/"" --networkid {1} --port {2} --nodiscover --maxpeers 0 --rpc --rpcaddr=""0.0.0.0"" --rpcapi ""eth,web3,personal"" --minerthreads ""1"" --rpcport={3} --ipcpath ""{4}""  --solc ""{5}"" {6} --rpccorsdomain *",
                connection.DataDir.Replace(@"\\", "/"),
                connection.NetworkId,
                connection.Port,
                connection.RpcPort,
                connection.IpcPath,
                solc,
                connection.Mine ? "--mine" : string.Empty);
            }
            else
            {
                //args = string.Format(@" --rpc --rpcaddr=""0.0.0.0"" --rpcapi ""eth,web3,personal"" --networkid {0} --mine --port {1} --rpcport={2} --rpccorsdomain *",
                args = string.Format(@" --rpc --rpcaddr=""0.0.0.0"" --rpcapi ""eth,web3,personal"" --networkid {0} --port {1} --rpcport={2} --ipcpath ""{3}"" {4} --solc ""{5}"" --rpccorsdomain *",
                connection.NetworkId,
                connection.Port,
                connection.RpcPort,
                connection.IpcPath,
                connection.Mine ? "--mine" : string.Empty,
                solc);
            }

           

            //args = @" --genesis ""C:/Users/machine/Dropbox/Ethereum/Geth/genesis.js"" --datadir ""C:/Users/machine/Dropbox/Ethereum/Geth/privatechain/"" --networkid 123 --mine --nodiscover --maxpeers 0 --rpc --rpcaddr=""0.0.0.0"" --rpcapi ""eth,web3,personal"" --minerthreads ""1"" --rpcport=8545 --rpccorsdomain *";


            return args;

        }