mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-06 01:32:18 +00:00
3bd52dc116
Former-commit-id: 79d9091f883f99d819cb73a862e4925cea309931 [formerly 0307849b5b99bd4d08fbd4a9986b729640bf2319] Former-commit-id: f950a1554d82d54ce981ce22c4e5639093428c56
29 lines
757 B
Go
29 lines
757 B
Go
// Package txpool handles incoming transactions for a sharded Ethereum blockchain.
|
|
package txpool
|
|
|
|
import (
|
|
"github.com/ethereum/go-ethereum/log"
|
|
"github.com/ethereum/go-ethereum/sharding"
|
|
)
|
|
|
|
// ShardTXPool handles a transaction pool for a sharded system.
|
|
type ShardTXPool struct {
|
|
p2p sharding.ShardP2P
|
|
}
|
|
|
|
// NewShardTXPool creates a new observer instance.
|
|
func NewShardTXPool(p2p sharding.ShardP2P) (*ShardTXPool, error) {
|
|
return &ShardTXPool{p2p}, nil
|
|
}
|
|
|
|
// Start the main routine for a shard transaction pool.
|
|
func (p *ShardTXPool) Start() {
|
|
log.Info("Starting shard txpool service")
|
|
}
|
|
|
|
// 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
|
|
}
|