rename checkDeployments.
This commit is contained in:
parent
c1a46eedee
commit
b3dd3bfacb
@ -535,7 +535,7 @@ Chain.prototype._verify = function _verify(block, prev, callback) {
|
||||
100));
|
||||
}
|
||||
|
||||
self._checkDeployments(block, prev, ancestors, function(err, state) {
|
||||
self.getDeployments(block, prev, ancestors, function(err, state) {
|
||||
if (err)
|
||||
return callback(err);
|
||||
|
||||
@ -620,7 +620,6 @@ Chain.prototype._verify = function _verify(block, prev, callback) {
|
||||
|
||||
/**
|
||||
* Check all deployments on a chain, ranging from p2sh to segwit.
|
||||
* @private
|
||||
* @param {Block} block
|
||||
* @param {ChainEntry} prev
|
||||
* @param {ChainEntry[]} ancestors
|
||||
@ -628,7 +627,7 @@ Chain.prototype._verify = function _verify(block, prev, callback) {
|
||||
* [{@link VerifyError}, {@link DeploymentState}].
|
||||
*/
|
||||
|
||||
Chain.prototype._checkDeployments = function _checkDeployments(block, prev, ancestors, callback) {
|
||||
Chain.prototype.getDeployments = function getDeployments(block, prev, ancestors, callback) {
|
||||
var self = this;
|
||||
var height = prev.height + 1;
|
||||
var state = new DeploymentState();
|
||||
@ -2347,7 +2346,7 @@ Chain.prototype._getInitialState = function _getInitialState(callback) {
|
||||
if (err)
|
||||
return callback(err);
|
||||
|
||||
self._checkDeployments(self.tip, prev, ancestors, function(err, state) {
|
||||
self.getDeployments(self.tip, prev, ancestors, function(err, state) {
|
||||
if (err)
|
||||
return callback(err);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user