Skip to content

Commit

Permalink
Merge pull request #426 from kilpatty/rpc-get-block-add-extra-nonce
Browse files Browse the repository at this point in the history
rpc: add extra_nonce to block's JSON.
  • Loading branch information
boymanjor authored Apr 19, 2020
2 parents c3d3aa2 + 44bd1bf commit 4178fd3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/node/rpc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2895,6 +2895,7 @@ class RPC extends RPCBase {
time: entry.time,
mediantime: mtp,
nonce: entry.nonce,
extranonce: entry.extraNonce.toString('hex'),
bits: hex32(entry.bits),
difficulty: toDifficulty(entry.bits),
chainwork: entry.chainwork.toString('hex', 64),
Expand Down Expand Up @@ -2945,6 +2946,7 @@ class RPC extends RPCBase {
time: entry.time,
mediantime: mtp,
nonce: entry.nonce,
extranonce: entry.extraNonce.toString('hex'),
bits: hex32(entry.bits),
difficulty: toDifficulty(entry.bits),
chainwork: entry.chainwork.toString('hex', 64),
Expand Down

0 comments on commit 4178fd3

Please sign in to comment.