public List <uint256> Generate(int blockCount) { this.logger.LogTrace("({0}:{1})", nameof(blockCount), blockCount); IWalletManager wallet = this.FullNode.NodeService <IWalletManager>(); WalletAccountReference account = this.GetAccount(); HdAddress address = wallet.GetUnusedAddress(account); List <uint256> res = this.powMining.GenerateBlocks(new ReserveScript(address.Pubkey), (ulong)blockCount, int.MaxValue); this.logger.LogTrace("(-):*.{0}={1}", nameof(res.Count), res.Count); return(res); }