mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-05-24 15:56:42 +00:00

* [NOD-1492] Implement some data stores * [NOD-1492] Remove pointers to acceptance data * [NOD-1492] Fix receiver names * [NOD-1492] Implement delete for acceptanceDataStore * [NOD-1492] In blockRelationStore rename IsAnythingStaged to IsStaged * [NOD-1492] Rename bucket name
22 lines
741 B
Go
22 lines
741 B
Go
package model
|
|
|
|
import "github.com/kaspanet/kaspad/domain/consensus/model/externalapi"
|
|
|
|
// AcceptanceData stores data about which transactions were accepted by a block.
|
|
// It's ordered in the same way as the block merge set blues.
|
|
type AcceptanceData []*BlockAcceptanceData
|
|
|
|
// BlockAcceptanceData stores all transactions in a block with an indication
|
|
// if they were accepted or not by some other block
|
|
type BlockAcceptanceData struct {
|
|
TransactionAcceptanceData []*TransactionAcceptanceData
|
|
}
|
|
|
|
// TransactionAcceptanceData stores a transaction together with an indication
|
|
// if it was accepted or not by some block
|
|
type TransactionAcceptanceData struct {
|
|
Transaction *externalapi.DomainTransaction
|
|
Fee uint64
|
|
IsAccepted bool
|
|
}
|