Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [blocks]

This tag is for questions dealing with the structure of blocks.

1
vote
2answers
15 views

0 txn in mined block

How is it possible for a block to be mined with 0 txn? https://etherscan.io/block/6739171 That's an easy way to get 3 ETH block rewards.
0
votes
0answers
24 views

Own blockchain based on Ethereum [on hold]

Hi everybody and developers ethereum I have one simple task, which I think how can I do this, please help me, I will be very happy to everyone. I need to create a blockchain that saves user queues ...
2
votes
1answer
11 views

Is state read from the current or previous block for external function calls?

Given that a computer must execute in a sequence, I assume the VM is also doing so before deciding the final block state. Let's say my contract calls an external function from another contract that ...
8
votes
2answers
124 views
+50

Possible error in white paper validation algorithm?

If we take the block validation algorithm described in the white paper (Section Blockchain and Mining), it states at point 6: Let TX be the block's transaction list, with n transactions. For all i ...
3
votes
0answers
6 views

Will block numbers be sequential on a sharded blockchain

When Ethereum shards (assuming it does) will the block numbers across the multiple shards be unique? I doubt it (I don't think the shards can have sequential block numbers and be independent of the ...
0
votes
0answers
12 views

proof of stack detailed mechanisme

oke, after googling about pos i know that you put you coins in a wallet and let the system pick you up for validating transactions inside the blocks, the way i understand is that transactions are ...
1
vote
1answer
14 views

Does a non-miner node validate both single transactions and an entire block?

My understanding is that an originating node broadcasts a transaction to its neighbours, who all validate the transaction to ensure (a) the signature is valid and (b) the state change is valid, before ...
2
votes
1answer
22 views

Is there any point in adding msg.sender to an event?

I am asked to provide the value of msg.sender as part of an event emitted in a function. It is something like: contract MyContract { event MyEvent(address indexed sender, uint256 input, uint256 ...
0
votes
2answers
28 views

How to get multiple blocks timestamps with a single JSON RPC call?

Is there a way to get data similar to the ones provided by web3.eth.getBlock(blockNumber) but with multiple blocks at once? The goal is to get the timestamps for 100 blocks in a row without ...
1
vote
0answers
18 views

Same Block Received More Than Once With Same Block Parameters

Use Case: I am implementing a deposit system where I will get a block as it is mined and parse transactions to check for a deposit of Ether or a specific token. Getting the same block twice will ...
1
vote
1answer
94 views

How can I retrieve the transaction hash / block hash of a contract that has already been deployed?

If you use Web3.py to deploy a Solidity contract to the blockchain, you can retrieve a transaction hash, like this: tx_hash = w3.eth.sendRawTransaction(signed.rawTransaction) Once you have that ...
0
votes
1answer
38 views

How to read previous blocks data?

I'm new to block chain technology. I'm trying to store and read blocks using testRPC along web3.js. I'm able to get the latest block data but not able to fetch previous blocks data. Please some one ...
1
vote
1answer
26 views

Why is LH repeated in equation 35 of the yellow paper?

Excerpt from page 5 of the yellow paper, version e94ebda: I understand that LX is the preparation function for serialising X, as follows: LB for blocks LH for block headers LU for ommer block ...
0
votes
0answers
45 views

Ethereum - Mapping mining operations to code

The image (not mine) below describes the Ethereum state tries and their role in block mining. My intention is to connect the operations with the technology stack of Ethereum. This is assuming that a ...
1
vote
1answer
140 views

How the blocks and tries are stored

Newbie here! I still not sure if I understood how some structures of Ethereum are physically stored (assuming Geth implementation) State Trie: only one off-chain Merkle Patricia Tries stored using ...
1
vote
0answers
76 views

What does total number of blocks per day mean in Etherscan?

I tried to figure out what does total number of blocks per day means here and on the Internet, but i failed. For example, the number of blocks on 26 Aug is 5947 [here https://etherscan.io/chart/blocks]...
1
vote
1answer
34 views

Why are timestamps stored in a uint (256 bit) when they would fit in a uint64?

A (signed) 64 bit timestamp can store a date much larger than the age of the universe. On many platforms this would be a micro-optimization, but in the context of Ethereum, we want to squeeze every ...
1
vote
1answer
376 views

Block time and confirmation time

I have been reading in different papers and comments these two concepts and I would like to know the difference between them(if there is, sometimes it is a bit confusing). I understand that the block ...
1
vote
0answers
31 views

Why is my transaction not included into blocks with smaller gas prices in them?

I created a transaction with gas price 1.1 GWEI. It has been pending for 3 hours, and yet - during just the last 75 blocks - several 1 GWEI transactions have been included. In other words, gas price ...
0
votes
0answers
27 views

How to get unconfirmed transactions of an erc20 token which are not included in any block

Is there any way to find unconfirmed transaction which are not included in any block.i am currently using following etherscan api for getting all transaction list and then calculating confirmation ...
0
votes
0answers
39 views

What is a pivot block in ethereum?

i was exploring ethereum codebase and noticed it has been mentioned in so many places about pivot block. I couldn't get a definition on what it exactly means. Could someone explain me what considered ...
0
votes
0answers
17 views

How the default block in Parity is set

How function setting default block (going back in history) in parity is implemented looking from algorthmic side?
4
votes
2answers
332 views

Basic Blockchain Implementation: how is the blockchain on a given node “synced” with that on another node?

Here's my understanding of the execution flow of blockchain: Consider two nodes, node1 and node2. Let's say there are 10 users on node1. They're making transactions, but none of these are actually ...
0
votes
1answer
56 views

How to get erc20 contract deploy time / block number

I am building a framework for ERC20 tokens. Aim is to scan all events (Transfer and Approve) generated by ERC20 contract, for which I am using web3.js getPastEvents. I have set the toBlock to web3....
0
votes
0answers
422 views

Ethereum Blockchain Size calculation from Etherscan

I was looking into Etherscan.io charts of Ethereum Block Count and Ethereum Average Block Size. Both of them have the data since 07/30/2015 and if one multiply both time-series (Ex. 07/30/2015 - 644 ...
0
votes
0answers
25 views

Ethereum blocks

I want to know Ethereum bloc structure.In the case of a bit coin block, the beginning of the block is a magic byte, 4 bytes, followed by block size, 4 bytes, followed by a block header, 80 bytes, ...
0
votes
0answers
33 views

Ethereum raw block specific structure [duplicate]

I want to know Ethereum raw block specific structure like this picture(ex_magic bytes, size,tx_count etc.).any suggestions are welcomed.Thanks in advance
1
vote
1answer
23 views

Couldn't reach block gas limit

When i try to send a lot of transaction, every block looks like only use half of its gas limit. How can i make block to use all its gas limit until it can't handle more transaction?
0
votes
1answer
33 views

Can I set the block size in genesis block by puppeth?

Found the block size is set to 30K in genesis block. How can I modify this value to 100K or 1M by puppeth?
0
votes
1answer
16 views

I have done simple data transaction on ropsten, it's stll increasing blocks confirmation

Why there are so many block confirmations in small transaction? How blocks are working while transaction?
0
votes
2answers
44 views

All my blocks has deleted

I have a private network for testing. My problem is when ever I stop running geth network, all of my mined blocks are gone. I run like geth --datadir "ethereum/node1" --port 30301 --networkid 1234 --...
0
votes
0answers
22 views

how to check if a block has a transaction to an address only by using the block header

Question is self explanatory. How can I check if a block has a transaction to or from an address only by using the block header? Question is prompted by this comment - How to explore all ...
1
vote
1answer
63 views

Transaction receiving ether from a contract address

Are transactions sending ether from contract addresses to normal addresses listed in block.transactions or are they not trivial to detect? If not in block.transactions than how to detect?
0
votes
1answer
25 views

What is saved on every block on Ethereum?

In Bitcoin every block has the information about the transaction (A sends money to B, C to D etc). And everytime a new transaction (someone sends money to another address) is sent, the miners will ...
1
vote
0answers
64 views

Showing block confirmations on a user transaction, best practices?

I'm working on a site that allows users to deploy smart contracts via MetaMask. Basically they customize it, it gets compiled, and then the user deploys it by via a MetaMask transaction. I would like ...
1
vote
1answer
48 views

Examples of light-client interactions to extract Merkle proofs?

I'd be grateful for pointers to working examples of interacting with the geth/parity light-client protocols. I'm particularly interested in working code which shows how to extract the Merkle proof ...
0
votes
1answer
26 views

Uploading big contract to the Ethereum blockchain

As far as I understand, there is a limit on the block size. But what if I want to upload a large contract that exceeds the blocksize? Will it not be allowed?
0
votes
1answer
61 views

Why is that the 'blocks count' is always in multiples of 192?

I'm running light node client for rinkeby using command: geth --rinkeby --syncmode=light --rpc --rpcapi personal,db,net,eth,web3 The terminal runs continuously and I don't quit it when I close the ...
3
votes
1answer
497 views

Why is there block gas limit?

Why is there block gas limit? Should it just be the sum of gas limit used by each transactions inside the block? Why do we need an extra field for it instead of calculate it?
0
votes
2answers
760 views

How do I get the latest block using etherscan api?

I'm trying to get the latest block (it's height) using Ethereum Developer APIs of etherscan. For example, I can get it from blockcypher using the following URL: https://api.blockcypher.com/v1/eth/...
0
votes
2answers
198 views

Ethereum blockchain node & block terminology

I was studying about the basic blockchain terminology and got confused the point of node & block. In some links, both seem similar whereas in some both explained differently. I don't exactly know ...
1
vote
0answers
34 views

What precisely classifies an off-chain block as a fork?

I am looking for validation (or invalidation) of my assumption of what strictly counts as a fork in Ethereum. If you start filters to multiple ETH nodes at the same time, you will very often see 2 or ...
0
votes
1answer
19 views

Can the recipient of a block reward spend the funds in the same block?

From my understanding, when a new block is mined, the coinbase address's balance is incremented by the block reward amount. If this address had a zero balance before the block was mined and the block ...
0
votes
1answer
33 views

Latest block of multiple mining nodes

Lets say I have a private chain with 3 nodes (all mining) A, B and C. I want to get the latest block of my chain. I connect to node A and get this information with getBlock("latest"). Lets imagine ...
2
votes
2answers
199 views

Is a block number unique or does it change if the block becomes uncle? Does the transaction hash include a block hash as input?

Is a block number unique or do I need to save block hash to identify a block? Does transaction hash include a block hash as input?
2
votes
0answers
177 views

Unexpected behavior with `block.timestamp` in truffle test

I am doing some experiments with block.timestamp(which is now's alias). I wrote some code to see if block.timestamp really represents the timestamp of the last mined block. From the documentation: ...
0
votes
0answers
17 views

What exactly do full nodes verify in the block? [duplicate]

What exactly do full nodes verify in the blocks they get (what fields are important for its checks)?
1
vote
1answer
30 views

Is there another purpose for ether besides buying gas?

Were ether coins invented only in order to buy gas? Or can I trade it too (like in bitcoin) ? thank you
0
votes
2answers
207 views

What does ethereum's blockchain look like?

What does Ethereum's blockchain looks like? Are there only transactions of the states' changes, or are the accounts in every block? Thank you
0
votes
2answers
31 views

Block immutability

I am working on a blockchain learning project and i have a general question about block immutability. I know that when a block data is altered the chain becomes invalid am wondering what happens if I ...