From c458409fef660f0611c9c47fa01e7c2d4679fd7a Mon Sep 17 00:00:00 2001 From: billettc Date: Tue, 3 Oct 2023 13:02:48 -0400 Subject: [PATCH] new start block --- accountresolver/bundlerreader.go | 2 +- cmd/firesol/tablelookup.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/accountresolver/bundlerreader.go b/accountresolver/bundlerreader.go index bff02085..1ab138d4 100644 --- a/accountresolver/bundlerreader.go +++ b/accountresolver/bundlerreader.go @@ -112,7 +112,7 @@ func (r *BundleReader) fillBuffer() error { if len(data) < bstream.GetBlockWriterHeaderLen { return fmt.Errorf("one-block-file corrupt: expected header size of %d, but file size is only %d bytes", bstream.GetBlockWriterHeaderLen, len(data)) } - //data = data[bstream.GetBlockWriterHeaderLen:] + data = data[:bstream.GetBlockWriterHeaderLen] r.readBuffer = data r.readBufferOffset = 0 diff --git a/cmd/firesol/tablelookup.go b/cmd/firesol/tablelookup.go index 408f4cfe..c7d20f93 100644 --- a/cmd/firesol/tablelookup.go +++ b/cmd/firesol/tablelookup.go @@ -56,7 +56,7 @@ func processAddressLookupE(chain *firecore.Chain[*pbsolv1.Block], logger *zap.Lo if cursor == nil { logger.Info("No cursor found, starting from beginning") - cursor = accountsresolver.NewCursor(154655004) + cursor = accountsresolver.NewCursor(154_654_999) } fmt.Println("Cursor", cursor)