mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-05-22 23:07:04 +00:00

* [NOD-1500] Added Domain type and Constructor * [NOD-1500] Replaced dag+txpool with domain in flowContext * [NOD-1500] Replaced dag+txpool with domain in flowContext * [NOD-1500] Converters: domain objects from/to appmessage * [NOD-1500] Convert hashes to DomainHashes in appmessages * [NOD-1500] Remove references to daghash in dagconfig * [NOD-1500] Fixed all appmessage usages of hashes * [NOD-1500] Update all RPC to use domain * [NOD-1500] Big chunk of protocol flows re-wired to domain * [NOD-1500] Finished re-wiring all protocol flows to new Domain * [NOD-1500] Fix some mempool and kaspaminer compilation errors * [NOD-1500] Deleted util/{block,tx,daghash} and dbaccess * [NOD-1500] util.CoinbaseTransactionIndex -> transactionhelper.CoinbaseTransactionIndex * [NOD-1500] Fix txsigner * [NOD-1500] Removed all references to util/subnetworkid * [NOD-1500] Update RpcGetBlock related messages * [NOD-1500] Many more compilation fixes * [NOD-1500] Return full list of missing blocks for orphan resolution * [NOD-1500] Fixed handshake * [NOD-1500] Fixed flowcontext compilation * [NOD-1500] Update users of StartIBDIfRequired to handle error * [NOD-1500] Removed some more fields from RPC * [NOD-1500] Fix the getBlockTemplate flow * [NOD-1500] Fix HandleGetCurrentNetwork * [NOD-1500] Remove redundant code * [NOD-1500] Remove obsolete notifications * [NOD-1500] Split MiningManager and Consensus to separate fields in Domain * [NOD-1500] Update two wrong references to location of txscript * [NOD-1500] Added comments * [NOD-1500] Fix some tests * [NOD-1500] Removed serialization logic from appmessage * [NOD-1500] Rename database/serialization/messages.proto to dbobjects.proto * [NOD-1500] Delete integration tests * [NOD-1500] Remove txsort * [NOD-1500] Fix tiny bug * [NOD-1500] Remove rogue dependancy on bchd * [NOD-1500] Some stylistic fixes
144 lines
2.7 KiB
Protocol Buffer
144 lines
2.7 KiB
Protocol Buffer
syntax = "proto3";
|
|
package serialization;
|
|
|
|
option go_package = "github.com/kaspanet/kaspad/serialization";
|
|
|
|
message DbBlock {
|
|
DbBlockHeader header = 1;
|
|
repeated DbTransaction transactions = 2;
|
|
}
|
|
|
|
message DbBlockHeader {
|
|
int32 version = 1;
|
|
repeated DbHash parentHashes = 2;
|
|
DbHash hashMerkleRoot = 3;
|
|
DbHash acceptedIDMerkleRoot = 4;
|
|
DbHash utxoCommitment = 5;
|
|
int64 timeInMilliseconds = 6;
|
|
uint32 bits = 7;
|
|
uint64 nonce = 8;
|
|
}
|
|
|
|
message DbHash {
|
|
bytes hash = 1;
|
|
}
|
|
|
|
message DbTransaction {
|
|
int32 version = 1;
|
|
repeated DbTransactionInput inputs = 2;
|
|
repeated DbTransactionOutput outputs = 3;
|
|
uint64 lockTime = 4;
|
|
DbSubnetworkId subnetworkID = 5;
|
|
uint64 gas = 6;
|
|
DbHash payloadHash = 7;
|
|
bytes payload = 8;
|
|
}
|
|
|
|
message DbTransactionInput {
|
|
DbOutpoint previousOutpoint = 1;
|
|
bytes signatureScript = 2;
|
|
uint64 sequence = 3;
|
|
}
|
|
|
|
message DbOutpoint {
|
|
DbTransactionId transactionID = 1;
|
|
uint32 index = 2;
|
|
}
|
|
|
|
message DbTransactionId {
|
|
bytes transactionId = 1;
|
|
}
|
|
|
|
message DbTransactionOutput {
|
|
uint64 value = 1;
|
|
bytes scriptPublicKey = 2;
|
|
}
|
|
|
|
message DbSubnetworkId {
|
|
bytes subnetworkId = 1;
|
|
}
|
|
|
|
message DbAcceptanceData {
|
|
repeated DbBlockAcceptanceData blockAcceptanceData = 1;
|
|
}
|
|
|
|
message DbBlockAcceptanceData {
|
|
repeated DbTransactionAcceptanceData transactionAcceptanceData = 1;
|
|
}
|
|
|
|
message DbTransactionAcceptanceData {
|
|
DbTransaction transaction = 1;
|
|
uint64 fee = 2;
|
|
bool isAccepted = 3;
|
|
}
|
|
|
|
message DbBlockRelations {
|
|
repeated DbHash parents = 1;
|
|
repeated DbHash children = 2;
|
|
}
|
|
|
|
message DbBlockStatus {
|
|
uint32 status = 1;
|
|
}
|
|
|
|
message DbBlockGhostdagData {
|
|
uint64 blueScore = 1;
|
|
DbHash selectedParent = 2;
|
|
repeated DbHash mergeSetBlues = 3;
|
|
repeated DbHash mergeSetReds = 4;
|
|
repeated DbBluesAnticoneSizes bluesAnticoneSizes = 5;
|
|
}
|
|
|
|
message DbBluesAnticoneSizes {
|
|
DbHash blueHash = 1;
|
|
uint32 anticoneSize = 2;
|
|
}
|
|
|
|
message DbMultiset {
|
|
bytes multiset = 1;
|
|
}
|
|
|
|
message DbUtxoSet {
|
|
repeated DbUtxoCollectionItem items = 1;
|
|
}
|
|
|
|
message DbUtxoCollectionItem {
|
|
DbOutpoint outpoint = 1;
|
|
DbUtxoEntry utxoEntry = 2;
|
|
}
|
|
|
|
message DbUtxoEntry {
|
|
uint64 amount = 1;
|
|
bytes scriptPublicKey = 2;
|
|
uint64 blockBlueScore = 3;
|
|
bool isCoinbase = 4;
|
|
}
|
|
|
|
message DbReachabilityData {
|
|
DbReachabilityTreeNode treeNode = 1;
|
|
repeated DbHash futureCoveringSet = 2;
|
|
}
|
|
|
|
message DbReachabilityTreeNode {
|
|
repeated DbHash children = 1;
|
|
DbHash parent = 2;
|
|
DbReachabilityInterval interval = 3;
|
|
}
|
|
|
|
message DbReachabilityInterval {
|
|
uint64 start = 1;
|
|
uint64 end = 2;
|
|
}
|
|
|
|
message DbUtxoDiff {
|
|
repeated DbUtxoCollectionItem toAdd = 1;
|
|
repeated DbUtxoCollectionItem toRemove = 2;
|
|
}
|
|
|
|
message DbPruningPointUTXOSetBytes {
|
|
bytes bytes = 1;
|
|
}
|
|
|
|
message DbHeaderTips {
|
|
repeated DbHash tips = 1;
|
|
} |