Skip to content

Commit 4178fd3

Browse files
authored
Merge pull request #426 from kilpatty/rpc-get-block-add-extra-nonce
rpc: add extra_nonce to block's JSON.
2 parents c3d3aa2 + 44bd1bf commit 4178fd3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/node/rpc.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2895,6 +2895,7 @@ class RPC extends RPCBase {
28952895
time: entry.time,
28962896
mediantime: mtp,
28972897
nonce: entry.nonce,
2898+
extranonce: entry.extraNonce.toString('hex'),
28982899
bits: hex32(entry.bits),
28992900
difficulty: toDifficulty(entry.bits),
29002901
chainwork: entry.chainwork.toString('hex', 64),
@@ -2945,6 +2946,7 @@ class RPC extends RPCBase {
29452946
time: entry.time,
29462947
mediantime: mtp,
29472948
nonce: entry.nonce,
2949+
extranonce: entry.extraNonce.toString('hex'),
29482950
bits: hex32(entry.bits),
29492951
difficulty: toDifficulty(entry.bits),
29502952
chainwork: entry.chainwork.toString('hex', 64),

0 commit comments

Comments
 (0)