undo

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2018 License: BSD-2-Clause Imports: 6 Imported by: 12

Documentation

Index

Constants

View Source
const MaxInputPerTx = tx.MaxTxInPerMessage

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockUndo

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

func NewBlockUndo

func NewBlockUndo(count int) *BlockUndo

func (*BlockUndo) AddTxUndo

func (bu *BlockUndo) AddTxUndo(txUndo *TxUndo)

func (*BlockUndo) GetTxundo

func (bu *BlockUndo) GetTxundo() []*TxUndo

func (*BlockUndo) Serialize

func (bu *BlockUndo) Serialize(w io.Writer) error

func (*BlockUndo) SerializeSize

func (bu *BlockUndo) SerializeSize() int

func (*BlockUndo) SetTxUndo

func (bu *BlockUndo) SetTxUndo(txUndo []*TxUndo)

func (*BlockUndo) Unserialize

func (bu *BlockUndo) Unserialize(r io.Reader) error

type DisconnectResult

type DisconnectResult int
const (
	// DisconnectOk All good.
	DisconnectOk DisconnectResult = iota
	// DisconnectUnclean Rolled back, but UTXO set was inconsistent with block.
	DisconnectUnclean
	// DisconnectFailed Something else went wrong.
	DisconnectFailed
)

type TxUndo

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

func NewTxUndo

func NewTxUndo() *TxUndo

func (*TxUndo) GetUndoCoins

func (tu *TxUndo) GetUndoCoins() []*utxo.Coin

func (*TxUndo) Serialize

func (tu *TxUndo) Serialize(w io.Writer) error

func (*TxUndo) SetUndoCoins

func (tu *TxUndo) SetUndoCoins(coins []*utxo.Coin)

func (*TxUndo) Unserialize

func (tu *TxUndo) Unserialize(r io.Reader) error

Jump to

Keyboard shortcuts

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