SHARE
TWEET

Untitled

a guest Oct 16th, 2019 94 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top