prysm-pulse/sharding/txpool/service.go
Raul Jordan fc40d603c0 sharding: define empty p2p and txpool services
Former-commit-id: e95f66b509da5b24054415c15642fd952728a193 [formerly 1f8c4e6ad036cddb162a5588696d44d648f7d5eb]
Former-commit-id: 2897e7c38f227a4f8cd0456cb6fc904ecddeb71f
2018-06-04 17:10:59 -04:00

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
}