mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-05-23 23:36:56 +00:00

* [NOD-1496] Implement headers only verification * [NOD-1496] Add checkParentsExist * [NOD-1496] Stage block statuses in block processor * [NOD-1496] Rename AddBlock->AddHeaderTip * [NOD-1496] Return early from validateAndInsertBlock on header only and put ValidateProofOfWorkAndDifficulty inside validateBlock
20 lines
506 B
Go
20 lines
506 B
Go
package externalapi
|
|
|
|
// DomainBlock represents a Kaspa block
|
|
type DomainBlock struct {
|
|
Header *DomainBlockHeader
|
|
Transactions []*DomainTransaction
|
|
}
|
|
|
|
// DomainBlockHeader represents the header part of a Kaspa block
|
|
type DomainBlockHeader struct {
|
|
Version int32
|
|
ParentHashes []*DomainHash
|
|
HashMerkleRoot DomainHash
|
|
AcceptedIDMerkleRoot DomainHash
|
|
UTXOCommitment DomainHash
|
|
TimeInMilliseconds int64
|
|
Bits uint32
|
|
Nonce uint64
|
|
}
|