Questions tagged [state-trie-pruning]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
71 views

How to run a pruned node?

I want to run a pruned node. If this correct that I'll have to bootstrap a full node first, and completely, in order to become able to then prune it? A full node size is around 900Gb - 1Tb, right? And ...
Iguacu's user avatar
  • 1
0 votes
0 answers
177 views

GETH: Faster Dirty cache flushing to resist larger syncs on geth crashes (small POA network)

i'm currently running a set of 3x miner nodes, 2x RPC nodes and 1 bootnode on an AWS cluster (Proof of authority nodes) using GETH. What i've noticed is that due to very small traffic on my network , ...
anthonyoliai's user avatar
0 votes
0 answers
226 views

What data do you lose when you prune Geth?

I am reading the hardware requirement for Geth here and I noticed this portion: At the time of writing (September 2022) a 2TB SSD is recommended for a full node running Geth and a consensus client. ...
Finlay Weber's user avatar
1 vote
0 answers
229 views

Is it possible to prune ethereum full node without having to stop geth client?

Does anyone know how to prune ethereum geth full node for an application which requires a non-stop running full node ?somehow like the way bitcoin does pruning ( removing older blocks automatically ...
Mia mhm's user avatar
  • 11
1 vote
1 answer
155 views

State trie pruning and synching, how does that work?

how does state trie prunning works during syncing? or does pruning only happens on the nodes that is not the state root? since if state root are deleted then there will be errors in the blocks and it ...
curiousJorgeXX's user avatar
1 vote
1 answer
755 views

Is there Blocks Pruning in ethereum clients specialy geth? (and other questions)

Is there Blocks pruning in ethereum clients such as geth and how does that work? by pruning I meant, does the blocks information whether stored in DB like in cpp-ethereum are deleted if the ...
curiousJorgeXX's user avatar
1 vote
0 answers
43 views

Can the Ethereum network work only with pruned nodes?

So if I got state trie pruning correctly, pruned nodes download all the block headers (so that they can check the PoW of the chain), the transactions of the last k (say 100) blocks (to resist against ...
JacopoStanchi's user avatar
6 votes
1 answer
712 views

I can no longer access old blocks via RPC in full syncmode?

I have a private network based on geth v1.9.25. I upgraded from v1.8.27. Recently, I saw that I'm unable to access the previous blocks at all. Like, e.g. eth.getBlockByNumber(1) gives me null, even ...
ystark's user avatar
  • 205
2 votes
1 answer
1k views

How to Make Geth 1.9+ Full Node to Trace Ancient Blocks?

I have full-synced a Geth 1.9.9 node but my requests including ancient blocks erroring. I know this is because of state-pruning but I wonder how to enable tracing for an ancient block so it returns ...
ferit's user avatar
  • 507
2 votes
2 answers
365 views

Upgrade a fully synced node to archive node?

Is it possible to upgrade a fully synced node to archive node ? means can i download older states by changing gcmode to archive ? or i will have to start from scratch ?
Bijoy's user avatar
  • 33
4 votes
1 answer
603 views

Ethereum pruning: What if no archival node existed?

I was reading about pruning in Ethereum which is basically a way to run a full node without needing to keep over 1TB of blockchain data. To my understanding, the whole blockchain exists but only keeps ...
Panos's user avatar
  • 173
1 vote
1 answer
789 views

What are the benefits of ethereum 'archive' sync mode and who should use it?

We have set up a private Ethereum node for our blockchain application connected to the mainnet. The node runs on a server with 2TB SSD, 4 CPU and 6GB memory. It's been syncing for about a week and is ...
Dcompoze's user avatar
  • 387
1 vote
0 answers
91 views

Custom Merkle Patricia Tree

One of the requirements of building our company's DApp is to maintain a separate, custom Merkle Patricia Tree that contain's data from our company's platform only. The Tree needs all CRUD operations ...
syumdev's user avatar
  • 11
1 vote
0 answers
64 views

What portions of the block are validated in Geth's --fast and Parity's --warp mode?

When I am syncing an Ethereum node using Geth's --fast mode and Parity's --warp mode, what portions of the block are being validated as they are being downloaded? I understand that --fast and --warp ...
Julian Martinez's user avatar
1 vote
0 answers
831 views

How to make geth keep states for the last 10000 blocks instead of 128

If I understand it correctly, geth preserves states for the last 128 blocks and prunes states for all other blocks. I would like to keep states for a bigger number of last blocks, say 10000 blocks. Is ...
Monty Chain's user avatar
1 vote
1 answer
61 views

Reference a long-forgoten account

In the Etherem Blog Vitalik says: "but we do not store history older than 5000 blocks.". 1) Is it to be understood that the state Trie does not contain the state of accounts which were not in use ...
Vega4's user avatar
  • 313
6 votes
1 answer
3k views

Full node sync only preserve the last 128 history states

While researching on the different sync modes and their behaviors, I learned that geth full sync will replay all transactions from the genesis and preserve all history states, while fast sync will ...
xiaoyao's user avatar
  • 273
2 votes
1 answer
415 views

Merkle tree child hashing process

Each non leaf node of a Merkle tree is just the hash of the concatenation of it's children. Does this literally mean stick the 2 hashes together or is there a more intricate process involved? i.e. ...
jamarcus_13's user avatar
3 votes
0 answers
1k views

Questions about geth state tree pruning [closed]

In current geth, how long (in terms of blocks) will a state tree node put into the death row before being pruned? Does this vary among different sync mode? And can we configure it? Besides state ...
thpun's user avatar
  • 39
2 votes
0 answers
1k views

Geth traceTransaction: missing trie node [duplicate]

I have a fully synced Geth node and am trying to run the debug.traceTransaction() method, but it keeps giving me this error: Error: missing trie node ...
mgalka's user avatar
  • 253
2 votes
1 answer
2k views

Speed of syncing the chain in parity using archive pruning mode

I am using parity v1.7.0-beta-5f2cabd-20170727 and I sync with ethereum chain in archive mode in order to keep all states of smart contracts. The command i use to launch parity is parity --pruning ...
Ezy's user avatar
  • 123
1 vote
1 answer
117 views

What does State Trie save when pushing into array?

I'm interested/worried about the size of the State Trie over time Lets suppose I have a contract with two vars: uint myNumber; uint[] myArray; As far as I understand, If I change the value of "...
BiS's user avatar
  • 533
2 votes
1 answer
127 views

Why does the blockchain store multiple copies of the same code?

Based on joeykrug's questions on Github: Is there any reason we need to store multiple copies of code if the same contracts use the same code? For example, if a contract is deployed and another ...
eth's user avatar
  • 85.1k
4 votes
1 answer
152 views

Syncing a fraction of the blockchain

I have a few questions about the way the blockchain syncs. I noticed on a couple of posts while researching that it's possible to start the block chain from a certain block. It was suggested that if ...
Cameron Dixon's user avatar
3 votes
0 answers
406 views

Do I have to set pruning to archive for supportive full node

I run a parity node on a server of mine (with a lot of resources and bandwidth) for the sole reason of supporting the network. I don't have any accounts there since my funds are on another machine. ...
Martin's user avatar
  • 131
8 votes
1 answer
3k views

Is there a dynamic pruning in geth --fast?

Once i've downloaded the blockchain with geth --fast , is there a dynamic pruning on the up-comings blocks, or will I archive all the blocks from where I stand?
yoregis's user avatar
  • 1,242
17 votes
1 answer
382 views

Can Ethereum be pruned to the extent that it could be run from a Raspberry Pi?

What are the limits to how much the ETH blockchain can be pruned. Will ETH ever be practical on devices with limited resources such as a Raspberry Pi, Android or iOS wallet?
guesswhoiam's user avatar
16 votes
2 answers
12k views

What is the parity light pruning mode?

Parity offers four different pruning methods: archive, basic, fast and light: --pruning METHOD Configure pruning of the state/storage trie. METHOD may be one of ...
q9f's user avatar
  • 32.8k
4 votes
0 answers
525 views

How does ethereum keep track of changes on smart contract storage? [closed]

I'm aware that ethereum has essentially 3 tree-like structures: State data Receipts data Chain data As I've just learned from this question, contract storage resides on state data tree. Digging ...
Henrique Barcelos's user avatar
4 votes
1 answer
909 views

Can I do a pruned fast sync?

I would like to do a fast bootstrap of the Ethereum blockchain with minimal disk space usage. Can geth do a pruned fast sync?
Randomblue's user avatar
  • 2,600
14 votes
1 answer
4k views

Why isn't fast sync the default?

As I understand, fast sync has all the security guarantees of a full sync, but is faster. Is that correct? If so, why isn't fast sync the default?
Randomblue's user avatar
  • 2,600
23 votes
2 answers
4k views

Difference between a pruned and unpruned blockchain

At the Berlin Blockchain Meetup, Gustav Simonsson teased the Homestead release coming soon (tm) and we were discussing blockchain bloat and the current size of the Ethereum blockchain. We discussed ...
q9f's user avatar
  • 32.8k
11 votes
2 answers
217 views

How dependent is the ethereum client on the router and DNS being trusted?

Another way to put it: what is the root of trust for a full client on a network that has a potentially untrusted (or "owned") router+DNS? As I was going through the ethereum wiki semi-randomly, I ...
sitaram's user avatar
  • 213
5 votes
1 answer
416 views

How can we conserve disk space or compress the blockchain?

The blockchain is eating into my macs disk space. Will there be a way in the future to compress it or redirect to an external hard drive?
stangrotic's user avatar
18 votes
1 answer
4k views

What is state-trie pruning and how does it work?

Several sources mention the idea of state-trie pruning. What is that, and is it currently being implemented on the network? Is this a manual process or can it be done automatically? If Ethereum is ...
high110's user avatar
  • 4,746
172 votes
8 answers
131k views

What are the Ethereum disk space needs?

How fast is Ethereum blockchain growing and how big is it likely to get in the future? Is it still about 1 GB per month? Are there any data pruning or compression algorithms in place or planned to be ...
Domchi's user avatar
  • 1,821