Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

Questions tagged [block]

This tag should be used for questions related to Bitcoin blocks

Filter by
Sorted by
Tagged with
7
votes
2answers
1k views

What would happen if two blocks had the same hash?

Consider the following scenario: January 2016 block A gets submitted. Its hash is 0001010. January 2017 block B gets submitted. Its hash is also 0001010 (collision). 10 minutes later, block C gets ...
1
vote
1answer
341 views

Where can one find the best explanation of the blockchain? [duplicate]

Sorry if these questions seem stupid but after a lot of research I still feel rather lost and confused !! I understand what is bitcoin and have a fairly good understanding of the basic blockchain idea ...
1
vote
2answers
16k views

Solo mining in Sep 2017 [duplicate]

Is solo mining still doable today? What is needed to tackle a whole block under a month alone, 100x Antminer S9, 100THash/s? Another question, does location play a role in this? Would it matter if ...
0
votes
1answer
155 views

Testing altcoin reward halving - Help!

I am currently working on reward halving changes for a test coin and i have added all the necessary changes but my question is how do i safely test this new halving without affecting production. I ...
0
votes
1answer
39 views

Is the compact block protocol faster than normal blocks when it has to do getblocktxn/blocktxn round trip?

When a compact block fails to rebuild a block from the mempool the node sends a getblocktxn message to learn about the missing transactions. Does requesting for the missing transactions make the ...
3
votes
3answers
914 views

Determining if input is a block ID, transaction ID, or address

how do sites like https://blockexplorer.com determine if the input (see inputbox in the header of https://blockexplorer.com ) is an address, transaction ID or block ID? I want to write something ...
0
votes
1answer
328 views

With the current hashrate, how does it still take 10min to solve a bitcoin block?

No matter how high the difficuly is (or how low the target is), I don't understand how the Bitcoin network takes an average of 10 minutes to solve each block. For any given block header, there are ...
0
votes
1answer
123 views

Tool to build a relational db from .dat block files

No need to elaborate too much. I'd like to build a real SQL db starting from the directory blocks. Is there any tool out there? I work on a mac and I'd prefer something cross OS if possible.
0
votes
1answer
103 views

Will 2mb blocksize mean double as many transactions?

If the blocksize is increase to 2MB will that mean twice as many transactions? Basically how much of the space is used on the standard variables found in the block?
0
votes
2answers
515 views

Implementation of the Variable length integer in C

Anyone can give me a idea of how implement in C this concept of Variable length integer which encoded the numer of transactions in a block? based on what is described here, I think is something lime ...
0
votes
0answers
195 views

How generate a hex string for a block

I have written this code to create and submit a new minned block to the bitcoin network: unsigned long magic_number = 0xD9B4BEF9; unsigned long block_size = 89 + (strlen(coinbase_transaction)-1) +...
0
votes
1answer
220 views

Will bitcoin not work any more?

I am not an expert on bitcoin, so please pardon me for dumb questions. 1, Will bitcoin not work any more in the far future? I think, not sure, every bitcoin transactions are recorded into memory or ...
3
votes
1answer
521 views

Is Bitcoin network an Asynchronous network or a synchronous network?

Conventional BFT protocols work on weak timing assumptions, and if a faulty primary does not respond or forward a client's request a view change message is initiated by the backup nodes. Therefore, if ...
0
votes
1answer
307 views

A short program to mine a block

Anyone can give step-by-step explanation about the code below (if possible, with a c/c++ equivalent)? import hashlib, struct ver = 2 prev_block = "...
0
votes
1answer
62 views

Why is such a large int (uint32) used for the transaction version field

The transaction version field is a unsigned 32 bit integer. [Source Code] [Docs] This will allow for 0 through 4,294,967,295 (2^32 − 1) versions. So far, only versions 0, 1, 2 have been used. It ...
1
vote
1answer
596 views

Question about retarget system bitcoin, add hardcodet block to exist blockchain

the standard values if (nActualTimespan < params.nPowTargetTimespan/4) nActualTimespan = params.nPowTargetTimespan/4; if (nActualTimespan > params.nPowTargetTimespan*4) ...
0
votes
2answers
984 views

how many miners approve a block; before it gets added to the block? Is it 51%?

I read a lot of material regarding this and didn't get much clue. Easy explanatory, non-technical answer please. Please! If a miner solves the puzzle and pushes the block ahead. The rest miners ...
-3
votes
1answer
107 views

what this parameters do end what i need put on them in blockchain ver2

/** What block version to use for new blocks (pre versionbits) */ static const int32_t VERSIONBITS_LAST_OLD_BLOCK_VERSION = 4; /** What bits to set in version for versionbits blocks */ static const ...
0
votes
1answer
114 views

Why are blocks serialized? and Is there any alternative way?

Am I right that blocks are serialized because they're supposed to be sent to the network? If yes, then all the data (regardless whether they are blocks or not) should be serialized. Then why do we ...
-1
votes
3answers
4k views

What is the need of miners and mining? [duplicate]

Bitcoin is designed to have an average time duration of 10 min between block mining. This is maintained by the difficulty attribute and haskey complexity. But mining takes so much power and it is a ...
-1
votes
1answer
53 views

Reading a block

I am trying to grasp basic concepts and wanted to know if miners can read contents of a block, if not, how is block validation done. As I understand each transaction is encrypted, how is decryption ...
2
votes
1answer
1k views

Why check for multiple nonces despite finding a golden nonce?

I'm still new at trying to understand the entire idea surrounding the mining process. I read the following: When mining, you are given a set of data to perform hashes on. As you noted, this is ...
1
vote
1answer
1k views

Is the hash of the previous block included in the block header?

What the title says above, but for more clarification I am asking whether the hash of the previous block header is part of what is hashed to create the header of the new block? Like what are all the ...
0
votes
3answers
518 views

More than one valid hash block

Discovering a new block is a task about generation of millions of hashes in order to find one valid hash, which is a hash less than the current target. The question is: Are there more than 1 valid ...
4
votes
4answers
4k views

Download single and specific block for study purposes

I just started studying bitcoin. I would like to be able to download a single block from the Bitcoin network. This should be an old block, already mined, and which I can know the nonce. Then I ...
0
votes
1answer
60 views

What is the implication of Induced Demand for Bitcoin scaling?

For the purposes of this question the working definition of Induced Demand is taken from Wikipedia: Induced demand, or latent demand, is the phenomenon that after supply increases, more of a good ...
3
votes
1answer
647 views

After Segwit Activation, what is the largest block size possible?

The code says MAX_BLOCK_SERIALIZED_SIZE = 4000000, but that is actually not a actually consensus rule as stated here: https://github.com/bitcoin/bitcoin/issues/10289 The actual consensus rule is ...
2
votes
1answer
74 views

Is there a difference between relaying a transaction and relaying a block?

I was checking the message types of the Bitcoin protocol and got curious whether there is a difference between relayin a transaction and a block, or not? For example, notfound message say that ...
3
votes
1answer
2k views

How to calculate the BIP34Hash?

I know this going to be a repeat question, however I am still puzzled with the implementation of the BIP34 especially where it come to its hash. Referring to the chainparams.cpp at github : https://...
2
votes
1answer
52 views

What would be the implications of limiting Bitcoin transactions to fifty inputs?

One of the issues of increasing the blocksize is the possibility of creating attackblocks which would take significantly longer to parse than the common block. The mechanism to do so is by creating a ...
1
vote
1answer
163 views

Protection against malware attacks

Does bitcoin or Blockchain protect against malware attacks that install a trojan to steal data from a device, on which bitcoin application is installed? Cause a trojan can steal the user's private key,...
2
votes
0answers
92 views

The blockchain lookup speed in a local machine

How to determine the exact required time (seconds, milliseconds) to find a particular block when searching within a local blockchain using address? Is there any way to make a benchmark to study the ...
2
votes
1answer
61 views

Shower thought: would continually broadcasting 1mb blocks help with scaling?

Currently, when a miner mines a block, they broadcast the next 1mb block and the mining competition begins on that block. It will take 10 mins for the block to be mined. In that 10 minutes, the ...
0
votes
1answer
174 views

How a Light Node can get a block?

I'd like to better understand how a light node can retrieve a complete node. If I understood correctly, I can consider a light node a node which is part of the peer-to-peer network that receives and ...
2
votes
2answers
154 views

testnet3 frequent tx malleability

Related How confirm my own doublespend transaction got confirmed This is not about double spends and I believe that the related question is not about double spends ether! On bitcoin's testnet3 I am ...
1
vote
2answers
445 views

bitcoinj get raw block

I'm trying to get the raw blocks with bitcoinj. I use Block.bitcoinSerialize() to get the bytes of each block when it is downloaded, but does not include transactions. How can I get the full raw block?...
9
votes
2answers
7k views

How is a proof-of-stake block mined at the block level, and how does it accomplish it's goals?

I've seen many broad overviews of proof-of-stake mining, and descriptions, but I have not seen any good description of what goes into actually mining and verifying a proof-of-stake block, and how it ...
-1
votes
1answer
47 views

Can I save the already downloaded blocks to another file location am almost out of space on my drive [duplicate]

Can I save the already downloaded blockchains to another file location am almost out of space on my drive and i have not completed the network synchronization
1
vote
1answer
75 views

How would I go about exploring Bitcoin's entire block chain?

I'm trying to wrap my head around bitcoin/blockchain and from what I understand, every transaction that has taken place in bitcoin is placed into a block and after this block is validated it is added ...
1
vote
1answer
2k views

How to start working with blk*.dat data?

I have the complete bitcoins block data (blk00000.dat, blk00001.dat.....). I want to convert it into some readable format like csv or json. Can it be done using python or any other software ?
7
votes
2answers
2k views

How to prevent a miner from stealing another miner's block?

Many articles only contain a phrasing like A miner A solves the hash problem and gives the result to the network to check. Once a majority of the network confirms, A gets the reward. But how does ...
1
vote
1answer
899 views

How to add a fixed transaction fee to each transaction?

Each time I send some bitcoins from Blockchain.info, it allows me to set a specific fee. I've installed bitcoind and I can't figure out how to add a 0.00013674 fee for each fee. I have read a few ...
0
votes
2answers
153 views

How do miners avoid transactions getting dropped?

I'm having a problem figuring out how miners solve the following problem: Let's say we have 2 miners: M1, M2. M1 adds transactions A,B,C,D to their block. M2 adds transactions A,B,C to their block. ...
1
vote
2answers
74 views

Why miners try to produce big blocks i.e. try to put transaction in a block as many as possible?

Why miners try to produce big blocks? What if, does a miner deliberately produce a block with a single transaction (and a coinbase transaction of course) without considering the whole unconfirmed ...
1
vote
1answer
86 views

Is it possible for two nodes to view blockchains differently?

Is there a chance, that at some point in time, two blocks will have different number of confirmations, according to different nodes? Like, with difference up to 3-4 confirmations? The problem I'm ...
1
vote
1answer
43 views

Why some blocks didn't use full potential of their size?

Currently there is 73600 Unconfirmed Transactions. But some blocks has only 749 kB or 0,21 kB or two block in row has 33 and 173 kB. Why this blocks does not have 99x.xx kB? I mean there is a space ...
6
votes
2answers
2k views

Why does the blockchain need blocks?

I think I understand the main parts of the Bitcoin blockchain. While I was explaining the concept to my girlfriend she asked me why groups of transactions are actually stored in a block? Every ...
0
votes
1answer
120 views

Can I find miner's payoff record in the Block Chain?

To my understanding after researching on the infrastructure of Bitcoin, the block chain maintains transaction records between two parties represented by their public keys. At the same time, the ...
3
votes
1answer
1k views

Bitcoin core API for address

I installed bitcoin core and now it is completely synced. I am not able to find REST Api for a particular address. I want to run my server so can i am able to make an http request for REST API
8
votes
1answer
992 views

How do blocks signal whether it supports segwit for the 95% threshold?

Ideally, I'd also like to see graphs that indicate how close we are to segwit adoption and the number of minimum blocks we are away from actual segwit adoption.