Fixed RTM tx parsing
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "cryptoforknote-util",
|
"name": "cryptoforknote-util",
|
||||||
"version": "11.2.2",
|
"version": "11.2.3",
|
||||||
"main": "cryptoforknote-util",
|
"main": "cryptoforknote-util",
|
||||||
"author": {
|
"author": {
|
||||||
"name": "LucasJones",
|
"name": "LucasJones",
|
||||||
|
|||||||
2
rtm.js
2
rtm.js
@@ -267,7 +267,7 @@ module.exports.RtmBlockTemplate = function(rpcData, poolAddress) {
|
|||||||
console.error("Skip RTM tx due to parse error: " + tx.data);
|
console.error("Skip RTM tx due to parse error: " + tx.data);
|
||||||
return; // skip transaction if it is not parsed OK (varint coding seems to be different for RTM)
|
return; // skip transaction if it is not parsed OK (varint coding seems to be different for RTM)
|
||||||
}
|
}
|
||||||
tx.push(tx);
|
txs.push(tx);
|
||||||
} else {
|
} else {
|
||||||
console.error("Skip RTM v1 tx: " + tx.data);
|
console.error("Skip RTM v1 tx: " + tx.data);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user