We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca3ee55 commit d36f51cCopy full SHA for d36f51c
bin/inspect.js
@@ -152,7 +152,9 @@ DashTx._debugPrint = async function (tx) {
152
);
153
lines.push("");
154
155
- let txHash = await DashTx.hashPartial(tx.transaction, DashTx.SIGHASH_ALL);
+ let txHex = `${tx.transaction}${tx.sigHashTypeHex}`;
156
+ let txBytes = DashTx.utils.hexToBytes(txHex);
157
+ let txHash = await DashTx.doubleSha256(txBytes);
158
let txHashHex = DashTx.utils.bytesToHex(txHash);
159
// TODO 'N/A' if not applicable
160
lines.push(`Tx Hash: ${txHashHex}`);
0 commit comments