peer: minor renaming for consistency.
This commit is contained in:
parent
1c9d283f26
commit
e303ab4ee1
@ -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
|
||||
}));
|
||||
|
||||
@ -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);
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Loading…
Reference in New Issue
Block a user