remove old functions.
This commit is contained in:
parent
348049a5c3
commit
e9a847e8e2
@ -247,31 +247,6 @@ Pool.prototype._init = function _init() {
|
||||
this.startServer();
|
||||
};
|
||||
|
||||
Pool.prototype.loadBlocks = function loadBlocks(peer, top, stop) {
|
||||
var self = this;
|
||||
this.chain._onFlush(function() {
|
||||
peer.loadBlocks(self.chain.getLocator(top), stop);
|
||||
});
|
||||
};
|
||||
|
||||
Pool.prototype.loadOrphan = function loadOrphan(peer, top, orphan) {
|
||||
var self = this;
|
||||
assert(orphan);
|
||||
this.chain._onFlush(function() {
|
||||
peer.loadBlocks(
|
||||
self.chain.getLocator(top),
|
||||
self.chain.getOrphanRoot(orphan)
|
||||
);
|
||||
});
|
||||
};
|
||||
|
||||
Pool.prototype.loadHeaders = function loadHeaders(peer, top, stop) {
|
||||
var self = this;
|
||||
this.chain._onFlush(function() {
|
||||
peer.loadHeaders(self.chain.getLocator(top), stop);
|
||||
});
|
||||
};
|
||||
|
||||
Pool.prototype.loadBlocks = function loadBlocks(peer, top, stop) {
|
||||
var self = this;
|
||||
this.chain._onFlush(function() {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user