dbInfo

package
v6.6.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2020 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 4 more Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DirBlockInfo

type DirBlockInfo struct {
	// Serial hash for the directory block
	DBHash    interfaces.IHash
	DBHeight  uint32 //directory block height
	Timestamp int64  // time of this dir block info being created
	// BTCTxHash is the Tx hash returned from rpcclient.SendRawTransaction
	BTCTxHash interfaces.IHash // use string or *btcwire.ShaHash ???
	// BTCTxOffset is the index of the TX in this BTC block
	BTCTxOffset int32
	// BTCBlockHeight is the height of the block where this TX is stored in BTC
	BTCBlockHeight int32
	//BTCBlockHash is the hash of the block where this TX is stored in BTC
	BTCBlockHash interfaces.IHash // use string or *btcwire.ShaHash ???
	// DBMerkleRoot is the merkle root of the Directory Block
	// and is written into BTC as OP_RETURN data
	DBMerkleRoot interfaces.IHash
	// A flag to to show BTC anchor confirmation
	BTCConfirmed bool

	EthereumAnchorRecordEntryHash interfaces.IHash
	EthereumConfirmed             bool
}

func NewDirBlockInfo

func NewDirBlockInfo() *DirBlockInfo

func NewDirBlockInfoFromDirBlock

func NewDirBlockInfoFromDirBlock(dirBlock interfaces.IDirectoryBlock) *DirBlockInfo

NewDirBlockInfoFromDirBlock creates a DirDirBlockInfo from DirectoryBlock

func (*DirBlockInfo) DatabasePrimaryIndex

func (c *DirBlockInfo) DatabasePrimaryIndex() (rval interfaces.IHash)

func (*DirBlockInfo) DatabaseSecondaryIndex

func (c *DirBlockInfo) DatabaseSecondaryIndex() (rval interfaces.IHash)

func (*DirBlockInfo) GetBTCBlockHash

func (e *DirBlockInfo) GetBTCBlockHash() interfaces.IHash

func (*DirBlockInfo) GetBTCBlockHeight

func (e *DirBlockInfo) GetBTCBlockHeight() int32

func (*DirBlockInfo) GetBTCConfirmed

func (c *DirBlockInfo) GetBTCConfirmed() bool

func (*DirBlockInfo) GetBTCTxHash

func (e *DirBlockInfo) GetBTCTxHash() (rval interfaces.IHash)

func (*DirBlockInfo) GetBTCTxOffset

func (e *DirBlockInfo) GetBTCTxOffset() (rval int32)

func (*DirBlockInfo) GetChainID

func (c *DirBlockInfo) GetChainID() (rval interfaces.IHash)

func (*DirBlockInfo) GetDBHeight

func (c *DirBlockInfo) GetDBHeight() uint32

func (*DirBlockInfo) GetDBMerkleRoot

func (e *DirBlockInfo) GetDBMerkleRoot() (rval interfaces.IHash)

func (*DirBlockInfo) GetDatabaseHeight

func (c *DirBlockInfo) GetDatabaseHeight() uint32

func (*DirBlockInfo) GetEthereumAnchorRecordEntryHash

func (c *DirBlockInfo) GetEthereumAnchorRecordEntryHash() interfaces.IHash

func (*DirBlockInfo) GetEthereumConfirmed

func (c *DirBlockInfo) GetEthereumConfirmed() bool

func (*DirBlockInfo) GetTimestamp

func (e *DirBlockInfo) GetTimestamp() interfaces.Timestamp

func (*DirBlockInfo) Init

func (e *DirBlockInfo) Init()

func (*DirBlockInfo) JSONByte

func (e *DirBlockInfo) JSONByte() ([]byte, error)

func (*DirBlockInfo) JSONString

func (e *DirBlockInfo) JSONString() (string, error)

func (*DirBlockInfo) MarshalBinary

func (e *DirBlockInfo) MarshalBinary() (rval []byte, err error)

func (*DirBlockInfo) New

func (*DirBlockInfo) SetTimestamp

func (e *DirBlockInfo) SetTimestamp(timestamp interfaces.Timestamp)

func (*DirBlockInfo) String

func (e *DirBlockInfo) String() string

func (*DirBlockInfo) UnmarshalBinary

func (e *DirBlockInfo) UnmarshalBinary(data []byte) (err error)

func (*DirBlockInfo) UnmarshalBinaryData

func (e *DirBlockInfo) UnmarshalBinaryData(data []byte) (newData []byte, err error)

Jump to

Keyboard shortcuts

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