better handling of non-rpc messages
This commit is contained in:
parent
f1aef66fc9
commit
f29f430e7c
@ -63,6 +63,7 @@ types of messages:
|
|||||||
// RPC responses are arrays. this message isn't meant for us.
|
// RPC responses are arrays. this message isn't meant for us.
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (/FULL_HISTORY/.test(parsed[0])) { return; }
|
||||||
|
|
||||||
var response = parsed.slice(2);
|
var response = parsed.slice(2);
|
||||||
|
|
||||||
@ -98,7 +99,7 @@ types of messages:
|
|||||||
delete ctx.pending[txid];
|
delete ctx.pending[txid];
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
console.error("received message for txid[%s] with no callback", txid);
|
console.error("received message [%s] for txid[%s] with no callback", msg, txid);
|
||||||
};
|
};
|
||||||
|
|
||||||
var create = function (network, edPrivateKey, edPublicKey, cb) {
|
var create = function (network, edPrivateKey, edPublicKey, cb) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user