public void Init() { // Create the genesis block if the blockchain is empty var height = _blocks.GetLengthAsync().ConfigureAwait(false).GetAwaiter().GetResult(); if (height == 0) { var genesisBlock = _blocks.GetGenesisBlockAsync().ConfigureAwait(false).GetAwaiter().GetResult(); _blocks.AddAsync(genesisBlock).ConfigureAwait(false).GetAwaiter().GetResult(); } }