public async Task TrustedStateCompleter() { StateCompleter <DumbAction> noComplete = StateCompleters <DumbAction> .Reject; // The chain with incomplete states var incompleteStateStore = new DefaultStore(null); (_, Address[] addresses, BlockChain <DumbAction> incompleteChain) =
internal static Func <BlockChain <T>, HashDigest <SHA256>, IValue> ToRawStateCompleter( StateCompleter <T> stateCompleter, Address address ) => (blockChain, hash) => stateCompleter(blockChain, hash, address);
private IValue NullStateGetter <T>( Address address, HashDigest <SHA256>?hashDigest, StateCompleter <T> stateCompleter) where T : IAction, new() => null;
public IReadOnlyList <IValue?> GetStates( IReadOnlyList <Address> addresses, BlockHash offset, StateCompleter <T> stateCompleter ) => new IValue?[addresses.Count];
internal static Func <BlockChain <T>, BlockHash, IReadOnlyList <IValue?> > ToRawStateCompleter( StateCompleter <T> stateCompleter, IReadOnlyList <Address> addresses ) => (blockChain, hash) => stateCompleter(blockChain, hash, addresses);