We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [blocks]

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

42 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5
votes
1answer
31 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 ...
4
votes
0answers
74 views

Will forthcoming ability to make transactions private hide gas usage and mining information?

I understand that people are working on allowing for more private transactions on the public Ethereum mainnet. This would involve hiding (at the very least) the from, to, value and probably input ...
2
votes
0answers
67 views

How to read block propagation delay from ethstats.net?

I am wondering what is the average (or mdeian) time it takes to propagate a block in the Ethereum blockchain? I found ethstats.net provides a cummlative graph for block block propagation but do not ...
2
votes
0answers
315 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: ...
2
votes
0answers
285 views

Solidity - check PoW difficulty

If given block data and a difficulty number, is it possible to verify that the header produced is at or above the provided difficulty from within Solidity? For example, suppose I have the following ...
2
votes
0answers
121 views

Ethereum RPC equivalent of bitcoind's listsinceblock

Is it something have go-ethereum or parity similar as listsinceblock? Because iterate step by step from chosen block number/hash to actual eth.blockNumber will be very expensive operation.
2
votes
0answers
481 views

Syncing block chain

I was syncing the blockchain using something like geth --fast --cache=2000 -jitvm. It reached about block #3819000, and then it did something odd. It stopped saying "Imported x reciepts" or "...
2
votes
0answers
176 views

In a private blockchain network, can we delete the first N blocks and reassign the N+1th block as the genesis block?

I am aware of the data loss caused by deleting the first N blocks. But I am curious to know whether such a task is possible or not. If so, how to practically implement it? ( I am using go-ethereum. ...
2
votes
0answers
1k views

How to get raw binary data from ethereum blockchain?

I want to get ethereum blocks as binary data and parse them manually to get raw ethereum transactions. Are there any good manuals how to do it? UPDATE: how ethereum genesis block (at height #0) looks ...
1
vote
1answer
294 views

How to get the value of the transaction?

I am using web3.py but I need help to know the value of the transaction sent. I know that the information is stored in the input but how do I parse the string. I know nothing about ABI. Here is the ...
1
vote
0answers
41 views

How to mine a Empty Block or reject transaction?

How Can a miner can mine a empty block,reject honest transactions to be added into block ; does it mean we could tweak the miner client , if yes could someone tell how it is done and what are the ...
1
vote
1answer
21 views

Make sure I don't jump any blocks

I'm making a simple program to track transactions in and out of an address, I have a function that gets the latest block and then I run it consecutively. When I run the function sometimes the block ...
1
vote
0answers
47 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
64 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
38 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
0answers
58 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()) - ...
1
vote
1answer
36 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
44 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
0answers
154 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
0answers
168 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
0answers
41 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 ...
1
vote
3answers
178 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?
1
vote
0answers
84 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
0answers
40 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 ...
1
vote
0answers
126 views

How to determine whether block is orphaned?

I've been working on a high stakes contract, which is deployed using the web3 v1.0 library. An important condition for robustness is ensuring the contract has been confirmed 12 blocks prior (at the ...
1
vote
0answers
87 views

Uncle blocks and their Relationship to Chain Size

How much do uncle blocks affect the overall chain size? Is the amount of added security they provide for the chain comparable to how much extra data they add to the chain? If, for some reason, all ...
1
vote
0answers
242 views

How to verify whether a certain transaction is mined by the newest block programmatically?

What I thought I should do I implemented this functionality with Bitcoin Core through zmq support. Keep "my transactions" through zmq's rawtx topic. When received zmq's rawblock, decode the raw ...
1
vote
0answers
261 views

Local ethereum node contain two different blocks but with same height

I am using geth node and found 2 different block with same number eth.getBlock("0x162ae4b189f77ed65d0be270aa8dea08d4e7dcd70432a7d1fd4e6b0fb1b301d6") { difficulty: 1001546728, extraData: "...
0
votes
1answer
17 views

How do Miner choose transactions for a block?

i am wondering how a Miner chooses the transactions, he want to mine inside a block. For example, a Miner has got the Transactions T1 and T2 at the moment he starts a new mining work. This Miner is ...
0
votes
0answers
14 views

Mining pool assign blocks

I've been researching mining pools to figure out how they assign work to miners. I understand that pool would get a job from the blockchain they only has a header, dag, difficulity, probably block ...
0
votes
1answer
10 views

How to get blocks from which an adress has taken coins&

I need to undeerstand how to find out from which blocks come coins that are currently stored at somee adress.Will be pleased to hear any suggestions.
0
votes
1answer
25 views

Is there any library to estimate timestamp of future block?

I am in need of a library that estimates a date or some sort of timestamp when fed with a future block number (on mainnet or any major testnet). For instance, https://etherscan.io/block/countdown/...
0
votes
0answers
17 views

Parity synced at not existing block 4839212

I have problem with parity, cant get synchronization in archive mode to end, anything, changing arguments, max-, min-, snapshot-peers, parity verisions do not help. I have blockchain in archive mode ...
0
votes
0answers
29 views

Is latest block returned by eth.getBlockNumber fully processed

According to web3 docs, web3.eth.getBlockNumber returns the number of the most recent block. My question is simple. Is it safe to assume block's transactions and events are already in the node or ...
0
votes
0answers
45 views

What is the m_seal fields in the block header used for?

Can someone please explain what these extra fields in the block header are and what are they for? Edit: Oh, I just understood myself -- mixHash and nonse are stored here. But why is this data ...
0
votes
0answers
12 views

How to read the data from block?

In my smart contract, I am inserting plain text message. I can also update the message. After updating, if I want to see the previous message, is it possible? Can I see all the data in etherscan.io?...
0
votes
1answer
195 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 ...
0
votes
1answer
197 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
835 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
74 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 ...
0
votes
2answers
63 views

Who are the miners?

In blockchain there are some miners who calculate hash and get reward but my question is who are the miners or how can I be a miner (assume). If there are then I can be connected to a miner? I am ...
0
votes
2answers
289 views

Modify number of confirmations

By default there are 24 confirmations but I am running a testnet with just 3 miners and I would like to change this number bucause it makes not sense to have 24. I have been checking ...