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