@bsv/wallet-toolbox-mobile 1.6.27 → 1.6.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -506,12 +506,12 @@ function validateScriptHash(output, outputFormat) {
|
|
|
506
506
|
*/
|
|
507
507
|
function toBinaryBaseBlockHeader(header) {
|
|
508
508
|
const writer = new sdk_1.Utils.Writer();
|
|
509
|
-
writer.
|
|
509
|
+
writer.writeUInt32LE(header.version);
|
|
510
510
|
writer.writeReverse((0, utilityHelpers_noBuffer_1.asArray)(header.previousHash));
|
|
511
511
|
writer.writeReverse((0, utilityHelpers_noBuffer_1.asArray)(header.merkleRoot));
|
|
512
|
-
writer.
|
|
513
|
-
writer.
|
|
514
|
-
writer.
|
|
512
|
+
writer.writeUInt32LE(header.time);
|
|
513
|
+
writer.writeUInt32LE(header.bits);
|
|
514
|
+
writer.writeUInt32LE(header.nonce);
|
|
515
515
|
const r = writer.toArray();
|
|
516
516
|
return r;
|
|
517
517
|
}
|