blockchain – Wrong hashes for blocks when parsing from blk

[ad_1] Hello I’m using a python script to actually retrieve information from a blk file and to read data. import datetime # Read block ! file = open(“REDACTED\blocks\\blk00000.dat”, ‘rb’) numberOfBlocks = 0 i = 0 toAnalyse = 5000 while i < toAnalyse: block_magic_bytes = file.read(4) if b”==block_magic_bytes : break block_size = file.read(4) block_size_int = int.from_bytes(block_size,’little’) … Read more

lightning network – Finding paths NOT originating from you with lnd

[ad_1] I’m interested in finding paths from senders whose node you don’t run to potential receivers. According to https://api.lightning.community/?python#queryroutes , you can do that by specifying the parameter source_pub_key to be any public key you wish and not just yours. In reality, this does not work as the querryroutes command does not support any other … Read more

What is the maximum number of inputs/outputs a transaction can have?

[ad_1] These numbers are slightly different today after the segwit and taproot softforks got activated. A standard transaction is limited to 400 000 weight units (WU). The smallest standard (single-sig payment¹) input is a P2TR keypath input with 230 WU. The smallest standard (payment²) output is P2WPKH with 124 WU. The header of a segwit transaction takes at least … Read more

BlackRock’s IBIT Joins Elite ‘$10 Billion Club’ Amidst Soaring Demand

[ad_1] The demand for spot Bitcoin exchange-traded funds (ETFs) has surged since their recent approval on January 10, with BlackRock’s IBIT Bitcoin ETF leading the way. This ETF has reached impressive milestones in less than two months, attracting significant investor interest and opening doors for various market participants to invest in the largest cryptocurrency directly.  … Read more

Development Update #2 – Ethereum.org

[ad_1] Hey Ethereum! Here’s the latest update from the ethereum.org team: Style guide & Design upgrade Ethereum.org is getting an upgrade! In January we released a style guide (figma doc) for public comment and feedback, and we’re currently in the process of rolling it out live on the site. We also published a set of … Read more

The 1.x Files: February call digest

[ad_1] February 26th tl;dc (too long, didn’t call) Disclaimer: This is a digest of the topics discussed in the recurring Eth1.x research call, and doesn’t represent finalized plans or commitments to network upgrades. The main topics of this call were: The rough plan for the 1.x research summit in Paris following EthCC The Witness Format … Read more

Solidity 0.6.x features: try/catch statement

[ad_1] The try/catch syntax introduced in 0.6.0 is arguably the biggest leap in error handling capabilities in Solidity, since reason strings for revert and require were released in v0.4.22. Both try and catch have been reserved keywords since v0.5.9 and now we can use them to handle failures in external function calls without rolling back … Read more

Bitfinex to list STRK, Native Token of StarkNet’s Blockchain 

[ad_1] 16 Feb Bitfinex to list STRK, Native Token of StarkNet’s Blockchain  Posted at 14:01h in Media Releases by admin ROAD TOWN, British Virgin Islands – February 16, 2024 – Bitfinex (https://www.bitfinex.com/), a premier digital asset trading platform, announced, today that it will be one of the first centralised exchanges to list STRK, the native … Read more

blockchain – How does solving a block work in relation to the first letter/number after the 0’s?

[ad_1] The comparison used is numeric These are numbers not strings of characters. You can see this by looking at the code in the 2009 main.cpp of the Bitcoin reference implementation: uint256 hashTarget = CBigNum().SetCompact(pblock->nBits).getuint256(); uint256 hash; […] if (hash <= hashTarget) { pblock->nNonce = tmp.block.nNonce; assert(hash == pblock->GetHash()); //// debug print printf(“BitcoinMiner:\n”); printf(“proof-of-work found … Read more

bitcoinjs – broadcast ps2wsh transaction failed

[ad_1] Greeting, I hope someone can guide me about what is wrong with my p2wsh transaction hex below 020000000001014cf3b8d35c7b67fa3b669900f2a42b2e8b8a90487c2fca2b913b4e9d24a7b94e5d00000000ffffffff01e80300000000000022002053461e7b7bebf5089234af05cc4bfa5447ec7a9bc611c1f8d47dfc570a0339430221876bf128fa0fe05d617494045dc8dc27a530ec4d9c80e8d35eac377bd9c4e5090024a821876bf128fa0fe05d617494045dc8dc27a530ec4d9c80e8d35eac377bd9c4e509008700000000 i tried decode the hex and got result below : { “addresses”: [ “tb1qlwfxkadgkjykp24pcs699x3yx7egvm26khcpjheysknwv0ahh4zqmnc7xe”, “tb1q2drpu7mma06s3y354uzucjl623r7c75mccgur7x50h79wzsr89psmcywrq” ], “block_height”: -1, “block_index”: -1, “confirmations”: 0, “double_spend”: false, “fees”: 1000, “hash”: “6ad4fce6043d8012105d6b2da5da3d8519124d8bf8c97fa5c1efad27a3dd72d9”, “inputs”: [ { “addresses”: [ “tb1qlwfxkadgkjykp24pcs699x3yx7egvm26khcpjheysknwv0ahh4zqmnc7xe” ], “age”: … Read more