From f663457e2ad27fd66bb63758c1695aa853521d46 Mon Sep 17 00:00:00 2001 From: motty Date: Mon, 15 Jun 2020 06:26:34 +0900 Subject: [PATCH] Fix for COINBASE_FLAGS removed in Bitcoin v0.20.0 --- lib/transactions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/transactions.js b/lib/transactions.js index dd952ae..6ebe388 100644 --- a/lib/transactions.js +++ b/lib/transactions.js @@ -245,7 +245,7 @@ exports.CreateGeneration = function(rpcData, publicKey, extraNoncePlaceholder, r var scriptSigPart1 = Buffer.concat([ util.serializeNumber(rpcData.height), - new Buffer(rpcData.coinbaseaux.flags, 'hex'), + new Buffer([]), util.serializeNumber(Date.now() / 1000 | 0), new Buffer([extraNoncePlaceholder.length]) ]);