Questions tagged [blocks]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
17 views

If you are a miner can you accept your own transactions at no cost?

Let us say I am a miner. Can I accept my transactions into the blockchain at no fee to myself? And what do I lose? Let us assume someone is running a dapp. Can they mine transactions of that dapp to ...
0
votes
0answers
5 views

Can't manage to send transactions on following block

I have a web socket subscription to binance smart chain, which triggers an event every time a new block is issued. Once a new block number n is issued, I send a transaction and expect it to be mined ...
1
vote
2answers
76 views

Can you use block times as a measure of duration?

I have read that it takes about 12 seconds for an ethereum block to be mined. Let’s us say I have a contract mined on block 100, can I set a function that can only be run at block 200 or more? Thus ...
0
votes
0answers
7 views

Running --no-ancient-blocks on a synced node

I have an up to date OpenEthereum node that is taking a long time to sync it's ancient blocks, Which has left it syncing a batch of ancient blocks, while falling behind, then syncing up to date. Put ...
1
vote
0answers
18 views

Able to Produce Blocks but Still Balance is Zero

Kindly find the following results below from my Mac Terminal: miner.start(1) --> null miner.stop() --> null eth.getBalance(eth.accounts[0]) --> 350000000000000000000 eth.syncing --> ...
0
votes
1answer
11 views

How the maker ensured the transaction was placed at a certain point within the same block?

I was observing the MARSH allocation recently and found a bot behavior of extreme luck. One single transaction outperformed many others and the maker paid 101 ETH to the miner for a single transaction....
0
votes
1answer
25 views

What is the purpose of setting web3.eth.Contract.defaultBlock?

In web3 object, the default value of web3.eth.Contract.defaultBlock is always "latest". But what could be the case to modify defaultBlock value? Thanks
1
vote
0answers
11 views

Can block timestamp be smaller than the time a transaction has been sent?

I have seen cases where the time that I sent my transaction (logged on local PC) is actually 'later' (by 10s of seconds) than the block.timestamp of the block that my transaction entered. I checked if ...
1
vote
0answers
21 views

If a block header is 80bytes, then why does a full node need ~100GB of storage

So, I'm a little confused about how data is stored in a block. If You can get the state of all accounts from the State Root of a block header, then that means that you can get the state of every ...
0
votes
0answers
13 views

Geth/Parity node - When is a new block imported

Based on my observations and also on block-timestamps-vs-received-timestamp, I suppose that a block "n" is imported into geth or parity node, only after a block "n+1" is mined. Is ...
0
votes
0answers
16 views

From what source does etherscan.io aggregate and broadcast data that appears on the blockchain ledger?

as blocks are hashed together as transactions pile up and are broadcasted on the Ethereum blockchain, how exactly does the website etherscan.io in turn publish and broadcast all that information in ...
0
votes
0answers
13 views

Locating the block my miner found?

I am using PhoenixMiner on Nanopool. It notes in the past week (2/10-2/17) I had a maximum reported share of 209622.1TH. I assume this share produced a block provided the average difficulty this week ...
0
votes
1answer
39 views

Reduce gas costs with longer block confirmation times (like in Bitcoin)

In Bitcoin, fees tend to decrease as you target longer block confirmation times. For example, a standard transaction with 1 input and 2 outputs has a fee of approx. $3.06 for confirmation within 6 ...
0
votes
1answer
12 views

ROPSTEN: Duplicate Blocks adding transactions using Geth Real-Time Event API

I'm using the Geth Real-Time Event to get the new blocks via web-socket and there's a subscription called "newHeads" for that propose. The thing is sometimes the socket returns a duplicate ...
0
votes
1answer
16 views

How to handle forks, dropped/reverted blocks

I'm building an ethereum wallet, I've setup geth. I'm planning to subscribe to new transactions on geth websocket, I can't figure out how to deal with dropped blocks and hardfork. let's say a user ...
0
votes
0answers
45 views

Can a single transaction use up all the block gas limit?

The current Ethereum block gas limit is ~12M, I see 100+ transactions are added per block on average. My question is can a single transaction use up all the Block gas limit (~12M) or miners will ...
0
votes
1answer
21 views

How are difficulty of finding a proof of work dynamically regulated without a central body? [duplicate]

The probability of a miners to mine a block dynamically changes so that blocks are mined at regular intervals.How does block chains accomplish this without a central regulating body,
1
vote
1answer
148 views

Ethereum block timestamp

Is the timestamp of a block referring to the time that block is created or when it's mined by a miner? Suppose I subscribe to new incoming blocks using the following NodeJS code (with web3): web3.eth....
0
votes
0answers
49 views

is it possible to change block' gas limit?

I'm trying to execute some heavy transactions. Before execute it, Remix advises me about the gas limit: Ok, then I change my gas limit on Metamask to 9,000,000 (I'm on Ropsten network): And finally, ...
1
vote
1answer
29 views

Failed mined transactions

Is transaction "status" flagged inside the block when it's mined? Like if a transaction is mined but failed due to out of gas or not meeting contract conditions, is the transaction marked as ...
1
vote
1answer
296 views

Ropsten “exceeds block gas limit”

I am on GETH, 1.9.23 and I have had a smart contract running for more than 3 months now. Suddenly, all transaction failed with "exceeds block gas limit". I checked the Ropsten Testnet and ...
1
vote
1answer
32 views

where is receipt tree stored?

Simple question. I know that state trie is stored in each node's drive. but they are not stored on actual state. Question 1) What about receipt tree ? do they get stored separately too from the chain ...
0
votes
1answer
28 views

in which currency does state trie's balance is stored?

My question is very simple and I couldn't find the answer for it. There's a state trie in ethereum. Each state trie has address as key and value as an object which has balance as one of the keys. I am ...
0
votes
0answers
145 views

Truffle - multiple transactions per block

i try to simulate a large transaction load and therefore want to execute multiple transactions in a truffle test. I changed the block-time to five seconds and generate the transactions, but only one ...
0
votes
0answers
9 views

How to read the Ethereum Block header and check contract

I have downloaded some Ethereum block headers, such is one example (omitted some details for conciseness): {"difficulty": 7314508281338, "extraData": "...
0
votes
1answer
32 views

Is Ethereum blockchain really temper proof or immutable?

Suppose there is a user A which transfers some ethers to user B through a proper transaction. So is it possible to alter the transaction. Something like going back to the block which contains the ...
0
votes
1answer
13 views

Cost at block number

Is their any API available that gets me the price of Eth in USD for example at a particular blocknumber?
1
vote
1answer
53 views

A way to capture actual gas used per transaction

Two questions, related: Is the getGasUsed() on the TransactionReceipt truly the actual gas used, not the gasLimit or the gas estimate? Looks like it but... Is the actual gas used obtainable ("...
1
vote
0answers
22 views

Generating blocks without mining,

I have private test network, and I need to simulate forks. Is any possibility to immediately set number block fork-1 (in PoA or any other protocol) ? If yes, what is the easiest way to do it ??
1
vote
1answer
38 views

State Changes within a Block

I read somewhere that the 'state' is only updated at the end of each block. I've also read that each block contains a specific sequence of transactions, and thus implicitly 'updates' the state within ...
2
votes
1answer
214 views

When MetaMask removes the Cancel button for a transaction?

When I start a transaction, MetaMask shows it with Cancel button. When does this Cancel button disappear? Maybe after one confirmation? After N (what is N?) confirmations?
0
votes
1answer
23 views

Uniquely identifying and lexicographically sorting transactions

Is event.blockNumber + '-' + event.logIndex unique for an Ethereum transaction (that is no two different transactions having it the same)? If not, is event.blockNumber + '-' + event.logIndex + event....
0
votes
1answer
31 views

Solo block verification

If I have one block from bitcoin blockchain. I can check that block is valid without having the previous blocks. (solo block verification) Imagine I have one block from Ethereum blokchain. Can I check ...
1
vote
0answers
33 views

is “newBlockHeaders” in web3 emits a legit block?

I'm using web3.eth.subscribe('newBlockHeaders') to track transaction I sent to the blockchain. My question is that is the block emitted from "newBlockHeaders" legit or in other words, the block has ...
1
vote
0answers
17 views

Block number as part of header rationale

It seems to me that block number is something that can be derived correctly by a node locally (from the parent block relationship). What was the purpose of including it in block header -> making it a ...
0
votes
1answer
45 views

Blockhash Minus-256 Problem [duplicate]

What is meant by Blockhash Minus-256 Problem? I am reading an article at: Bad Randomness It talks about Blockhash Minus-256 problem but does not explain much about it. As a result I can’t ...
0
votes
1answer
105 views

Blockhash: Register the block number

I am reading the following article from a website: bad randomness In the context of Blockhash the author says: For instance, a good protocol (formulating a random trial as a “bet”) is the following: ...
2
votes
3answers
166 views

What is meant by on-chain randomness? What is the difference between on-chain and off-chain operations in the context of randomness?

I want to understand on-chain and off-chain operations in the context of randomness. Kindly provide me an example so that its clear to me. I got one post here: What are offchain and onchain ...
7
votes
1answer
949 views

How to retrieve ERC20 from a hacked address monitored by a bot?

Check it out: https://discordapp.com/channels/554623348622098432/633092550407749652/714325610050355260 The address that was hacked: https://etherscan.io/address/...
1
vote
1answer
41 views

Spending funds before the block is mined

Suppose I have an application that receives funds from users and instantly moves them into an associated cold storage account. If one of our nodes detects a transaction broadcast to one of our ...
0
votes
1answer
72 views

web3.eth.getBlock isn't triggered

Basically, i want get the callback result of first method to get each index value in pass it to the second method to scan this value, in this case is an ethereum transaction to get the input value. ...
0
votes
0answers
24 views

What’s the transaction ordering inside a block? [duplicate]

The game I found a game where each gambler needs to pay 0.02 ᴇᴛʜ to register a secret before the game before the games switch to status==reveal each day. Then, during the status==reveal period no ...
2
votes
0answers
56 views

When is a “shard block” cross-linked into a “finalized beacon block”?

In Ethereum 2.0, a shard block for being finalized needs to be linked into a finalized beacon block. Under which conditions a "shard block" cross-linked into a "finalized beacon block"? Having 2/3 of ...
3
votes
1answer
119 views

What's the difference between a Slot and a Block?

I'm running a private beacon chain with the Lighthouse client with some local validators: Mar 23 10:35:08.281 INFO Block from local validator block_slot: 13009, block_root: 0x2bab…25a6, ...
2
votes
1answer
69 views

What if a malicious validator denies to sign a new block in a shard committee in Ethereum 2.0?

In Ethereum 2.0 (Sharding Blockchain), a new block requires to be signed by all the validators as members of a committee, where blockchain has been sharded in smaller parts for supporting parallel ...
1
vote
1answer
40 views

What is the block number of the first block mined in a private blockchain network deployed on say Quorum?

I am working on POCs on Azure Blockchain Service. While working on quickstarts, I observed that while deploying my 'Hello Blockchain!' smart contract, the block number of the block mined was 34136. ...
4
votes
1answer
173 views

How transactions are selected by the miners?

The deployment of transaction executions is bounded by the block gas limit that changes dynamically. If a block fits only one transaction, then the gas limit per transaction is, in theory, the same as ...
3
votes
0answers
41 views

Blocks can't contain more than 81 transactions

I'm building a private blockchain with Parity clients. For performance testing, I'm submitting many identical transactions. One of the nodes has a GPU miner attached. There are 2 issues I cannot ...
1
vote
1answer
29 views

What is the max number of Blocks which can be created in Quorum

I have nodes running from past few days, with almost 4100+ transactions successfully completed. When i try to interact with the contracts again to add/modify details it shows error Error when ...
3
votes
2answers
344 views

How does Ethereum prevents a node from mining a block with tempered transaction?

My question is rather simple, and I found this question in the Bitcoin StackExchange that somehow relates to mine, although, for the Bitcoin Blockchain, which I'm not sure if Ethereum solves the ...

1
2 3 4 5 6