peer: minor renaming for consistency.

This commit is contained in:
Christopher Jeffrey 2016-07-26 14:24:51 -07:00
parent 1c9d283f26
commit e303ab4ee1
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD
2 changed files with 4 additions and 4 deletions

View File

@ -376,7 +376,7 @@ Peer.prototype._onAck = function _onAck(err) {
// Set a fee rate filter.
if (this.pool.feeRate !== -1)
this.setFeeRate(this.pool.feeRate);
this.sendFeeRate(this.pool.feeRate);
// Start syncing the chain.
this.sync();
@ -625,7 +625,7 @@ Peer.prototype.updateWatch = function updateWatch() {
* @param {Rate} rate
*/
Peer.prototype.setFeeRate = function setFeeRate(rate) {
Peer.prototype.sendFeeRate = function sendFeeRate(rate) {
this.write(this.framer.feeFilter({
rate: rate
}));

View File

@ -1698,10 +1698,10 @@ Pool.prototype.setFeeRate = function setFeeRate(rate) {
this.feeRate = rate;
if (this.peers.load)
this.peers.load.setFeeRate(rate);
this.peers.load.sendFeeRate(rate);
for (i = 0; i < this.peers.regular.length; i++)
this.peers.regular[i].setFeeRate(rate);
this.peers.regular[i].sendFeeRate(rate);
};
/**