disabled

package
v0.0.0-...-f23e49c Latest Latest
Warning

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

Go to latest
Published: May 28, 2021 License: GPL-3.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 Accounts

type Accounts struct {
}

Accounts is a disabled implementation of the AccountAdapter interface

func (*Accounts) AddJournalEntry

func (a *Accounts) AddJournalEntry(_ state.JournalEntry)

AddJournalEntry does nothing

func (*Accounts) CancelPrune

func (a *Accounts) CancelPrune(_ []byte, _ data.TriePruningIdentifier)

CancelPrune does nothing

func (*Accounts) Commit

func (a *Accounts) Commit() ([]byte, error)

Commit returns nil byte slice and nil

func (*Accounts) GetAllLeaves

func (a *Accounts) GetAllLeaves(_ []byte, _ context.Context) (chan core.KeyValueHolder, error)

GetAllLeaves returns a nil channel and nil error

func (*Accounts) GetCode

func (a *Accounts) GetCode(_ []byte) []byte

GetCode returns nil

func (*Accounts) GetExistingAccount

func (a *Accounts) GetExistingAccount(_ []byte) (state.AccountHandler, error)

GetExistingAccount returns nil account handler and nil error

func (*Accounts) GetNumCheckpoints

func (a *Accounts) GetNumCheckpoints() uint32

GetNumCheckpoints returns 0

func (*Accounts) IsInterfaceNil

func (a *Accounts) IsInterfaceNil() bool

IsInterfaceNil returns true if there is no value under the interface

func (*Accounts) IsPruningEnabled

func (a *Accounts) IsPruningEnabled() bool

IsPruningEnabled returns false

func (*Accounts) JournalLen

func (a *Accounts) JournalLen() int

JournalLen returns 0

func (*Accounts) LoadAccount

func (a *Accounts) LoadAccount(_ []byte) (state.AccountHandler, error)

LoadAccount returns a nil account and nil error

func (*Accounts) PruneTrie

func (a *Accounts) PruneTrie(_ []byte, _ data.TriePruningIdentifier)

PruneTrie does nothing

func (*Accounts) RecreateAllTries

func (a *Accounts) RecreateAllTries(_ []byte, _ context.Context) (map[string]data.Trie, error)

RecreateAllTries return a nil map and nil error

func (*Accounts) RecreateTrie

func (a *Accounts) RecreateTrie(_ []byte) error

RecreateTrie returns nil

func (*Accounts) RemoveAccount

func (a *Accounts) RemoveAccount(_ []byte) error

RemoveAccount returns nil

func (*Accounts) RevertToSnapshot

func (a *Accounts) RevertToSnapshot(_ int) error

RevertToSnapshot returns nil

func (*Accounts) RootHash

func (a *Accounts) RootHash() ([]byte, error)

RootHash returns nil byte slice and nil error

func (*Accounts) SaveAccount

func (a *Accounts) SaveAccount(_ state.AccountHandler) error

SaveAccount returns nil

func (*Accounts) SetStateCheckpoint

func (a *Accounts) SetStateCheckpoint(_ []byte, _ context.Context)

SetStateCheckpoint does nothing

func (*Accounts) SnapshotState

func (a *Accounts) SnapshotState(_ []byte, _ context.Context)

SnapshotState does nothing

type Blockchain

type Blockchain struct {
}

Blockchain is a disabled implementation of the ChainHandler interface

func (*Blockchain) CreateNewHeader

func (b *Blockchain) CreateNewHeader() data.HeaderHandler

CreateNewHeader returns nil

func (*Blockchain) GetCurrentBlockHeader

func (b *Blockchain) GetCurrentBlockHeader() data.HeaderHandler

GetCurrentBlockHeader returns nil

func (*Blockchain) GetCurrentBlockHeaderHash

func (b *Blockchain) GetCurrentBlockHeaderHash() []byte

GetCurrentBlockHeaderHash returns nil

func (*Blockchain) GetGenesisHeader

func (b *Blockchain) GetGenesisHeader() data.HeaderHandler

GetGenesisHeader returns nil

func (*Blockchain) GetGenesisHeaderHash

func (b *Blockchain) GetGenesisHeaderHash() []byte

GetGenesisHeaderHash returns nil

func (*Blockchain) IsInterfaceNil

func (b *Blockchain) IsInterfaceNil() bool

IsInterfaceNil returns true if there is no value under the interface

func (*Blockchain) SetCurrentBlockHeader

func (b *Blockchain) SetCurrentBlockHeader(_ data.HeaderHandler) error

SetCurrentBlockHeader returns nil

func (*Blockchain) SetCurrentBlockHeaderHash

func (b *Blockchain) SetCurrentBlockHeaderHash(_ []byte)

SetCurrentBlockHeaderHash does nothing

func (*Blockchain) SetGenesisHeader

func (b *Blockchain) SetGenesisHeader(_ data.HeaderHandler) error

SetGenesisHeader returns nil

func (*Blockchain) SetGenesisHeaderHash

func (b *Blockchain) SetGenesisHeaderHash(_ []byte)

SetGenesisHeaderHash does nothing

type DataPool

type DataPool struct {
}

DataPool is the disabled implementation of a PoolsHolder interface

func (*DataPool) CurrentBlockTxs

func (dp *DataPool) CurrentBlockTxs() dataRetriever.TransactionCacher

CurrentBlockTxs return nil

func (*DataPool) Headers

func (dp *DataPool) Headers() dataRetriever.HeadersPool

Headers returns nil

func (*DataPool) IsInterfaceNil

func (dp *DataPool) IsInterfaceNil() bool

IsInterfaceNil returns true if there is no value under the interface

func (*DataPool) MiniBlocks

func (dp *DataPool) MiniBlocks() storage.Cacher

MiniBlocks returns nil

func (*DataPool) PeerChangesBlocks

func (dp *DataPool) PeerChangesBlocks() storage.Cacher

PeerChangesBlocks returns nil

func (*DataPool) RewardTransactions

func (dp *DataPool) RewardTransactions() dataRetriever.ShardedDataCacherNotifier

RewardTransactions returns nil

func (*DataPool) SmartContracts

func (dp *DataPool) SmartContracts() storage.Cacher

SmartContracts returns nil

func (*DataPool) Transactions

Transactions returns nil

func (*DataPool) TrieNodes

func (dp *DataPool) TrieNodes() storage.Cacher

TrieNodes returns nil

func (*DataPool) UnsignedTransactions

func (dp *DataPool) UnsignedTransactions() dataRetriever.ShardedDataCacherNotifier

UnsignedTransactions returns nil

type ElrondShardCoordinator

type ElrondShardCoordinator struct {
}

ElrondShardCoordinator is the disabled shard coordinator instance that satisfies the elrond.sharding.Coordinator interface

func (*ElrondShardCoordinator) CommunicationIdentifier

func (esc *ElrondShardCoordinator) CommunicationIdentifier(_ uint32) string

CommunicationIdentifier returns empty string

func (*ElrondShardCoordinator) ComputeId

func (esc *ElrondShardCoordinator) ComputeId(_ []byte) uint32

ComputeId returns 0

func (*ElrondShardCoordinator) IsInterfaceNil

func (esc *ElrondShardCoordinator) IsInterfaceNil() bool

IsInterfaceNil returns true if there is no value under the interface

func (*ElrondShardCoordinator) NumberOfShards

func (esc *ElrondShardCoordinator) NumberOfShards() uint32

NumberOfShards returns 0

func (*ElrondShardCoordinator) SameShard

func (esc *ElrondShardCoordinator) SameShard(_, _ []byte) bool

SameShard returns false

func (*ElrondShardCoordinator) SelfId

func (esc *ElrondShardCoordinator) SelfId() uint32

SelfId returns 0

type StorageService

type StorageService struct {
}

StorageService is a disabled implementation of the StorageService interface

func (*StorageService) AddStorer

func (ss *StorageService) AddStorer(_ dataRetriever.UnitType, _ storage.Storer)

AddStorer does nothing

func (*StorageService) CloseAll

func (ss *StorageService) CloseAll() error

CloseAll returns nil

func (*StorageService) Destroy

func (ss *StorageService) Destroy() error

Destroy returns nil

func (*StorageService) Get

func (ss *StorageService) Get(_ dataRetriever.UnitType, _ []byte) ([]byte, error)

Get returns nil byte slice and nil error

func (*StorageService) GetAll

func (ss *StorageService) GetAll(_ dataRetriever.UnitType, _ [][]byte) (map[string][]byte, error)

GetAll returns nil map and nil error

func (*StorageService) GetStorer

GetStorer returns nil

func (*StorageService) Has

Has returns nil

func (*StorageService) IsInterfaceNil

func (ss *StorageService) IsInterfaceNil() bool

IsInterfaceNil returns true if there is no value under the interface

func (*StorageService) Put

func (ss *StorageService) Put(_ dataRetriever.UnitType, _ []byte, _ []byte) error

Put returns nil

func (*StorageService) SetEpochForPutOperation

func (ss *StorageService) SetEpochForPutOperation(_ uint32)

SetEpochForPutOperation does nothing

Jump to

Keyboard shortcuts

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