Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TrBlock ¶
type TrBlock struct {
Magic [4]byte
BlockSize uint32
HeaderHash string
Header
TransactionList
}
func NewTrBlock ¶
func NewTrBlock(transactions TransactionList, header Header) (tr TrBlock)
type TransactionList ¶
type TransactionList struct {
Txs []blkparser.Tx `json:"tx,omitempty"`
TxCnt uint32 `json:"n_tx"`
Fees float64 `json:"-"`
}
func NewTransactionList ¶
func NewTransactionList(transactions []blkparser.Tx, n int) (tr TransactionList)
func (*TransactionList) Print ¶
func (tran *TransactionList) Print()
Click to show internal directories.
Click to hide internal directories.