public BlockChain() { var blockPool = BlockPool.Get(); var zeroBlock = new Block() { Index = 0, Date = DateTime.Now, PrevHash = "" }; zeroBlock.Txs.Add(new Transaction() { From = "", To = "root", Amount = 10000 }); blockPool.SetGetBlock(zeroBlock); }
public static BlockPool Get() => Instance ?? (Instance = new BlockPool());