Skip to content

Commit

Permalink
fixed Invalid bits (hoja bhai part-2)
Browse files Browse the repository at this point in the history
  • Loading branch information
amitx13 committed Apr 15, 2024
1 parent 4403978 commit 0e8fb8d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Utils/mineBlock.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module.exports.mineBlock = (merkleRoot) => {
const prevBlock = "0000000000000000000000000000000000000000000000000000000000000000"
const time = Math.floor(new Date().getTime() / 1000);
const target = Buffer.from('00000ffff0000000000000000000000000000000000000000000000000000000', 'hex')
const bits = "1f00ffff";
const bits = "ffff001f";
let nonce = 1;
while (true) {
const out = intToLittleEndianBytes(nonce)
Expand Down
2 changes: 1 addition & 1 deletion output.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
040000000000000000000000000000000000000000000000000000000000000000000000432ba63157f627a9c0599ace84fd287cf68da59f1bfd1c4692071ef3ef210e67a7a81d661f00ffffd0b10400
040000000000000000000000000000000000000000000000000000000000000000000000432ba63157f627a9c0599ace84fd287cf68da59f1bfd1c4692071ef3ef210e67fca91d66ffff001f8c221900
010000000001010000000000000000000000000000000000000000000000000000000000000000ffffffff1802d4ce0c486579206974277320406D697450726173616420ffffffff02ef85b98b000000001976a914edf10a7fac6b32e24daa5305c723f3de58db1bc888ac0000000000000000266a24aa21a9ed5aa51ae5a09bd1f63f565c0ba4f30b994c9c09c8b6f82210400497b47f42f9de0120000000000000000000000000000000000000000000000000000000000000000000000000
23f6ae5049268f63e473c5314b58a1f2d4a0d4fafd8c8ccf8efe06974ad4e077
f41c60ea16b21f696611aab3a62552037fbe95012ac4a459a6c19c2c23cd3222
Expand Down

0 comments on commit 0e8fb8d

Please sign in to comment.