Skip to content

Commit

Permalink
feat: batch string method
Browse files Browse the repository at this point in the history
  • Loading branch information
ToniRamirezM committed Sep 5, 2024
1 parent 04e72fe commit a23e3f9
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-resequence.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
uses: actions/checkout@v4
with:
repository: 0xPolygon/kurtosis-cdk
ref: 6751b0eb4656abbaed7d45b40a52b2117d5440e1
ref: a48a68f7a998f4edd1b7e076c938dc450f73b891
path: kurtosis-cdk

- name: Install Kurtosis CDK tools
Expand Down
2 changes: 0 additions & 2 deletions config/default.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ MaxBatchesForL1 = 300
BlockFinality = "FinalizedBlock"
RPCURL = ""
GetBatchWaitInterval = "10s"
[SequenceSender.StreamClient]
Server = "127.0.0.1:6900"
[SequenceSender.EthTxManager]
FrequencyToMonitorTxs = "1s"
WaitTxToBeMined = "2m"
Expand Down
3 changes: 0 additions & 3 deletions sequencesender/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,6 @@ type Config struct {
// MaxPendingTx is the maximum number of pending transactions (those that are not in a final state)
MaxPendingTx uint64

// StreamClient is the config for the stream client
StreamClient StreamClientCfg `mapstructure:"StreamClient"`

// EthTxManager is the config for the ethtxmanager
EthTxManager ethtxmanager.Config `mapstructure:"EthTxManager"`

Expand Down
6 changes: 5 additions & 1 deletion sequencesender/seqsendertypes/rpcbatch/rpcbatch.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package rpcbatch

import (
"fmt"

"github.com/0xPolygon/cdk/sequencesender/seqsendertypes"
"github.com/ethereum/go-ethereum/common"
)
Expand Down Expand Up @@ -108,7 +110,9 @@ func (b *RPCBatch) SetL1InfoTreeIndex(index uint32) {

// String
func (b *RPCBatch) String() string {
return "RPCBatch"
return fmt.Sprintf("Batch/RPC: LastCoinbase: %s, ForcedBatchTimestamp: %d, ForcedGlobalExitRoot: %x, ForcedBlockHashL1: %x, L2Data: %x, LastL2BLockTimestamp: %d, BatchNumber: %d, GlobalExitRoot: %x, L1InfoTreeIndex: %d",
b.LastCoinbase().String(), b.ForcedBatchTimestamp(), b.ForcedGlobalExitRoot().String(), b.ForcedBlockHashL1().String(), b.L2Data(), b.LastL2BLockTimestamp(), b.BatchNumber(), b.GlobalExitRoot().String(), b.L1InfoTreeIndex(),
)
}

// IsClosed
Expand Down

0 comments on commit a23e3f9

Please sign in to comment.