gbt: fix target endianness.
This commit is contained in:
parent
166fe0ad6e
commit
46e53abe9c
@ -1674,7 +1674,9 @@ RPC.prototype.__template = co(function* _template(version, coinbase, rules) {
|
||||
vbrequired: 0,
|
||||
height: attempt.height,
|
||||
previousblockhash: util.revHex(block.prevBlock),
|
||||
target: util.revHex(attempt.target.toString('hex')),
|
||||
// NOTE: The BIP says this is supposed
|
||||
// to be big-endian, which is _incorrect_.
|
||||
target: attempt.target.toString('hex'),
|
||||
bits: util.hex32(block.bits),
|
||||
noncerange: '00000000ffffffff',
|
||||
curtime: block.ts,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user