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
1answer
16 views

How to change all the ethereum blocks from C drive to D drive — question about the answer

I'm new here and have no idea if this is the right way to respond. So I duplicated the question a have a question about: I've done the things written in the answer on the original question and I ...
0
votes
1answer
16 views

Is there multiple chains of block in ethereum network?

Since blockchain is a chain of blocks, In ethereum, 1. is there only one chain of blocks 2. are there multiple chains of blocks.
1
vote
0answers
35 views

What actually a block contains, is the data inside it a virtual or physical entity?

My understanding of a block in blockchain is that it is a data structure that contains information like Block Size, Block Header, Transaction Counter and then Transactions. Deeper in the Block Header ...
1
vote
1answer
27 views

How State variable are stored and updated?

The Smart contract and the state variables are stored in the blockchain, let us say during deployment of a smart contract the state variable and smart contracts are stored in the block 1, and in ...
1
vote
1answer
20 views

Looking for an Ethereum sniffer

I have been looking for a sniffer similar to Bitcoin P2P Network Sniffer (https://github.com/sebicas/bitcoin-sniffer) which could allow me to connect to Ethereum nodes and listen to blocks and ...
1
vote
1answer
28 views

Getting the last synced block is 0

I am trying to get last synced block but it always 0. So I have run geth --syncmode fast -cache 4096 --rpc Here is a logs INFO [12-19|09:47:50.058] Imported new state entries count=...
1
vote
2answers
46 views

Who generates the mathematical problem for miners?

In POW miners solve an problem for successfully mining a block, who provide the question to the miners ?, does all miners work on same problem ?, and how the miners verify the answer ?, if the problem ...
0
votes
1answer
23 views

how to get the last incoming transaction before date

I need to get the incoming transaction before the date currently i use https://web3api.io/api/v1/addresses/0xaD4b04Df17f2d35F81771Fa124dBD94E33587F4c/transactions?to=...
1
vote
0answers
24 views

Get blocks between dates

I am trying to get the block between dates . for that i use web3.js . per day average block is 6172 so if i need previous day block i use below code fromBlock: (await web3.eth.getBlockNumber()) - ...
0
votes
2answers
32 views

can only change header's extra data to mine a new block? [closed]

Fix 'nonce' and 'mixDigest', only change 'extra' to mine a new block.
1
vote
1answer
20 views

How will Proof of Stake affect blockhash generation

When (and if) Ethereum switches to proof of stake, how will the hash of blocks (most likely) be set?
1
vote
0answers
28 views

Ethereum Blocksci parser tool

I need a blocksci parser for ethereum. I am using https://github.com/citp/BlockSci for bitcoin . Is any similar blocksci parsing tool for ethereum?.
1
vote
2answers
27 views

0 txn in mined block [duplicate]

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.
1
vote
1answer
13 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
200 views

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
8 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 ...
1
vote
1answer
17 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
27 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
52 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
47 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
184 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
74 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
30 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 ...
1
vote
1answer
258 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
117 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
45 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
672 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
34 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
38 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
48 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
21 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
621 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
85 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
554 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
26 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
41 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
26 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
44 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
19 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
45 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
30 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
79 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
26 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
74 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
56 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
28 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
72 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
670 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
1k 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
232 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 ...