Documentation
¶
Index ¶
- Constants
- Variables
- type AccountsStorage
- func (s *AccountsStorage) AccountBalance(addr proto.Address, asset []byte) (uint64, error)
- func (s *AccountsStorage) RollbackBlock(blockID crypto.Signature) error
- func (s *AccountsStorage) SetAccountBalance(addr proto.Address, asset []byte, balance uint64, blockID crypto.Signature) error
- func (s *AccountsStorage) WavesAddressesNumber() (uint64, error)
- type BlockReadWriter
- func (rw *BlockReadWriter) BlockIDByHeight(height uint64) (crypto.Signature, error)
- func (rw *BlockReadWriter) BlockIdsFilePath() (string, error)
- func (rw *BlockReadWriter) Close() error
- func (rw *BlockReadWriter) CurrentHeight() uint64
- func (rw *BlockReadWriter) FinishBlock(blockID crypto.Signature) error
- func (rw *BlockReadWriter) HeightByBlockID(blockID crypto.Signature) (uint64, error)
- func (rw *BlockReadWriter) ReadBlockHeader(blockID crypto.Signature) ([]byte, error)
- func (rw *BlockReadWriter) ReadTransaction(txID []byte) ([]byte, error)
- func (rw *BlockReadWriter) ReadTransactionsBlock(blockID crypto.Signature) ([]byte, error)
- func (rw *BlockReadWriter) RemoveBlocks(removalEdge crypto.Signature) error
- func (rw *BlockReadWriter) StartBlock(blockID crypto.Signature) error
- func (rw *BlockReadWriter) WriteBlockHeader(blockID crypto.Signature, header []byte) error
- func (rw *BlockReadWriter) WriteTransaction(txID []byte, tx []byte) error
Constants ¶
View Source
const ( ROLLBACK_MAX_BLOCKS = 2000 RECORD_SIZE = crypto.SignatureSize + 8 )
Variables ¶
View Source
var Empty struct{}
Functions ¶
This section is empty.
Types ¶
type AccountsStorage ¶
type AccountsStorage struct {
// contains filtered or unexported fields
}
func NewAccountsStorage ¶
func NewAccountsStorage(globalStor, addr2Index, asset2Index keyvalue.IterableKeyVal, blockIdsFile string) (*AccountsStorage, error)
func (*AccountsStorage) AccountBalance ¶
func (*AccountsStorage) RollbackBlock ¶
func (s *AccountsStorage) RollbackBlock(blockID crypto.Signature) error
func (*AccountsStorage) SetAccountBalance ¶
func (*AccountsStorage) WavesAddressesNumber ¶
func (s *AccountsStorage) WavesAddressesNumber() (uint64, error)
type BlockReadWriter ¶
type BlockReadWriter struct {
// contains filtered or unexported fields
}
func NewBlockReadWriter ¶
func (*BlockReadWriter) BlockIDByHeight ¶
func (rw *BlockReadWriter) BlockIDByHeight(height uint64) (crypto.Signature, error)
func (*BlockReadWriter) BlockIdsFilePath ¶
func (rw *BlockReadWriter) BlockIdsFilePath() (string, error)
func (*BlockReadWriter) Close ¶
func (rw *BlockReadWriter) Close() error
func (*BlockReadWriter) CurrentHeight ¶
func (rw *BlockReadWriter) CurrentHeight() uint64
func (*BlockReadWriter) FinishBlock ¶
func (rw *BlockReadWriter) FinishBlock(blockID crypto.Signature) error
func (*BlockReadWriter) HeightByBlockID ¶
func (rw *BlockReadWriter) HeightByBlockID(blockID crypto.Signature) (uint64, error)
func (*BlockReadWriter) ReadBlockHeader ¶
func (rw *BlockReadWriter) ReadBlockHeader(blockID crypto.Signature) ([]byte, error)
func (*BlockReadWriter) ReadTransaction ¶
func (rw *BlockReadWriter) ReadTransaction(txID []byte) ([]byte, error)
func (*BlockReadWriter) ReadTransactionsBlock ¶
func (rw *BlockReadWriter) ReadTransactionsBlock(blockID crypto.Signature) ([]byte, error)
func (*BlockReadWriter) RemoveBlocks ¶
func (rw *BlockReadWriter) RemoveBlocks(removalEdge crypto.Signature) error
func (*BlockReadWriter) StartBlock ¶
func (rw *BlockReadWriter) StartBlock(blockID crypto.Signature) error
func (*BlockReadWriter) WriteBlockHeader ¶
func (rw *BlockReadWriter) WriteBlockHeader(blockID crypto.Signature, header []byte) error
func (*BlockReadWriter) WriteTransaction ¶
func (rw *BlockReadWriter) WriteTransaction(txID []byte, tx []byte) error
Click to show internal directories.
Click to hide internal directories.