コード例 #1
0
        /// <summary>
        /// Generates auditor server settings
        /// </summary>
        /// <returns>Settings object</returns>
        public static AuditorSettings GetAuditorSettings()
        {
            var settings = new AuditorSettings();

            SetCommonSettings(settings, TestEnvironment.Auditor1KeyPair.SecretSeed);
            settings.ConnectionString = "mongodb://localhost:27001/auditorDBTest?replicaSet=centaurus";
            settings.AlphaPubKey      = TestEnvironment.AlphaKeyPair.AccountId;
            settings.GenesisQuorum    = new string[] { TestEnvironment.Auditor1KeyPair.AccountId };
            settings.Build();
            return(settings);
        }
コード例 #2
0
        private AuditorSettings GetAuditorSettings(KeyPair keyPair, IEnumerable <string> genesisQuorum)
        {
            var settings = new AuditorSettings
            {
                AlphaPubKey       = AlphaWrapper.Settings.KeyPair.AccountId,
                Secret            = keyPair.SecretSeed,
                NetworkPassphrase = NetworkPassphrase,
                HorizonUrl        = HorizonUrl,
                GenesisQuorum     = genesisQuorum,
                AlphaAddress      = AlphaAddress
            };

            settings.Build();
            return(settings);
        }