Advertisement
Guest User

Untitled

a guest
Oct 16th, 2019
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. private Block CreateGenesisBlock()
  2. {
  3. var lst = new List<Transaction>();
  4. var trx = new Transaction
  5. {
  6. Amount = 1000,
  7. Sender = "System",
  8. Recipient = "Genesis Account",
  9. Fee = 0.0001
  10. };
  11. lst.Add(trx);
  12.  
  13. var trxByte = lst.ToArray().ConvertToByte();
  14. return new Block(1, String.Empty.ConvertToBytes(), lst.ToArray(), "Admin");
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement