mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-09-13 13:00:10 +00:00

* [NOD-1453] cover failing block validation * [NOD-1453] Complete covering test for invalid block * [NOD-1453] Fix validator tests after rebase * [NOD-1453] Cover tests for valid blocks * [NOD-1453] Implement unit tests for ValidateTransactionInIsolation * [NOD-1453] Add tests for ValidateTransactionInContextAndPopulateMassAndFee * [NOD-1453] Cover ValidateHeaderInContext test * [NOD-1453] Fix after rebase * not finish * commited for update the branch. * Adds new tests to block_body_in_isolation_test.go according to (and instead of ) blockvalisator_test.go * Adds a comment to type MEDIAN. * Fixes according to the review notes: add notes and change variables name. * Fix comment. * Remove an unused test( all the tests in this file were passed to other test files). * Change a variable name(txWithAnEmptyInvalidScript to txWithInvalidSignature). * adds missing '}'. * Change spaces to tab Co-authored-by: karim1king <karimkaspersky@yahoo.com> Co-authored-by: Karim A <karim.a@it-dimension.com> Co-authored-by: tal <tal@daglabs.com>
22 lines
1.1 KiB
Go
22 lines
1.1 KiB
Go
package consensus
|
|
|
|
import (
|
|
"github.com/kaspanet/kaspad/domain/consensus/model"
|
|
"github.com/kaspanet/kaspad/domain/consensus/model/externalapi"
|
|
"math/big"
|
|
"time"
|
|
)
|
|
|
|
// GHOSTDAGManagerConstructor is the function signature for a constructor of a type implementing model.GHOSTDAGManager
|
|
type GHOSTDAGManagerConstructor func(model.DBReader, model.DAGTopologyManager,
|
|
model.GHOSTDAGDataStore, model.BlockHeaderStore, model.KType) model.GHOSTDAGManager
|
|
|
|
// DifficultyManagerConstructor is the function signature for a constructor of a type implementing model.DifficultyManager
|
|
type DifficultyManagerConstructor func(model.DBReader, model.GHOSTDAGManager, model.GHOSTDAGDataStore,
|
|
model.BlockHeaderStore, model.DAGTopologyManager, model.DAGTraversalManager, *big.Int, int, bool, time.Duration,
|
|
*externalapi.DomainHash) model.DifficultyManager
|
|
|
|
// PastMedianTimeManagerConstructor is the function signature for a constructor of a type implementing model.PastMedianTimeManager
|
|
type PastMedianTimeManagerConstructor func(int, model.DBReader, model.DAGTraversalManager, model.BlockHeaderStore,
|
|
model.GHOSTDAGDataStore) model.PastMedianTimeManager
|