Skip to content
This repository was archived by the owner on Sep 5, 2020. It is now read-only.

Commit

Permalink
Cleanup collections.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanio committed Apr 8, 2018
1 parent 7267820 commit 7d06825
Showing 1 changed file with 3 additions and 24 deletions.
27 changes: 3 additions & 24 deletions interface/client/collections.js
Original file line number Diff line number Diff line change
@@ -1,39 +1,18 @@
/**
@module Collections
*/

// BROWSER RELATED
// Contains the accounts
Tabs = new Mongo.Collection('tabs', { connection: null });

LastVisitedPages = new Mongo.Collection('last-visted-pages', {
connection: null
});

History = new Mongo.Collection('history', { connection: null });

// Sync collection from and to the backend loki.js
if (typeof window.dbSync !== 'undefined') {
Tabs = window.dbSync.frontendSyncInit(Tabs);
LastVisitedPages = window.dbSync.frontendSyncInit(LastVisitedPages);
History = window.dbSync.frontendSyncInit(History);
}

// ETHEREUM RELATED

// Accounts collection is add by the ethereum:accounts package

// LastBlock collection is add by the ethereum:accounts package

// contains blockchain meta data
// LastBlock = new Mongo.Collection('lastblock', {connection: null});
// new PersistentMinimongo2(LastBlock, 'Mist');
// if(!LastBlock.findOne('latest'))
// LastBlock.insert({
// _id: 'latest',
// blockNumber: 0,
// blockHash: 0,
// gasPrice: 0,
// checkpoint: 0
// });

// Blockchain = new Mongo.Collection('blockchain', {connection: null});
}

0 comments on commit 7d06825

Please sign in to comment.