Documentation ¶
Index ¶
- Constants
- type PhysicalLayer
- type PhysicalLayerConfig
- type UtxoLayer
- type UtxoLayerConfig
- type ValueLayer
- func (p *ValueLayer) HandleMsg(direction stack.Direction, data []byte, layer *stack.Layer)
- func (p *ValueLayer) Request(transaction *utxo.Transaction, input *utxo.Input) (*utxo.Output, error)
- func (p *ValueLayer) Submitted(inputs []*utxo.Output, outputs []*utxo.Output)
- func (p *ValueLayer) Validate(transaction *utxo.Transaction, inputs []*utxo.Output, outputs []*utxo.Output) error
- type ValueLayerConfig
Constants ¶
View Source
const ( NumTipsBlocks int = 2 NumOfBlocksForTips int = 10 ProtocolSnapshot string = "/snapshot/0.0.1" ProtocolUtxo string = "/utxo/protocol/0.0.1" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PhysicalLayer ¶
func NewPhysicalLayer ¶
func NewPhysicalLayer(config *PhysicalLayerConfig) (*PhysicalLayer, error)
func (*PhysicalLayer) Close ¶
func (p *PhysicalLayer) Close()
func (*PhysicalLayer) GetGenesysRaw ¶
func (p *PhysicalLayer) GetGenesysRaw() ([]byte, error)
type PhysicalLayerConfig ¶
type UtxoLayer ¶
func NewUtxoLayer ¶
func NewUtxoLayer(config *UtxoLayerConfig) (*UtxoLayer, error)
type UtxoLayerConfig ¶
type UtxoLayerConfig struct { }
type ValueLayer ¶
func NewValueLayer ¶
func NewValueLayer(config *ValueLayerConfig) (*ValueLayer, error)
func (*ValueLayer) Request ¶
func (p *ValueLayer) Request(transaction *utxo.Transaction, input *utxo.Input) (*utxo.Output, error)
Request missing inputs. Transaction is provided to enqueue it again for evaluation once Input is retrieved
func (*ValueLayer) Submitted ¶
func (p *ValueLayer) Submitted(inputs []*utxo.Output, outputs []*utxo.Output)
Transaction is submitted
func (*ValueLayer) Validate ¶
func (p *ValueLayer) Validate(transaction *utxo.Transaction, inputs []*utxo.Output, outputs []*utxo.Output) error
Validate if output to consume and output to insert are sound with respect to the system
type ValueLayerConfig ¶
type ValueLayerConfig struct{}
Click to show internal directories.
Click to hide internal directories.