Skip to content

Commit

Permalink
block version
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavitra Agarwal authored and Pavitra Agarwal committed Apr 28, 2024
1 parent f00be7e commit e18b9ea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def initializeTxn(txex , segwitness) :
bitsize =0

script_directory = os.path.dirname(os.path.abspath(__file__))
directory = os.path.join(script_directory, "mempool")
directory = os.path.join(script_directory, "checkpool")
for filename in os.listdir(directory):
if filename.endswith('.json'):
filepath = os.path.join(directory, filename)
Expand Down Expand Up @@ -167,7 +167,7 @@ def initializeTxn(txex , segwitness) :


block = Block (
version = 2 ,
version = 0x20000002 ,
prev_block= bytes.fromhex(base_block),
merkle_root= merkle_root(txides) ,
timestamp= int(ts),
Expand Down
2 changes: 1 addition & 1 deletion output.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
0100000000000000000000000000000000000000000000000000000000000000000000007b55043e4a007bce35f6efe9cb6730e6b4175ab58a611cd11e3f11f23eb64ccce2a12e6600ffff1d1bdfc826
0200002000000000000000000000000000000000000000000000000000000000000000007b55043e4a007bce35f6efe9cb6730e6b4175ab58a611cd11e3f11f23eb64ccc1ba42e6600ffff1d8afe2387
010000000001010000000000000000000000000000000000000000000000000000000000000000ffffffff6a47304402201f6e9296e322013f90f89433926509a9ff686ce91452679c82c921cf18257c95022027497b1354b4dce14b3e15d2372c69d6323ecfad9cbc0c8bb20d8d8d088fc22001210224c6633127ca04e9b678ae7d106a9828ba2aed9a402eefae69f52fbe7a065699ffffffff02f595814a000000001976a914edf10a7fac6b32e24daa5305c723f3de58db1bc888ac0000000000000000266a24aa21a9ede87305b8c1fc3a4543e8f782ded05c1a464c39f9d5fe4413093c0ce1f270d5030120000000000000000000000000000000000000000000000000000000000000000000000000
48acf3fced3d9fef33396e459b507c25c09cf70816d08f4a8c0ba5a6a97fccab
11b26c7d7881bae8dfd0378c0a6144f6a9480f68eca67c9e9c1347a5baef105f
Expand Down

0 comments on commit e18b9ea

Please sign in to comment.