Skip to content

Commit

Permalink
refactor: address, amount, uri, errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
chjj committed Jan 10, 2017
1 parent 84fce9a commit 4c55774
Show file tree
Hide file tree
Showing 21 changed files with 601 additions and 250 deletions.
7 changes: 4 additions & 3 deletions lib/blockchain/chain.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

'use strict';

var assert = require('assert');
var AsyncObject = require('../utils/async');
var Network = require('../protocol/network');
var Logger = require('../node/logger');
Expand All @@ -19,11 +20,10 @@ var LRU = require('../utils/lru');
var ChainEntry = require('./chainentry');
var CoinView = require('../coins/coinview');
var Script = require('../script/script');
var assert = require('assert');
var errors = require('../btc/errors');
var errors = require('../protocol/errors');
var co = require('../utils/co');
var VerifyError = errors.VerifyError;
var VerifyResult = errors.VerifyResult;
var co = require('../utils/co');

/**
* Represents a blockchain.
Expand Down Expand Up @@ -1027,6 +1027,7 @@ Chain.prototype._reset = co(function* reset(block, silent) {
this.synced = this.isFull(true);

state = yield this.getDeploymentState();

this.setDeploymentState(state);

this.emit('tip', tip);
Expand Down
Loading

0 comments on commit 4c55774

Please sign in to comment.