Skip to content

Commit

Permalink
DEBUG: trimming seems to work but some issues
Browse files Browse the repository at this point in the history
  • Loading branch information
gameofpointers committed Nov 4, 2024
1 parent 0dde5b7 commit 081dd5b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
12 changes: 6 additions & 6 deletions core/types/utxo.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ func init() {
Denominations[14] = big.NewInt(1000000000) // 1000000 Qi

TrimDepths = make(map[uint8]uint64)
TrimDepths[0] = 720 // 2 hours
TrimDepths[1] = 720 // 2 hours
TrimDepths[2] = 1080 // 3 hours
TrimDepths[3] = 1080 // 3 hours
TrimDepths[4] = 2160 // 6 hours
TrimDepths[5] = 4320 // 12 hours
TrimDepths[0] = 20 // 2 hours
TrimDepths[1] = 50 // 2 hours
TrimDepths[2] = 70 // 3 hours
TrimDepths[3] = 90 // 3 hours
TrimDepths[4] = 110 // 6 hours
TrimDepths[5] = 130 // 12 hours
}

type TxIns []TxIn
Expand Down
3 changes: 1 addition & 2 deletions params/protocol_params.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,7 @@ const (
NewConversionLockPeriod uint64 = 7200
MinQiConversionDenomination = 10
ConversionConfirmationContext = common.PRIME_CTX // A conversion requires a single coincident Dom confirmation
SoftMaxUTXOSetSize = math.MaxInt // The soft maximum number of UTXOs that can be stored in the UTXO set
MinimumTrimDepth = math.MaxInt // The minimum block depth of the chain to begin trimming
MinimumTrimDepth = 0 // The minimum block depth of the chain to begin trimming
QiToQuaiConversionGas = 100000 // The gas used to convert Qi to Quai
DefaultCoinbaseLockup = 0 // The default lockup byte for coinbase rewards
)
Expand Down

0 comments on commit 081dd5b

Please sign in to comment.