Title: Why can't I get info on transactions from Core? Post by: jonnybravo0311 on June 10, 2015, 06:47:09 PM So, as a fun side project I decided to write some code to traverse the blockchain and look for "empty" blocks. An empty block is one that contains only a single transaction - the coinbase transaction that awards the generated coins. Not surprisingly, a whole bunch of the early blocks are indeed empty.
However, what truly surprised me is when I tried to parse the transactions. For a very large number of transactions, Bitcoin Core just doesn't return anything useful. Here's an example below for block 337104: Code: getblockhash 337104 Code: getblock 00000000000000000cc790ec61cd20d394f9d0f0c3e34adb1005d2d909b3f691 Code: getrawtransaction 57224de458d9356a471099c5ab9f5e68f395ec5f2822915bdf3c6b296c1428e2 1 The key piece is that last call about the transaction. Core doesn't know anything about it. Yet, if I look at that same transaction on blockchain.info I can see it clearly, and can parse the coinbase script to see the block was mined by Discus Fish: �$七彩神仙鱼��mmvs��̮���M���,���w, z1FaW���fZ�rMined by andy518038 Anyone have any idea? Title: Re: Why can't I get info on transactions from Core? Post by: grue on June 10, 2015, 07:10:10 PM you need -txindex to view transactions that don't belong in your wallet.
Title: Re: Why can't I get info on transactions from Core? Post by: jonnybravo0311 on June 10, 2015, 07:32:07 PM you need -txindex to view transactions that don't belong in your wallet. Much obliged. Thanks grue! :) |