Skip to content

Commit

Permalink
Removed witness stack from coinbase txn
Browse files Browse the repository at this point in the history
  • Loading branch information
ayushj05 committed Apr 7, 2024
1 parent 9fa256c commit a7d8887
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Binary file modified bin/main
Binary file not shown.
6 changes: 3 additions & 3 deletions output.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
200000000000000000000000000000000000000000000000000000000000000000000000415e963e489fb68a4beb66e670655b3a5243f5a069a48f09023cb7479a08f3a7d0ea1266ffff001f00007dd8
01000000010000000000000000000000000000000000000000000000000000000000000000ffffffff0403951a06ffffffff0277bf4025000000001976a9142c30a6aaac6d96687291475d7d52f4b469f665a688ac0000000000000000266a24aa21a9ed645ca51edf54d5cca1ec2f190d5738d86970c506b86310ce835e08c1b92715770120000000000000000000000000000000000000000000000000000000000000000000000000
86bd466461b021a26c20c8365c0a19e3318fcb6a808cf66f67b2f7ed14f59a8d
20000000000000000000000000000000000000000000000000000000000000000000000036e57bfc2484c580c0acbe8dabf9cd676d6b206bc3d5971a1ffe00ac7763d85e2bf01266ffff001f00009443
01000000010000000000000000000000000000000000000000000000000000000000000000ffffffff0403951a06ffffffff0277bf4025000000001976a9142c30a6aaac6d96687291475d7d52f4b469f665a688ac0000000000000000266a24aa21a9ed645ca51edf54d5cca1ec2f190d5738d86970c506b86310ce835e08c1b927157700000000
d71807673f67bf7e84f1be691e88964b5d99c4644551fd0b5e78d36071acf22a
4ab3cc4296fee78153d60d2884323a84260157db0b83a72309272f109ad9dd32
2 changes: 1 addition & 1 deletion src/block.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ string genCoinbaseTxn (int64_t reward, string wTXID_commitment) {
coinbase_txn += int2compact(0x26); // Output script length
coinbase_txn += hexstr2bstr("6a24aa21a9ed"); // Output script
coinbase_txn += wTXID_commitment; // Output script
coinbase_txn += hexstr2bstr("01200000000000000000000000000000000000000000000000000000000000000000");
// coinbase_txn += hexstr2bstr("01200000000000000000000000000000000000000000000000000000000000000000");

coinbase_txn += int2bin(0); // Locktime

Expand Down

0 comments on commit a7d8887

Please sign in to comment.