send block and merkleblock packets correctly.
This commit is contained in:
parent
b77c34789e
commit
f3ae1c517a
@ -343,13 +343,13 @@ Framer.block = function _block(block, type) {
|
||||
};
|
||||
|
||||
Framer.prototype.block = function _block(block) {
|
||||
return this.packet(Framer.block(block, 'block'));
|
||||
return this.packet('block', Framer.block(block, 'block'));
|
||||
};
|
||||
|
||||
Framer.prototype.merkleBlock = function merkleBlock(block) {
|
||||
// XXX Technically we're also supposed to send `tx` packets accompanying the
|
||||
// merkleblock here if we have them, as per the offical bitcoin client.
|
||||
return this.packet(Framer.block(block, 'merkleblock'));
|
||||
return this.packet('merkleblock', Framer.block(block, 'merkleblock'));
|
||||
};
|
||||
|
||||
Framer.prototype.addr = function addr(peers) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user