BitCoinClient.Miner.CreateBlock C# (CSharp) Method

CreateBlock() private method

private CreateBlock ( OpenSSL.Crypto.EC.Key key ) : Block
key OpenSSL.Crypto.EC.Key
return Block
        Block CreateBlock(Key key)
        {
            Block block = new Block();

            // Create transaction from nowhere to us!
            Transaction tx = new Transaction();
            TransactionInput input = new TransactionInput();
            TransactionOutput output = new TransactionOutput(key);
            tx.AddInput(input);
            tx.AddOutput(output);

            block.AddTransaction(tx);

            Transaction[] transactions = mBitcoin.GetTransactions();

            return block;
        }