safemempool

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 3, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Props

type Props struct {
}

Props ...

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service ...

func New

func New(props *Props) (*Service, error)

New ...

func (*Service) AddTx

func (s *Service) AddTx(tx *statechain.Transaction) error

AddTx ...

func (*Service) GatherPendingTransactions

func (s *Service) GatherPendingTransactions() ([]*statechain.Transaction, error)

GatherPendingTransactions ...

func (*Service) GetHeadBlock

func (s *Service) GetHeadBlock() (mainchain.Block, error)

GetHeadBlock ...

func (*Service) GetPendingMainchainBlocks

func (s *Service) GetPendingMainchainBlocks() ([]*mainchain.Block, error)

GetPendingMainchainBlocks ...

func (*Service) GetTx

func (s *Service) GetTx(hash string) (*statechain.Transaction, error)

GetTx ...

func (*Service) GetTxs

func (s *Service) GetTxs(hashes []string) ([]*statechain.Transaction, error)

GetTxs ...

func (*Service) HasTx

func (s *Service) HasTx(hash string) (bool, error)

HasTx ...

func (*Service) Props

func (s *Service) Props() Props

Props ...

func (*Service) RemovePendingMainchainBlock

func (s *Service) RemovePendingMainchainBlock(blockHash string) error

RemovePendingMainchainBlock ...

func (*Service) RemovePendingMainchainBlocks

func (s *Service) RemovePendingMainchainBlocks(blockHashes []string) error

RemovePendingMainchainBlocks ...

func (*Service) RemoveTx

func (s *Service) RemoveTx(hash string) error

RemoveTx ...

func (*Service) RemoveTxs

func (s *Service) RemoveTxs(hashes []string) error

RemoveTxs ...

func (*Service) SetHeadBlock

func (s *Service) SetHeadBlock(block *mainchain.Block) error

SetHeadBlock ...

func (*Service) SetPendingMainchainBlock

func (s *Service) SetPendingMainchainBlock(block *mainchain.Block) error

SetPendingMainchainBlock ...

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL