public static async Task <BlockCommit> Revert(ProtocolHandler proto, Block block) { var commit = new BlockCommit(proto); await commit.Init(block); await commit.Revert(); return(commit); }
public static async Task <BlockCommit> Apply(ProtocolHandler proto, RawBlock rawBlock) { var commit = new BlockCommit(proto); await commit.Init(rawBlock); await commit.Apply(); return(commit); }