mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-08 10:41:19 +00:00
3861c0cf06
Former-commit-id: 0ecc597de035e61ca219f4f30695cb8db59c129b [formerly da9312c1c9d69010083f94f387fe6a52aa817683] Former-commit-id: 8c8c218e16ef248ae8954168cf7bf5aa6ed6839d
30 lines
775 B
Go
30 lines
775 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() 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
|
|
}
|