Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions ledger/leios/leios.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ type LeiosEndorserBlock struct {
cbor.DecodeStoreCbor
cbor.StructAsArray
hash *common.Blake2b256
TxReferences []common.TxReference
transactions []common.Transaction
TxReferences []common.TxReference `cbor:"0,keyasint"`
}

func (h *LeiosBlockHeader) UnmarshalCBOR(cborData []byte) error {
Expand Down Expand Up @@ -153,9 +154,7 @@ func (b *LeiosEndorserBlock) PrevHash() common.Blake2b256 {
}

func (b *LeiosEndorserBlock) Transactions() []common.Transaction {
// TODO: convert TxReferences into []Transaction
// TxReferences []common.TxReference
return []common.Transaction{}
return b.transactions
}

func (b *LeiosEndorserBlock) Utxorpc() (*utxorpc.Block, error) {
Expand Down