walletdb: lint.
This commit is contained in:
parent
0f3f9c984b
commit
c794c17077
@ -15,7 +15,6 @@ var constants = bcoin.protocol.constants;
|
|||||||
var BufferReader = require('./reader');
|
var BufferReader = require('./reader');
|
||||||
var BufferWriter = require('./writer');
|
var BufferWriter = require('./writer');
|
||||||
var TXDB = require('./txdb');
|
var TXDB = require('./txdb');
|
||||||
var keyTypes = bcoin.keyring.types;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Database Layout:
|
* Database Layout:
|
||||||
@ -281,7 +280,7 @@ WalletDB.prototype._close = function close(callback) {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
WalletDB.prototype.getDepth = function getDepth(callback) {
|
WalletDB.prototype.getDepth = function getDepth(callback) {
|
||||||
var iter, parts, depth;
|
var iter, depth;
|
||||||
|
|
||||||
// This may seem like a strange way to do
|
// This may seem like a strange way to do
|
||||||
// this, but updating a global state when
|
// this, but updating a global state when
|
||||||
@ -1254,7 +1253,6 @@ WalletDB.prototype.setTip = function setTip(hash, height, callback) {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
WalletDB.prototype.writeBlock = function writeBlock(block, matches, callback) {
|
WalletDB.prototype.writeBlock = function writeBlock(block, matches, callback) {
|
||||||
var self = this;
|
|
||||||
var batch = this.db.batch();
|
var batch = this.db.batch();
|
||||||
var i, hash, wallets;
|
var i, hash, wallets;
|
||||||
|
|
||||||
@ -1280,7 +1278,6 @@ WalletDB.prototype.writeBlock = function writeBlock(block, matches, callback) {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
WalletDB.prototype.unwriteBlock = function unwriteBlock(block, callback) {
|
WalletDB.prototype.unwriteBlock = function unwriteBlock(block, callback) {
|
||||||
var self = this;
|
|
||||||
var batch = this.db.batch();
|
var batch = this.db.batch();
|
||||||
var prev = new WalletBlock(block.prevBlock, block.height - 1);
|
var prev = new WalletBlock(block.prevBlock, block.height - 1);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user