mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-11-29 00:23:14 +00:00
45 lines
1.8 KiB
Go
45 lines
1.8 KiB
Go
package mempool
|
|
|
|
import "github.com/kaspanet/kaspad/domain/consensus/model/externalapi"
|
|
|
|
type mempool struct {
|
|
}
|
|
|
|
func (mp *mempool) ValidateAndInsertTransaction(transaction *externalapi.DomainTransaction, isHighPriority bool) (
|
|
acceptedTransactions []*externalapi.DomainTransaction, err error) {
|
|
|
|
panic("mempool.ValidateAndInsertTransaction not implemented") // TODO (Mike)
|
|
}
|
|
|
|
func (mp *mempool) HandleNewBlockTransactions(transactions []*externalapi.DomainTransaction) (
|
|
acceptedOrphans []*externalapi.DomainTransaction, err error) {
|
|
|
|
panic("mempool.HandleNewBlockTransactions not implemented") // TODO (Mike)
|
|
}
|
|
|
|
func (mp *mempool) RemoveTransaction(transactionID *externalapi.DomainTransactionID) error {
|
|
panic("mempool.RemoveTransaction not implemented") // TODO (Mike)
|
|
}
|
|
|
|
func (mp *mempool) BlockCandidateTransactions() ([]*externalapi.DomainTransaction, error) {
|
|
panic("mempool.BlockCandidateTransactions not implemented") // TODO (Mike)
|
|
}
|
|
|
|
func (mp *mempool) RevalidateHighPriorityTransactions() (validTransactions []*externalapi.DomainTransaction, err error) {
|
|
panic("mempool.RevalidateHighPriorityTransactions not implemented") // TODO (Mike)
|
|
}
|
|
|
|
func (mp *mempool) validateTransactionInIsolation(transaction *externalapi.DomainTransaction) error {
|
|
panic("mempool.validateTransactionInIsolation not implemented") // TODO (Mike)
|
|
}
|
|
|
|
func (mp *mempool) validateTransactionInContext(transaction *externalapi.DomainTransaction) error {
|
|
panic("mempool.validateTransactionInContext not implemented") // TODO (Mike)
|
|
}
|
|
|
|
func (mp *mempool) fillInputsAndGetMissingParents(transaction *externalapi.DomainTransaction) (
|
|
parents []*mempoolTransaction, missingParents []externalapi.DomainTransactionID, err error) {
|
|
|
|
panic("mempool.fillInputsAndGetMissingParents not implemented") // TODO (Mike)
|
|
}
|