This repository was archived by the owner on Sep 5, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
3 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}); | ||
} |