/// <summary> /// Constructs a stake block from a set bytes and the given network. /// </summary> public static BlockStake Load(byte[] bytes, Network network) { var blockStake = new BlockStake(); blockStake.ReadWrite(bytes, network.Consensus.ConsensusFactory); return(blockStake); }
/// <summary> /// Constructs a stake block from a set bytes and the given network. /// </summary> public static BlockStake Load(byte[] bytes, ConsensusFactory consensusFactory) { var blockStake = new BlockStake(); blockStake.ReadWrite(bytes, consensusFactory); return(blockStake); }