protected void Init(ISource <byte[], AccountState> accountStateCache, ISource <byte[], byte[]> codeCache, IStorageCaches storageCaches, ISource <byte[], ContractUnspentOutput> vinCache) { this.accountStateCache = accountStateCache; this.codeCache = codeCache; this.storageCaches = storageCaches; this.vinCache = vinCache; }
public StateRepository(ISource <byte[], AccountState> accountStateCache, ISource <byte[], byte[]> codeCache, IStorageCaches storageCaches, ISource <byte[], ContractUnspentOutput> vinCache) { this.Init(accountStateCache, codeCache, storageCaches, vinCache); }
public CachedStorageCaches(IStorageCaches previous) { this.previous = previous; this.cache = new Dictionary <byte[], ISource <byte[], byte[]> >(new ByteArrayComparer()); }