4

What you are referring to are stale blocks. Orphaned blocks are one for which the previous (parent) hash field points to an unknown block or to a block not yet processed by the local node. Since Bitcoin Core follows headers first approach, block headers are downloaded and validated first before downloading the block data. As a result, full nodes will never ...


4

Bitcoin core does not provide this functionality (as far as I know). The mempool is where transactions are stored until they get put into a block. It would be hard to determine you had the correct mempool if you didn't keep track of the whole block chain, though. For example, someone could broadcast an older transaction, and you would have no way to ...


3

If you're looking for unconfirmed transactions without loading the blockchain, you're going to have to trust someone since you can't verify the transactions yourself. Probably the easiest way to get these transactions is by using a third-party API service. Blockchain.info provides a very good one here: https://blockchain.info/unconfirmed-transactions?...


2

I think you have two options: 1) Patch bitcoin-core and make getrawmempoolentry return the mempool transaction sorted after entry_date. There is boost multi index that would be capable to fast sort the mempool transaction (https://github.com/bitcoin/bitcoin/blob/master/src/txmempool.h#L303) 2) You can try to improve your PHP sort speed. IMHO Arsort is not ...


2

In general, mempools are not guaranteed to be the same node-to-node. The behavior of the reference client is that once mempools reach 300MB, the lowest fee tx's are thrown away. It's possible your node has reached this limit (either because it's 300MB or because your default is much lower) or simply because you're connected to nodes that have the same ...


1

You can use the command bitcoin-cli getrawmempool to get a JSON array of all transactions that are stored locally in your mempool. Since v0.9 release you can also pass a verbose boolean to get more info related to the transactions in your mempool like size, fees, or ancestor/dependent transaction within the mempool. Do note that there is no one global ...


Only top voted, non community-wiki answers of a minimum length are eligible