Skip to content

Commit

Permalink
Fixing codestyle issues (stratisproject#253)
Browse files Browse the repository at this point in the history
* refactoring

* edits

* var for simple types

* private and readonly

* access modifiers

* access modifier
  • Loading branch information
noescape00 authored Dec 13, 2018
1 parent 97b0ab0 commit 84bcc33
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion GenesisMiner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ private Block GeneterateBlock(SmartContractPoAConsensusFactory consensusFactory,

private string NetworkOutput(Block genesisBlock, string network, string coinbaseText)
{
SmartContractPoABlockHeader header = (SmartContractPoABlockHeader) genesisBlock.Header;
var header = (SmartContractPoABlockHeader) genesisBlock.Header;

var output = new StringBuilder();
output.AppendLine(network);
Expand Down
9 changes: 3 additions & 6 deletions MultisigAddressCreator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,14 @@ public MultisigAddressCreator(ITestOutputHelper output = null)
this.output = output;
}

//[Fact]
[Fact(Skip = "This is not a test, it is meant to be run upon creating a network")]
public void Run_CreateMultisigAddresses()
{
var mainchainNetwork = Networks.Stratis.Testnet();
var sidechainNetwork = FederatedPegNetwork.NetworksSelector.Testnet();

string password = "mypassword";
Network mainchainNetwork = Networks.Stratis.Testnet();
Network sidechainNetwork = FederatedPegNetwork.NetworksSelector.Testnet();

// Create a mnemonic and get the corresponding pubKey.
PubKey[] pubKeys = new PubKey[1];
var pubKeys = new PubKey[1];
var mnemonic = new Mnemonic(Wordlist.English, WordCount.Twelve);
pubKeys[0] = mnemonic.DeriveExtKey().PrivateKey.PubKey;

Expand Down

0 comments on commit 84bcc33

Please sign in to comment.