mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-28 14:47:16 +00:00
clean (#599)
This commit is contained in:
parent
eab2010195
commit
c7cf5b6530
@ -247,9 +247,6 @@ func NewDecompressor(compressedFile string) (*Decompressor, error) {
|
||||
i += uint64(n)
|
||||
poss = append(poss, pos)
|
||||
}
|
||||
if posMaxDepth > 31 {
|
||||
fmt.Printf("alex: %d\n", posMaxDepth)
|
||||
}
|
||||
|
||||
if dictSize > 0 {
|
||||
var bitLen int
|
||||
|
@ -600,7 +600,6 @@ type HistoryContext struct {
|
||||
}
|
||||
|
||||
func (h *History) MakeContext() *HistoryContext {
|
||||
fmt.Printf("a: %d-%d\n", h.InvertedIndex.files.Len(), h.files.Len())
|
||||
var hc = HistoryContext{h: h}
|
||||
hc.indexFiles = btree.NewG[*ctxItem](32, ctxItemLess)
|
||||
h.InvertedIndex.files.Ascend(func(item *filesItem) bool {
|
||||
|
@ -287,8 +287,6 @@ func (hc *HistoryContext) iterateHistoryBeforeTxNum(fromKey, toKey []byte, txNum
|
||||
}
|
||||
|
||||
func (hc *HistoryContext) Iterate(txNumFrom, txNumTo uint64, f func(txNum uint64, k, v []byte) error) {
|
||||
fmt.Printf("alex11: %d-%d\n", txNumFrom, txNumTo)
|
||||
fmt.Printf("alex12: %d\n", hc.historyFiles.Len())
|
||||
hc.historyFiles.Ascend(func(item *ctxItem) bool {
|
||||
if item.endTxNum < txNumFrom {
|
||||
return true
|
||||
|
Loading…
Reference in New Issue
Block a user