mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-08 10:41:19 +00:00
fc40d603c0
Former-commit-id: e95f66b509da5b24054415c15642fd952728a193 [formerly 1f8c4e6ad036cddb162a5588696d44d648f7d5eb] Former-commit-id: 2897e7c38f227a4f8cd0456cb6fc904ecddeb71f
27 lines
682 B
Go
27 lines
682 B
Go
// Package txpool handles incoming transactions for a sharded Ethereum blockchain.
|
|
package txpool
|
|
|
|
import (
|
|
"github.com/ethereum/go-ethereum/log"
|
|
)
|
|
|
|
// ShardTXPool handles a transaction pool for a sharded system.
|
|
type ShardTXPool struct{}
|
|
|
|
// NewShardTXPool creates a new observer instance.
|
|
func NewShardTXPool() (*ShardTXPool, error) {
|
|
return &ShardTXPool{}, nil
|
|
}
|
|
|
|
// Start the main routine for a shard transaction pool.
|
|
func (p *ShardTXPool) Start() error {
|
|
log.Info("Starting shard txpool service")
|
|
return nil
|
|
}
|
|
|
|
// Stop the main loop for a transaction pool in the shard network.
|
|
func (p *ShardTXPool) Stop() error {
|
|
log.Info("Stopping shard txpool service")
|
|
return nil
|
|
}
|