BlockchainDemo/Blockchain.cs
/// <summary>
/// 2. 2nd minar part. this time transaction will finalized
/// </summary>
/// <param name="minerAddress"></param>
2. 2nd minar part. this time transaction will finalized
2 . 2nd minar part . this time transaction will finalized
public void ProcessPendingTransactions(string minerAddress)
        {
            Block block = new Block(DateTime.Now, GetLatestBlock().Hash, PendingTransactions);
            AddBlock(block);
            PendingTransactions = new List<Transaction>(); 
            CreateTransaction(new Transaction(null, minerAddress, Reward));
        }
public void ProcessPendingTransactions ( string minerAddress ) { Block block = new Block ( DateTime . Now , GetLatestBlock ( ) . Hash , PendingTransactions ) ; AddBlock ( block ) ; PendingTransactions = new List < Transaction > ( ) ; CreateTransaction ( new Transaction ( null , minerAddress , Reward ) ) ; }
2.
2 .
//we have to keep in mind every time mining means  one block complete . //all pending transaction and previous transaction hash linked in this block //B-1 //here is populate block other variables and this block to the Block list chain // already we have created block so now we will create new tranactionlist,  // now pending transationlist fully empty
minerAddress
string
None