Commit 00950152 authored by Roberto Bayardo's avatar Roberto Bayardo Committed by GitHub

export ChannelBuilder so we can use it in external analysis scripts (#9784)

parent 1786bce8
...@@ -12,7 +12,7 @@ import ( ...@@ -12,7 +12,7 @@ import (
"github.com/ethereum/go-ethereum/log" "github.com/ethereum/go-ethereum/log"
) )
// channel is a lightweight wrapper around a channelBuilder which keeps track of pending // channel is a lightweight wrapper around a ChannelBuilder which keeps track of pending
// and confirmed transactions for a single channel. // and confirmed transactions for a single channel.
type channel struct { type channel struct {
log log.Logger log log.Logger
...@@ -20,7 +20,7 @@ type channel struct { ...@@ -20,7 +20,7 @@ type channel struct {
cfg ChannelConfig cfg ChannelConfig
// pending channel builder // pending channel builder
channelBuilder *channelBuilder channelBuilder *ChannelBuilder
// Set of unconfirmed txID -> frame data. For tx resubmission // Set of unconfirmed txID -> frame data. For tx resubmission
pendingTransactions map[txID]txData pendingTransactions map[txID]txData
// Set of confirmed txID -> inclusion block. For determining if the channel is timed out // Set of confirmed txID -> inclusion block. For determining if the channel is timed out
...@@ -35,7 +35,7 @@ type channel struct { ...@@ -35,7 +35,7 @@ type channel struct {
} }
func newChannel(log log.Logger, metr metrics.Metricer, cfg ChannelConfig, rollupCfg *rollup.Config) (*channel, error) { func newChannel(log log.Logger, metr metrics.Metricer, cfg ChannelConfig, rollupCfg *rollup.Config) (*channel, error) {
cb, err := newChannelBuilder(cfg, *rollupCfg) cb, err := NewChannelBuilder(cfg, *rollupCfg)
if err != nil { if err != nil {
return nil, fmt.Errorf("creating new channel: %w", err) return nil, fmt.Errorf("creating new channel: %w", err)
} }
......
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment