Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
YoGhurt111 committed Oct 17, 2024
1 parent ac19d34 commit 3844048
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
6 changes: 6 additions & 0 deletions packages/taiko-client/driver/chain_syncer/blob/syncer.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,12 @@ func (s *Syncer) onBlockProposed(
return fmt.Errorf("failed to fetch tx list: %w", err)
}

log.Info("TestResult",
"txListBytes", len(txListBytes),
"offset", meta.GetBlobTxListOffset(),
"length", meta.GetBlobTxListLength(),
"txListBytes", txListBytes,
)
var decompressedTxListBytes []byte
if s.rpc.L2.ChainID.Cmp(params.HeklaNetworkID) == 0 {
decompressedTxListBytes = s.txListDecompressor.TryDecompressHekla(
Expand Down
5 changes: 0 additions & 5 deletions packages/taiko-client/driver/txlist_fetcher/blob.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,6 @@ func (d *BlobFetcher) Fetch(
if err != nil {
return nil, err
}

log.Debug(
"GetBlobTxListOffset", meta.GetBlobTxListOffset(),
"BlobTxListLength", meta.GetBlobTxListLength(),
)
if meta.GetBlobTxListLength() == 0 {
return bytes[meta.GetBlobTxListOffset():], nil
}
Expand Down
8 changes: 6 additions & 2 deletions packages/taiko-client/proposer/proposer.go
Original file line number Diff line number Diff line change
Expand Up @@ -431,13 +431,17 @@ func (p *Proposer) ProposeTxListOntake(
return err
}
txListsBytesArray = append(txListsBytesArray, compressedTxListBytesA)
log.Debug("compressedTxListBytesA", len(compressedTxListBytesA))
compressedTxListBytesB, err := utils.Compress(txListBytesB)
if err != nil {
return err
}
txListsBytesArray = append(txListsBytesArray, compressedTxListBytesB)
log.Debug("compressedTxListBytesB", len(compressedTxListBytesB))
log.Info("TestResult",
"compressedTxListBytesA", len(compressedTxListBytesA),
"compressedTxListBytesB", len(compressedTxListBytesB),
"compressedTxListBytesA", compressedTxListBytesA,
"compressedTxListBytesB", compressedTxListBytesB,
)
} else {
txListBytes, err := rlp.EncodeToBytes(txs)
if err != nil {
Expand Down

0 comments on commit 3844048

Please sign in to comment.