Created
February 23, 2018 08:40
-
-
Save sontuphan/8ae71dbd048df4fe0911bf31f597e02f to your computer and use it in GitHub Desktop.
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
var path = require('path'); | |
var levelup = require('levelup'); | |
var leveldown = require('leveldown'); | |
/** | |
* Level DB | |
*/ | |
var levelDBPath = path.relative('./', '/Users/User/Library/Ethereum/ropsten/geth/chaindata'); | |
var db = levelup(leveldown(levelDBPath)); | |
/** | |
* Global variable | |
*/ | |
global.db = db; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment