Exemplo n.º 1
0
 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;
 }
Exemplo n.º 2
0
 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());
 }