From 1f0941edd8e8f753e6c24bb50966cf5b964921b7 Mon Sep 17 00:00:00 2001 From: MoneroOcean Date: Sun, 28 Nov 2021 20:22:49 +0000 Subject: [PATCH] GR support --- index.js | 6 ++++++ rtm.js | 2 ++ 2 files changed, 8 insertions(+) create mode 100644 rtm.js diff --git a/index.js b/index.js index bece0b1..99b6e08 100644 --- a/index.js +++ b/index.js @@ -7,6 +7,8 @@ const varuint = require('varuint-bitcoin'); const crypto = require('crypto'); const fastMerkleRoot = require('merkle-lib/fastRoot'); +const rtm = require('rtm'); + function scriptCompile(addrHash) { return bitcoin.script.compile([ bitcoin.opcodes.OP_DUP, @@ -199,4 +201,8 @@ module.exports.ErgBlockTemplate = function(rpcData) { difficulty: difficulty, height: parseInt(rpcData.h) }; +}; + +module.exports.RtmBlockTemplate = function(rpcData, poolAddress) { + return rtm.RtmBlockTemplate(rpcData, poolAddress); }; \ No newline at end of file diff --git a/rtm.js b/rtm.js new file mode 100644 index 0000000..6e480f6 --- /dev/null +++ b/rtm.js @@ -0,0 +1,2 @@ +module.exports.RtmBlockTemplate = function(rpcData, poolAddress) { +}; \ No newline at end of file