Skip to content

Commit

Permalink
Reduce ETX expiration age
Browse files Browse the repository at this point in the history
Since we take a snapshot of the EtxSet after every block, the longer an
ETX stays in the EtxSet, the more its storage requirements compound.
Since we do not yet have pruning/gc for EtxSets, we need to reduce the
ETX expiration age for now. One day, pruning will obviate the need for
this.
  • Loading branch information
wizeguyy committed Apr 18, 2023
1 parent d9fd2ac commit 84ec40c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/types/etx_set.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
)

const (
EtxExpirationAge = 8640 // With 10s blocks, ETX expire after ~24hrs
EtxExpirationAge = 100 // With 10s blocks, ETX expire after ~24hrs
)

// The EtxSet maps an ETX hash to the ETX and block number in which it became available.
Expand Down

0 comments on commit 84ec40c

Please sign in to comment.