Questions tagged [block]

This tag should be used for questions related to Bitcoin blocks

Filter by
Sorted by
Tagged with
1
vote
1answer
570 views

Are the vin and vout from multiple transactions related?

Note: I am using regtest for the code in this question, so it won't be the actual block I am trying to crate a block viewer that shows what transactions there are, and what addresses where sent to/...
0
votes
3answers
492 views

After sending/flooding transactions, how do we know that a specific transaction is on all nodes?

In the book "Mastering the Blockchain" by Imran Bashir, it says that a transaction's life cycle is the following: A user/sender sends a transaction using wallet software or some other interface. ...
1
vote
2answers
463 views

What is the “certain criteria” to be a valid Bitcoin block?

I'm looking for information about Bitcoin. And I read this, it's really helpful. I already asked the question and many of you guys said it's duplicated, and link to the question "What exactly is the ...
1
vote
1answer
93 views

How does number of transactions in the block affect it's mining time?

Does number of transactions in the block affect it's mining time? How and why?
1
vote
1answer
141 views

How is mining time validated?

New target is calculated from the T(new_block-1) - T(new_block-2016). Here T is the time miner mined the block. Miner itself sets this time for the block. Thus miner can falsify this time. I see a ...
0
votes
1answer
88 views

Block validation files?

Which part of the code is responsible for validating blocks? I'm working on a BIP to modify the structure of block.h, and I think that would definitely affect the validation process. Can anyone point ...
1
vote
1answer
378 views

How to access Blockchain remotely for statistics study?

I would like to write small paper supported by Blockchain stats. Could you tell me how to access blocks chain remotely via GUI to make a query ? Blockchain's size is 159GB as of today, so download is ...
0
votes
1answer
177 views

Bitcoin Blockchain block time [duplicate]

From Bitcoin.org The peer-to-peer network allows block time to be up to two hours ahead of real time, so a locktime transaction can be added to the blockchain up to two hours before its time lock ...
0
votes
2answers
258 views

At which point and how does the miner who successfully solved hash get coins? [duplicate]

When miner creates a valid block he broadcasts that to the network. It can happen that someone else did the same. So we have half nodes think that chain+A is correct, and other half that it is chain+...
2
votes
2answers
922 views

Why are transactions grouped into blocks? (how are transactions put into blocks)

Why are transactions grouped into blocks (PART 3)? Lets say we have just put a block on the blockchain. Now miners start forming new blocks and try to guess new hash values. The miners are putting ...
1
vote
2answers
468 views

Why are transactions grouped into blocks?(puzzle creation)

Why are transactions grouped into blocks (PART 2)? Let's say we have just put a block on a chain. At that moment does a protocol create a new unique puzzle to be solved? Is the new puzzle known ...
1
vote
1answer
422 views

Merkle Root for 1-transaction block!

I know that merkle hash for one transaction tx is: sha256(sha256(tx)) In this block: https://blockchain.info/block/000000000000000001291219dde8ed705903e8c101f416c68a439e5171ede5bc there is only one ...
1
vote
2answers
783 views

BlockChain scalability: How does BlockChain process multiple parallel transactions?

I just did some introductory research into blockchain technology and this is a breakdown of my understanding of how it works: Scenario: Assume Trump wants to send Obama 5 bitcoins. As soon as this ...
0
votes
1answer
381 views

Finding new Block

I need to know how miners try to find the next block hash... First, they choose list of transactions to be included in the block, calculate [Merkle Root], set current Timestamp, then start Nonce=1 and ...
5
votes
0answers
844 views

Which block has the lowest hash? [duplicate]

Which block has the lowest hash currently? Is there a website that allows to sort blocks by hash?
1
vote
1answer
281 views

How does Bitcoin know if enough BTC are available for an account to allow a transaction?

Let's consider this simplified blockchain: BLOCK 108 address ddd111 received 2 BTC by mining block 108 BLOCK 109 address abc123 received 2 BTC by mining block 109 BLOCK 110 address xyz999 created ...
1
vote
1answer
43 views

What happens to witness blocks?

What happens to witness blocks after they are broadcast to other witness nodes? Are they kept or forgotten after some blocks?
0
votes
2answers
277 views

how many miners should validate a block before its considered valid?

How many miners should validate a block before it gets added to the blockchain? Or does every miner add the blocks it receives to its local blockchain?
2
votes
2answers
65 views

In blockchain, particular bitcoin why is difficulty not part of the Block but merkleroothash is

After some consideration I came up with two assumptions, please correct me if I am way off here. The merkleroot being part of the block information is a validation shortcut? Difficulty not being part ...
1
vote
2answers
349 views

Longest-time-verifying block

I heard that there was an old block with one transaction and it takes 20 seconds of CPU time to verify. 1) Which block was it? I forgot its block height. 2) Is there a block that takes more time to ...
4
votes
1answer
3k views

How get raw block data?

I can use getblock json rpc method to get parsed block, but I need raw data. Is there any way to get raw block data using bitcoin core?
4
votes
1answer
606 views

How to mine first block of POS coin

I have tried in all the way to do this by using google and other things .but not find something that give me complete idea for doing this . i have created genesis block successfully and coin is ...
4
votes
2answers
549 views

What is the mechanism by which the 'system' adjusts the difficulty of finding blocks so one is found on average every 10 minutes? [duplicate]

Here we read: In the Bitcoin network, only blocks with certain hashes get accepted and included in the official list. The criteria for which blocks "count" is that their hash has to be ...
1
vote
2answers
442 views

Can I increase or decrease the block reward an year after launching my altcoin?

Can I increase or decrease the block rewards or coin per block once I make my coin public and people start mining it.
7
votes
2answers
2k 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
348 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
165 views

Testing altcoin reward halving - Help! [closed]

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
48 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
1k 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
345 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
130 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
106 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
663 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
207 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
222 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
600 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
326 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
71 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
650 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
1k 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 ...
-4
votes
1answer
114 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
120 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
54 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 done ...
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
566 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 ...

1
3 4
5
6 7
11