online resources

What happens if a miner deliberately ignores a transaction, and “wins”?

Suppose a miner decides to solve the nonce for a particular block, where the miner deliberately excluded a particular transaction from this block. The miner "wins", i.e. they found the nonce value that, when added to the string of the modified block they were trying to solve, hashes to a number below the target number. They send the solution to the network. Does their block, that ignores the transaction, get accepted by the network? If so, what happens to the ignored transaction? If not, why not?

Continue Reading What happens if a miner deliberately ignores a transaction, and “wins”?

What exactly determines how long it takes a given miner to mine 1 btc block? (not talking about hashrate) [duplicate]

So given the number of miners out there working on doing the same thing and that 1 block is mined every 10 minutes, it would appear at face value that only those with the highest hashrates would ever be able to earn a block reward as they would have to complete a new block in 10 minutes or less. This is obviously not the case since lower hashrate hardware can still successfully mine blocks, albeit at a slower rate. Is each miner starting at a different nonce and just getting lucky or is there some other variable that allows even…

Continue Reading What exactly determines how long it takes a given miner to mine 1 btc block? (not talking about hashrate) [duplicate]

Arbitrage Opportunity for Miners

I am thinking of the arbitrage opportunity for the miners by reordering or any sort of manipulations in transactions waiting for confirmation. I observed such a case in Ethereum(a paper), but not Bitcoin. Could you please share with me if you have any observation or possible scenario? I am looking at arbitrage opportunity from the miner's perspective and not the agents. Thank you

Continue Reading Arbitrage Opportunity for Miners

Fee-gathering advantages for geo-optimised miners

As the fee-in-reward percentage grows relative to subidy, will profitability increasingly be proportional to the number of listening nodes a miner has access to? While Bitcoin Core randomises transaction propagation, would larger operations with many geographically-optimised listening nodes have increased advantages in discovering newer more profitable transactions? Matt Corallo has done exceptional work in relation to FIBRE and even donates resources for the public version of the UDP/FEC network. However, in a post-issuance world will such privately operated networks become even more necessary in future? I am aware of some existing studies in relation to privacy and chainalysis, however I…

Continue Reading Fee-gathering advantages for geo-optimised miners

Question about bitcoin future

I've a question in mind: As we all know, bitcoin database hosting is a highly resource consuming operation cause of the way block chain works. For now bitcoin is being hosted and served through mining operation which is done by both individuals and cooperate whom are generouslly rewarded with bitcoins which almost exceeded the price of 1 kilo gold. My question is: When bitcome has finally reached it's named limits which is 21 million coins, who is going host bitcoin's database then and pay all these huge electric bills when there is no more coins to be given and the…

Continue Reading Question about bitcoin future

Is my Bitcoin address valid for mining?

I am looking at the specific block at height 680175. When comparing the address which received the block reward # bitcoin-cli validateaddress 1KFHE7w8BhaENAswwryaoccDb6qcT6DbYY { "isvalid": true, "address": "1KFHE7w8BhaENAswwryaoccDb6qcT6DbYY", "scriptPubKey": "76a914c825a1ecf2a6830c4401620c3a16f1995057c2ab88ac", "isscript": false, "iswitness": false } to my newly generated address # bitcoin-cli validateaddress bc1q403w7zrj74azzunk89srt2m3vuajatlmskcktm { "isvalid": true, "address": "bc1q403w7zrj74azzunk89srt2m3vuajatlmskcktm", "scriptPubKey": "0014abe2ef0872f57a217276396035ab71673b2eaffb", "isscript": false, "iswitness": true, "witness_version": 0, "witness_program": "abe2ef0872f57a217276396035ab71673b2eaffb" } there are some differences in the scriptPubKey and the witness program. Are these differences relevant for mining? The inferred PubKey hash of the miner address is c825a1ecf2a6830c4401620c3a16f1995057c2ab. Would my PubKey hash be abe2ef0872f57a217276396035ab71673b2eaffb?

Continue Reading Is my Bitcoin address valid for mining?

How to set the sequence number in a coinbase transaction?

The sequence number seems to be used for locking a transaction in mempool. However, the coinbase transaction is not part of the mempool and thus the sequence number does not make sense. Is it just an "extra nonce"? Or is there any constraint on the sequence number in a coinbase transaction?

Continue Reading How to set the sequence number in a coinbase transaction?

What exactly is Bitcoin and how to I mine it?

I'm an amateur Python developer and I've been fascinated by the whole Bitcoin system lately. I understood that Bitcoin is an online, decentralized currency that has a network called a blockchain which is a ledger that keeps a record of transactions. (I hope I got that correct) I understood all that. But what I don't understand is how do you mine bitcoin and how does it give me a profit? And why do you need hi-tech like Nvidia RTX Series for mining. What are the BTC Platforms and how does programming come in handy in the world of Crypto-Currencies. How…

Continue Reading What exactly is Bitcoin and how to I mine it?

How to install the latest bfgminer binaries directly from terminal without ‘aptitude’ on a raspberry pi 4 8gb running raspbian?

months ago I found an entry on StackExchange or somewhere else on how to install the latest (!) bfgminer binaries directly from terminal. I can not find the stackexchange post, no matter how deep I search here / on Google. I do not remember if it was a download directly from luke-jr's website via terminal or from somewhere else. I only remember that it was done via the terminal and it created an executeable shortcut in the /bin/ and/or /usr/bin/ folder. Visiting the website from luke-jr triggers my anti virus software telling me the website is infected or hosts infected…

Continue Reading How to install the latest bfgminer binaries directly from terminal without ‘aptitude’ on a raspberry pi 4 8gb running raspbian?

Why does decoded block data not match coinbase transaction input?

I am looking at the specific block at height 680175. Via bitcoin-cli getblock 00000000000000000004dbd66fa71fdcd62658bf8c8e2e153521257ad5858c71 0 I obtained the serialized, hex-encoded block data. According to the section Serialized Blocks the txn_count starts at Byte #81. Following the description of CompactSize Unsigned Integers I get: In [115]: int.from_bytes(byte_arr[80:81], "little", signed=False) Out[115]: 253 In [116]: tnx_count = byte_arr[81:83] ...: tnx_count = int.from_bytes(tnx_count, "little", signed=False) In [117]: tnx_count Out[117]: 1702 There are indeed 1702 transactions which can be verified via ./bitcoin-cli getblock 00000000000000000004dbd66fa71fdcd62658bf8c8e2e153521257ad5858c71 2 in the attribute nTx. Now I know that the rest of the block data is the transactions' part. According to…

Continue Reading Why does decoded block data not match coinbase transaction input?

Why does the mined block differ so much from the block template?

I am looking at the specific block at height 680175. At the time when the block was not mined yet, I received the block template via bitcoin-cli getblocktemplate '{"rules": ["segwit"]}' with 1451 transactions: { "capabilities": [ "proposal" ], "version": 536870912, "rules": [ "csv", "!segwit" ], "vbavailable": {}, "vbrequired": 0, "previousblockhash": "00000000000000000008465bf3145011298dddb04f026e077d8deb5b9ac5cf7f", "transactions": [ { "data": "..", "txid": "f0fcac28b1dec7b8e67f73229052639c58f7f175bdb87ea068f499a4728bb35d", "hash": "2a4aa6c2b5a6bee592e3690a843ee63b2598315da01954c05c4c0aa77d57af34", "depends": [], "fee": 160000, "sigops": 5, "weight": 953 }, .., { "data": "..", "txid": "e0ae05fa82edb0dee7e9d11ca9471bf3ee1a90e19ac8abf1013511338613b814", "hash": "e0ae05fa82edb0dee7e9d11ca9471bf3ee1a90e19ac8abf1013511338613b814", "depends": [], "fee": 103950, "sigops": 4, "weight": 1388 }, .., { "data": "..", "txid": "8d55bd874acea1fbc03b98e82d585c39021be083645dde83e8306171e32258d5", "hash": "8d55bd874acea1fbc03b98e82d585c39021be083645dde83e8306171e32258d5", "depends": [], "fee": 16425, "sigops": 8,…

Continue Reading Why does the mined block differ so much from the block template?

Educational sample of minimal working mining code

I would like if someone could point me to a minimal program source code that does solo minig on a CPU. (Can assume a running bitcoind/full node) Something that in theory (obviously not in practice) would actually be able to mine a block from the live network. This is intended for educational purposes, not for profit. Good code structure is therefore more important than performance.

Continue Reading Educational sample of minimal working mining code

Why does mining / validation of new blocks have to be complicated / time consuming?

Why does mining / validation of new blocks have to be complicated / time consuming ? Why it can't be as simple as just find a hash for a text? Is it just to control / limit the amount of new crypto volumes coming in ? If this is the case, isn't it an energy consumption issue ? Aren't there any other solutions ? Sorry for asking too many questions. I am just a bit confused.

Continue Reading Why does mining / validation of new blocks have to be complicated / time consuming?

About mining difficulty

I hope you’re all doing well during this COVID-19 period. I was wondering how you can calculate the difficulty rate of a coin (Mining purposes)?

Continue Reading About mining difficulty

How to code mining script using PHP?

I cannot understand how to do mining using code. Is it possible to use someone's API to connect to a pull and to simplify calculations for the script? I'm asking for any help with this question.

Continue Reading How to code mining script using PHP?

End of content

No more pages to load