BitSharp.Core.Test.TestBlocks.CreateEmptyBlock C# (CSharp) Method

CreateEmptyBlock() public method

public CreateEmptyBlock ( UInt256 prevBlockHash, UInt256 target = null, DateTimeOffset time = null ) : BitSharp.Core.Domain.Block
prevBlockHash UInt256
target UInt256
time DateTimeOffset
return BitSharp.Core.Domain.Block
        public Block CreateEmptyBlock(UInt256 prevBlockHash, UInt256 target = null, DateTimeOffset? time = null)
        {
            return CreateBlock(prevBlockHash, 0, target, time);
        }

Usage Example

Example #1
0
 public Block CreateEmptyBlock(UInt256 prevBlockHash, UInt256 target = null)
 {
     return(testBlocks.CreateEmptyBlock(prevBlockHash, target));
 }