@@ -923,7 +923,7 @@ func getBatchPoster(
923923 l1Reader * headerreader.HeaderReader ,
924924 inboxTracker * InboxTracker ,
925925 txStreamer * TransactionStreamer ,
926- arbOSVersionGetter execution.ArbOSVersionGetter ,
926+ exec execution.ExecutionBatchPoster ,
927927 arbDb ethdb.Database ,
928928 syncMonitor * SyncMonitor ,
929929 deployInfo * chaininfo.RollupAddresses ,
@@ -933,8 +933,8 @@ func getBatchPoster(
933933) (* BatchPoster , error ) {
934934 var batchPoster * BatchPoster
935935 if config .BatchPoster .Enable {
936- if arbOSVersionGetter == nil {
937- return nil , errors .New ("batch poster requires ArbOS version getter " )
936+ if exec == nil {
937+ return nil , errors .New ("batch poster requires an execution batch poster " )
938938 }
939939
940940 if txOptsBatchPoster == nil && config .BatchPoster .DataPoster .ExternalSigner .URL == "" {
@@ -949,7 +949,7 @@ func getBatchPoster(
949949 L1Reader : l1Reader ,
950950 Inbox : inboxTracker ,
951951 Streamer : txStreamer ,
952- VersionGetter : arbOSVersionGetter ,
952+ VersionGetter : exec ,
953953 SyncMonitor : syncMonitor ,
954954 Config : func () * BatchPosterConfig { return & configFetcher .Get ().BatchPoster },
955955 DeployInfo : deployInfo ,
@@ -1056,7 +1056,7 @@ func createNodeImpl(
10561056 executionClient execution.ExecutionClient ,
10571057 executionSequencer execution.ExecutionSequencer ,
10581058 executionRecorder execution.ExecutionRecorder ,
1059- arbOSVersionGetter execution.ArbOSVersionGetter ,
1059+ executionBatchPoster execution.ExecutionBatchPoster ,
10601060 arbDb ethdb.Database ,
10611061 configFetcher ConfigFetcher ,
10621062 l2Config * params.ChainConfig ,
@@ -1153,7 +1153,7 @@ func createNodeImpl(
11531153 return nil , err
11541154 }
11551155
1156- batchPoster , err := getBatchPoster (ctx , config , configFetcher , txOptsBatchPoster , dapWriter , l1Reader , inboxTracker , txStreamer , arbOSVersionGetter , arbDb , syncMonitor , deployInfo , parentChainID , dapReaders , stakerAddr )
1156+ batchPoster , err := getBatchPoster (ctx , config , configFetcher , txOptsBatchPoster , dapWriter , l1Reader , inboxTracker , txStreamer , executionBatchPoster , arbDb , syncMonitor , deployInfo , parentChainID , dapReaders , stakerAddr )
11571157 if err != nil {
11581158 return nil , err
11591159 }
@@ -1308,7 +1308,7 @@ func CreateNodeFullExecutionClient(
13081308 executionClient execution.ExecutionClient ,
13091309 executionSequencer execution.ExecutionSequencer ,
13101310 executionRecorder execution.ExecutionRecorder ,
1311- arbOSVersionGetter execution.ArbOSVersionGetter ,
1311+ executionBatchPoster execution.ExecutionBatchPoster ,
13121312 arbDb ethdb.Database ,
13131313 configFetcher ConfigFetcher ,
13141314 l2Config * params.ChainConfig ,
@@ -1322,10 +1322,10 @@ func CreateNodeFullExecutionClient(
13221322 blobReader daprovider.BlobReader ,
13231323 latestWasmModuleRoot common.Hash ,
13241324) (* Node , error ) {
1325- if (executionClient == nil ) || (executionSequencer == nil ) || (executionRecorder == nil ) || (arbOSVersionGetter == nil ) {
1326- return nil , errors .New ("execution client, sequencer, recorder, and ArbOS version getter must be non-nil" )
1325+ if (executionClient == nil ) || (executionSequencer == nil ) || (executionRecorder == nil ) || (executionBatchPoster == nil ) {
1326+ return nil , errors .New ("execution client, sequencer, recorder, and batch poster must be non-nil" )
13271327 }
1328- currentNode , err := createNodeImpl (ctx , stack , executionClient , executionSequencer , executionRecorder , arbOSVersionGetter , arbDb , configFetcher , l2Config , l1client , deployInfo , txOptsValidator , txOptsBatchPoster , dataSigner , fatalErrChan , parentChainID , blobReader , latestWasmModuleRoot )
1328+ currentNode , err := createNodeImpl (ctx , stack , executionClient , executionSequencer , executionRecorder , executionBatchPoster , arbDb , configFetcher , l2Config , l1client , deployInfo , txOptsValidator , txOptsBatchPoster , dataSigner , fatalErrChan , parentChainID , blobReader , latestWasmModuleRoot )
13291329 if err != nil {
13301330 return nil , err
13311331 }
@@ -1386,7 +1386,7 @@ func (n *Node) Start(ctx context.Context) error {
13861386 if n .InboxTracker != nil && n .BroadcastServer != nil {
13871387 // Even if the sequencer coordinator will populate this backlog,
13881388 // we want to make sure it's populated before any clients connect.
1389- err = n .InboxTracker .PopulateFeedBacklog (ctx , n .BroadcastServer )
1389+ err = n .InboxTracker .PopulateFeedBacklog (n .BroadcastServer )
13901390 if err != nil {
13911391 return fmt .Errorf ("error populating feed backlog on startup: %w" , err )
13921392 }
@@ -1556,8 +1556,8 @@ func (n *Node) GetBatchParentChainBlock(seqNum uint64) containers.PromiseInterfa
15561556 return containers .NewReadyPromise (n .InboxTracker .GetBatchParentChainBlock (seqNum ))
15571557}
15581558
1559- func (n * Node ) WriteMessageFromSequencer (pos arbutil.MessageIndex , msgWithInfo arbostypes.MessageWithMetadataAndBlockInfo ) containers.PromiseInterface [struct {}] {
1560- err := n .TxStreamer .WriteMessageFromSequencer (pos , msgWithInfo )
1559+ func (n * Node ) WriteMessageFromSequencer (pos arbutil.MessageIndex , msgWithMeta arbostypes.MessageWithMetadata , msgResult execution. MessageResult , blockMetadata common. BlockMetadata ) containers.PromiseInterface [struct {}] {
1560+ err := n .TxStreamer .WriteMessageFromSequencer (pos , msgWithMeta , msgResult , blockMetadata )
15611561 return containers .NewReadyPromise (struct {}{}, err )
15621562}
15631563
0 commit comments