rpc: minor.

This commit is contained in:
Christopher Jeffrey 2017-05-12 23:15:08 -07:00
parent 1ae6205e24
commit 5e0898d920
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -2644,7 +2644,7 @@ RPC.prototype.blockToJSON = co(function* blockToJSON(entry, block, details) {
version: entry.version,
versionHex: util.hex32(entry.version),
merkleroot: util.revHex(entry.merkleRoot),
coinbase: block.txs[0].inputs[0].script,
coinbase: block.txs[0].inputs[0].script.toJSON(),
tx: txs,
time: entry.ts,
mediantime: mtp,