Updated Tari protocol definitions

This commit is contained in:
SChernykh 2024-01-29 14:24:04 +01:00
parent 0d8610815a
commit 373182024a
5 changed files with 367 additions and 166 deletions

View file

@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.5) cmake_minimum_required(VERSION 3.10)
project(Tari_gRPC) project(Tari_gRPC)
set(HEADERS set(HEADERS

View file

@ -1,3 +1,5 @@
#pragma once
#ifdef _MSC_VER #ifdef _MSC_VER
#pragma warning(push, 0) #pragma warning(push, 0)
#endif #endif

View file

@ -477,6 +477,9 @@ inline constexpr GetNewBlockBlobResult::Impl_::Impl_(
utxo_mr_( utxo_mr_(
&::google::protobuf::internal::fixed_address_empty_string, &::google::protobuf::internal::fixed_address_empty_string,
::_pbi::ConstantInitialized()), ::_pbi::ConstantInitialized()),
tari_unique_id_(
&::google::protobuf::internal::fixed_address_empty_string,
::_pbi::ConstantInitialized()),
_cached_size_{0} {} _cached_size_{0} {}
template <typename> template <typename>
@ -1099,6 +1102,9 @@ inline constexpr GetNewBlockResult::Impl_::Impl_(
merge_mining_hash_( merge_mining_hash_(
&::google::protobuf::internal::fixed_address_empty_string, &::google::protobuf::internal::fixed_address_empty_string,
::_pbi::ConstantInitialized()), ::_pbi::ConstantInitialized()),
tari_unique_id_(
&::google::protobuf::internal::fixed_address_empty_string,
::_pbi::ConstantInitialized()),
block_{nullptr} {} block_{nullptr} {}
template <typename> template <typename>
@ -1503,9 +1509,11 @@ const ::uint32_t
PROTOBUF_FIELD_OFFSET(::tari::rpc::GetNewBlockResult, _impl_.block_hash_), PROTOBUF_FIELD_OFFSET(::tari::rpc::GetNewBlockResult, _impl_.block_hash_),
PROTOBUF_FIELD_OFFSET(::tari::rpc::GetNewBlockResult, _impl_.block_), PROTOBUF_FIELD_OFFSET(::tari::rpc::GetNewBlockResult, _impl_.block_),
PROTOBUF_FIELD_OFFSET(::tari::rpc::GetNewBlockResult, _impl_.merge_mining_hash_), PROTOBUF_FIELD_OFFSET(::tari::rpc::GetNewBlockResult, _impl_.merge_mining_hash_),
PROTOBUF_FIELD_OFFSET(::tari::rpc::GetNewBlockResult, _impl_.tari_unique_id_),
~0u, ~0u,
0, 0,
~0u, ~0u,
~0u,
~0u, // no _has_bits_ ~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::tari::rpc::GetNewBlockBlobResult, _internal_metadata_), PROTOBUF_FIELD_OFFSET(::tari::rpc::GetNewBlockBlobResult, _internal_metadata_),
~0u, // no _extensions_ ~0u, // no _extensions_
@ -1519,6 +1527,7 @@ const ::uint32_t
PROTOBUF_FIELD_OFFSET(::tari::rpc::GetNewBlockBlobResult, _impl_.block_body_), PROTOBUF_FIELD_OFFSET(::tari::rpc::GetNewBlockBlobResult, _impl_.block_body_),
PROTOBUF_FIELD_OFFSET(::tari::rpc::GetNewBlockBlobResult, _impl_.merge_mining_hash_), PROTOBUF_FIELD_OFFSET(::tari::rpc::GetNewBlockBlobResult, _impl_.merge_mining_hash_),
PROTOBUF_FIELD_OFFSET(::tari::rpc::GetNewBlockBlobResult, _impl_.utxo_mr_), PROTOBUF_FIELD_OFFSET(::tari::rpc::GetNewBlockBlobResult, _impl_.utxo_mr_),
PROTOBUF_FIELD_OFFSET(::tari::rpc::GetNewBlockBlobResult, _impl_.tari_unique_id_),
PROTOBUF_FIELD_OFFSET(::tari::rpc::MinerData, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::tari::rpc::MinerData, _impl_._has_bits_),
PROTOBUF_FIELD_OFFSET(::tari::rpc::MinerData, _internal_metadata_), PROTOBUF_FIELD_OFFSET(::tari::rpc::MinerData, _internal_metadata_),
~0u, // no _extensions_ ~0u, // no _extensions_
@ -1782,31 +1791,31 @@ static const ::_pbi::MigrationSchema
{297, -1, -1, sizeof(::tari::rpc::MetaData)}, {297, -1, -1, sizeof(::tari::rpc::MetaData)},
{309, -1, -1, sizeof(::tari::rpc::SyncInfoResponse)}, {309, -1, -1, sizeof(::tari::rpc::SyncInfoResponse)},
{320, -1, -1, sizeof(::tari::rpc::SyncProgressResponse)}, {320, -1, -1, sizeof(::tari::rpc::SyncProgressResponse)},
{331, 342, -1, sizeof(::tari::rpc::GetNewBlockResult)}, {331, 343, -1, sizeof(::tari::rpc::GetNewBlockResult)},
{345, -1, -1, sizeof(::tari::rpc::GetNewBlockBlobResult)}, {347, -1, -1, sizeof(::tari::rpc::GetNewBlockBlobResult)},
{358, 370, -1, sizeof(::tari::rpc::MinerData)}, {361, 373, -1, sizeof(::tari::rpc::MinerData)},
{374, -1, -1, sizeof(::tari::rpc::SearchKernelsRequest)}, {377, -1, -1, sizeof(::tari::rpc::SearchKernelsRequest)},
{383, -1, -1, sizeof(::tari::rpc::SearchUtxosRequest)}, {386, -1, -1, sizeof(::tari::rpc::SearchUtxosRequest)},
{392, -1, -1, sizeof(::tari::rpc::FetchMatchingUtxosRequest)}, {395, -1, -1, sizeof(::tari::rpc::FetchMatchingUtxosRequest)},
{401, 410, -1, sizeof(::tari::rpc::FetchMatchingUtxosResponse)}, {404, 413, -1, sizeof(::tari::rpc::FetchMatchingUtxosResponse)},
{411, 420, -1, sizeof(::tari::rpc::GetPeersResponse)}, {414, 423, -1, sizeof(::tari::rpc::GetPeersResponse)},
{421, -1, -1, sizeof(::tari::rpc::GetPeersRequest)}, {424, -1, -1, sizeof(::tari::rpc::GetPeersRequest)},
{429, 438, -1, sizeof(::tari::rpc::SubmitTransactionRequest)}, {432, 441, -1, sizeof(::tari::rpc::SubmitTransactionRequest)},
{439, -1, -1, sizeof(::tari::rpc::SubmitTransactionResponse)}, {442, -1, -1, sizeof(::tari::rpc::SubmitTransactionResponse)},
{448, -1, -1, sizeof(::tari::rpc::GetMempoolTransactionsRequest)}, {451, -1, -1, sizeof(::tari::rpc::GetMempoolTransactionsRequest)},
{456, 465, -1, sizeof(::tari::rpc::GetMempoolTransactionsResponse)}, {459, 468, -1, sizeof(::tari::rpc::GetMempoolTransactionsResponse)},
{466, 475, -1, sizeof(::tari::rpc::TransactionStateRequest)}, {469, 478, -1, sizeof(::tari::rpc::TransactionStateRequest)},
{476, -1, -1, sizeof(::tari::rpc::TransactionStateResponse)}, {479, -1, -1, sizeof(::tari::rpc::TransactionStateResponse)},
{485, -1, -1, sizeof(::tari::rpc::MempoolStatsResponse)}, {488, -1, -1, sizeof(::tari::rpc::MempoolStatsResponse)},
{496, -1, -1, sizeof(::tari::rpc::GetActiveValidatorNodesRequest)}, {499, -1, -1, sizeof(::tari::rpc::GetActiveValidatorNodesRequest)},
{505, -1, -1, sizeof(::tari::rpc::GetActiveValidatorNodesResponse)}, {508, -1, -1, sizeof(::tari::rpc::GetActiveValidatorNodesResponse)},
{515, -1, -1, sizeof(::tari::rpc::GetShardKeyRequest)}, {518, -1, -1, sizeof(::tari::rpc::GetShardKeyRequest)},
{525, -1, -1, sizeof(::tari::rpc::GetShardKeyResponse)}, {528, -1, -1, sizeof(::tari::rpc::GetShardKeyResponse)},
{535, -1, -1, sizeof(::tari::rpc::GetTemplateRegistrationsRequest)}, {538, -1, -1, sizeof(::tari::rpc::GetTemplateRegistrationsRequest)},
{545, 555, -1, sizeof(::tari::rpc::GetTemplateRegistrationResponse)}, {548, 558, -1, sizeof(::tari::rpc::GetTemplateRegistrationResponse)},
{557, -1, -1, sizeof(::tari::rpc::BlockInfo)}, {560, -1, -1, sizeof(::tari::rpc::BlockInfo)},
{568, -1, -1, sizeof(::tari::rpc::GetSideChainUtxosRequest)}, {571, -1, -1, sizeof(::tari::rpc::GetSideChainUtxosRequest)},
{578, 588, -1, sizeof(::tari::rpc::GetSideChainUtxosResponse)}, {581, 591, -1, sizeof(::tari::rpc::GetSideChainUtxosResponse)},
}; };
static const ::_pb::Message* const file_default_instances[] = { static const ::_pb::Message* const file_default_instances[] = {
&::tari::rpc::_GetAssetMetadataRequest_default_instance_._instance, &::tari::rpc::_GetAssetMetadataRequest_default_instance_._instance,
@ -1932,132 +1941,134 @@ const char descriptor_table_protodef_base_5fnode_2eproto[] ABSL_ATTRIBUTE_SECTIO
"\002 \001(\004\022\024\n\014peer_node_id\030\003 \003(\014\"d\n\024SyncProgr" "\002 \001(\004\022\024\n\014peer_node_id\030\003 \003(\014\"d\n\024SyncProgr"
"essResponse\022\022\n\ntip_height\030\001 \001(\004\022\024\n\014local" "essResponse\022\022\n\ntip_height\030\001 \001(\004\022\024\n\014local"
"_height\030\002 \001(\004\022\"\n\005state\030\003 \001(\0162\023.tari.rpc." "_height\030\002 \001(\004\022\"\n\005state\030\003 \001(\0162\023.tari.rpc."
"SyncState\"b\n\021GetNewBlockResult\022\022\n\nblock_" "SyncState\"z\n\021GetNewBlockResult\022\022\n\nblock_"
"hash\030\001 \001(\014\022\036\n\005block\030\002 \001(\0132\017.tari.rpc.Blo" "hash\030\001 \001(\014\022\036\n\005block\030\002 \001(\0132\017.tari.rpc.Blo"
"ck\022\031\n\021merge_mining_hash\030\003 \001(\014\"{\n\025GetNewB" "ck\022\031\n\021merge_mining_hash\030\003 \001(\014\022\026\n\016tari_un"
"lockBlobResult\022\022\n\nblock_hash\030\001 \001(\014\022\016\n\006he" "ique_id\030\004 \001(\014\"\223\001\n\025GetNewBlockBlobResult\022"
"ader\030\002 \001(\014\022\022\n\nblock_body\030\003 \001(\014\022\031\n\021merge_" "\022\n\nblock_hash\030\001 \001(\014\022\016\n\006header\030\002 \001(\014\022\022\n\nb"
"mining_hash\030\004 \001(\014\022\017\n\007utxo_mr\030\005 \001(\014\"k\n\tMi" "lock_body\030\003 \001(\014\022\031\n\021merge_mining_hash\030\004 \001"
"nerData\022\037\n\004algo\030\001 \001(\0132\021.tari.rpc.PowAlgo" "(\014\022\017\n\007utxo_mr\030\005 \001(\014\022\026\n\016tari_unique_id\030\006 "
"\022\031\n\021target_difficulty\030\002 \001(\004\022\016\n\006reward\030\003 " "\001(\014\"k\n\tMinerData\022\037\n\004algo\030\001 \001(\0132\021.tari.rp"
"\001(\004\022\022\n\ntotal_fees\030\005 \001(\004\"\?\n\024SearchKernels" "c.PowAlgo\022\031\n\021target_difficulty\030\002 \001(\004\022\016\n\006"
"Request\022\'\n\nsignatures\030\001 \003(\0132\023.tari.rpc.S" "reward\030\003 \001(\004\022\022\n\ntotal_fees\030\005 \001(\004\"\?\n\024Sear"
"ignature\")\n\022SearchUtxosRequest\022\023\n\013commit" "chKernelsRequest\022\'\n\nsignatures\030\001 \003(\0132\023.t"
"ments\030\001 \003(\014\"+\n\031FetchMatchingUtxosRequest" "ari.rpc.Signature\")\n\022SearchUtxosRequest\022"
"\022\016\n\006hashes\030\001 \003(\014\"I\n\032FetchMatchingUtxosRe" "\023\n\013commitments\030\001 \003(\014\"+\n\031FetchMatchingUtx"
"sponse\022+\n\006output\030\001 \001(\0132\033.tari.rpc.Transa" "osRequest\022\016\n\006hashes\030\001 \003(\014\"I\n\032FetchMatchi"
"ctionOutput\"0\n\020GetPeersResponse\022\034\n\004peer\030" "ngUtxosResponse\022+\n\006output\030\001 \001(\0132\033.tari.r"
"\001 \001(\0132\016.tari.rpc.Peer\"\021\n\017GetPeersRequest" "pc.TransactionOutput\"0\n\020GetPeersResponse"
"\"F\n\030SubmitTransactionRequest\022*\n\013transact" "\022\034\n\004peer\030\001 \001(\0132\016.tari.rpc.Peer\"\021\n\017GetPee"
"ion\030\001 \001(\0132\025.tari.rpc.Transaction\"N\n\031Subm" "rsRequest\"F\n\030SubmitTransactionRequest\022*\n"
"itTransactionResponse\0221\n\006result\030\001 \001(\0162!." "\013transaction\030\001 \001(\0132\025.tari.rpc.Transactio"
"tari.rpc.SubmitTransactionResult\"\037\n\035GetM" "n\"N\n\031SubmitTransactionResponse\0221\n\006result"
"empoolTransactionsRequest\"L\n\036GetMempoolT" "\030\001 \001(\0162!.tari.rpc.SubmitTransactionResul"
"ransactionsResponse\022*\n\013transaction\030\001 \001(\013" "t\"\037\n\035GetMempoolTransactionsRequest\"L\n\036Ge"
"2\025.tari.rpc.Transaction\"B\n\027TransactionSt" "tMempoolTransactionsResponse\022*\n\013transact"
"ateRequest\022\'\n\nexcess_sig\030\001 \001(\0132\023.tari.rp" "ion\030\001 \001(\0132\025.tari.rpc.Transaction\"B\n\027Tran"
"c.Signature\"I\n\030TransactionStateResponse\022" "sactionStateRequest\022\'\n\nexcess_sig\030\001 \001(\0132"
"-\n\006result\030\001 \001(\0162\035.tari.rpc.TransactionLo" "\023.tari.rpc.Signature\"I\n\030TransactionState"
"cation\"^\n\024MempoolStatsResponse\022\027\n\017unconf" "Response\022-\n\006result\030\001 \001(\0162\035.tari.rpc.Tran"
"irmed_txs\030\002 \001(\004\022\021\n\treorg_txs\030\003 \001(\004\022\032\n\022un" "sactionLocation\"^\n\024MempoolStatsResponse\022"
"confirmed_weight\030\004 \001(\004\"0\n\036GetActiveValid" "\027\n\017unconfirmed_txs\030\002 \001(\004\022\021\n\treorg_txs\030\003 "
"atorNodesRequest\022\016\n\006height\030\001 \001(\004\"H\n\037GetA" "\001(\004\022\032\n\022unconfirmed_weight\030\004 \001(\004\"0\n\036GetAc"
"ctiveValidatorNodesResponse\022\021\n\tshard_key" "tiveValidatorNodesRequest\022\016\n\006height\030\001 \001("
"\030\001 \001(\014\022\022\n\npublic_key\030\002 \001(\014\"8\n\022GetShardKe" "\004\"H\n\037GetActiveValidatorNodesResponse\022\021\n\t"
"yRequest\022\016\n\006height\030\001 \001(\004\022\022\n\npublic_key\030\002" "shard_key\030\001 \001(\014\022\022\n\npublic_key\030\002 \001(\014\"8\n\022G"
" \001(\014\"7\n\023GetShardKeyResponse\022\021\n\tshard_key" "etShardKeyRequest\022\016\n\006height\030\001 \001(\004\022\022\n\npub"
"\030\001 \001(\014\022\r\n\005found\030\002 \001(\010\"D\n\037GetTemplateRegi" "lic_key\030\002 \001(\014\"7\n\023GetShardKeyResponse\022\021\n\t"
"strationsRequest\022\022\n\nstart_hash\030\001 \001(\014\022\r\n\005" "shard_key\030\001 \001(\014\022\r\n\005found\030\002 \001(\010\"D\n\037GetTem"
"count\030\002 \001(\004\"j\n\037GetTemplateRegistrationRe" "plateRegistrationsRequest\022\022\n\nstart_hash\030"
"sponse\022\021\n\tutxo_hash\030\001 \001(\014\0224\n\014registratio" "\001 \001(\014\022\r\n\005count\030\002 \001(\004\"j\n\037GetTemplateRegis"
"n\030\002 \001(\0132\036.tari.rpc.TemplateRegistration\"" "trationResponse\022\021\n\tutxo_hash\030\001 \001(\014\0224\n\014re"
"B\n\tBlockInfo\022\016\n\006height\030\001 \001(\004\022\014\n\004hash\030\002 \001" "gistration\030\002 \001(\0132\036.tari.rpc.TemplateRegi"
"(\014\022\027\n\017next_block_hash\030\003 \001(\014\"=\n\030GetSideCh" "stration\"B\n\tBlockInfo\022\016\n\006height\030\001 \001(\004\022\014\n"
"ainUtxosRequest\022\022\n\nstart_hash\030\001 \001(\014\022\r\n\005c" "\004hash\030\002 \001(\014\022\027\n\017next_block_hash\030\003 \001(\014\"=\n\030"
"ount\030\002 \001(\004\"r\n\031GetSideChainUtxosResponse\022" "GetSideChainUtxosRequest\022\022\n\nstart_hash\030\001"
"\'\n\nblock_info\030\001 \001(\0132\023.tari.rpc.BlockInfo" " \001(\014\022\r\n\005count\030\002 \001(\004\"r\n\031GetSideChainUtxos"
"\022,\n\007outputs\030\002 \003(\0132\033.tari.rpc.Transaction" "Response\022\'\n\nblock_info\030\001 \001(\0132\023.tari.rpc."
"Output*\200\001\n\rBaseNodeState\022\014\n\010START_UP\020\000\022\017" "BlockInfo\022,\n\007outputs\030\002 \003(\0132\033.tari.rpc.Tr"
"\n\013HEADER_SYNC\020\001\022\020\n\014HORIZON_SYNC\020\002\022\016\n\nCON" "ansactionOutput*\200\001\n\rBaseNodeState\022\014\n\010STA"
"NECTING\020\003\022\016\n\nBLOCK_SYNC\020\004\022\r\n\tLISTENING\020\005" "RT_UP\020\000\022\017\n\013HEADER_SYNC\020\001\022\020\n\014HORIZON_SYNC"
"\022\017\n\013SYNC_FAILED\020\006*<\n\010CalcType\022\010\n\004MEAN\020\000\022" "\020\002\022\016\n\nCONNECTING\020\003\022\016\n\nBLOCK_SYNC\020\004\022\r\n\tLI"
"\n\n\006MEDIAN\020\001\022\014\n\010QUANTILE\020\002\022\014\n\010QUARTILE\020\003*" "STENING\020\005\022\017\n\013SYNC_FAILED\020\006*<\n\010CalcType\022\010"
",\n\007Sorting\022\020\n\014SORTING_DESC\020\000\022\017\n\013SORTING_" "\n\004MEAN\020\000\022\n\n\006MEDIAN\020\001\022\014\n\010QUANTILE\020\002\022\014\n\010QU"
"ASC\020\001*b\n\tSyncState\022\013\n\007STARTUP\020\000\022\023\n\017HEADE" "ARTILE\020\003*,\n\007Sorting\022\020\n\014SORTING_DESC\020\000\022\017\n"
"R_STARTING\020\001\022\n\n\006HEADER\020\002\022\022\n\016BLOCK_STARTI" "\013SORTING_ASC\020\001*b\n\tSyncState\022\013\n\007STARTUP\020\000"
"NG\020\003\022\t\n\005BLOCK\020\004\022\010\n\004DONE\020\005*t\n\027SubmitTrans" "\022\023\n\017HEADER_STARTING\020\001\022\n\n\006HEADER\020\002\022\022\n\016BLO"
"actionResult\022\010\n\004NONE\020\000\022\014\n\010ACCEPTED\020\001\022 \n\034" "CK_STARTING\020\003\022\t\n\005BLOCK\020\004\022\010\n\004DONE\020\005*t\n\027Su"
"NOT_PROCESSABLE_AT_THIS_TIME\020\002\022\021\n\rALREAD" "bmitTransactionResult\022\010\n\004NONE\020\000\022\014\n\010ACCEP"
"Y_MINED\020\003\022\014\n\010REJECTED\020\004*J\n\023TransactionLo" "TED\020\001\022 \n\034NOT_PROCESSABLE_AT_THIS_TIME\020\002\022"
"cation\022\013\n\007UNKNOWN\020\000\022\013\n\007MEMPOOL\020\001\022\t\n\005MINE" "\021\n\rALREADY_MINED\020\003\022\014\n\010REJECTED\020\004*J\n\023Tran"
"D\020\002\022\016\n\nNOT_STORED\020\0032\377\024\n\010BaseNode\022L\n\013List" "sactionLocation\022\013\n\007UNKNOWN\020\000\022\013\n\007MEMPOOL\020"
"Headers\022\034.tari.rpc.ListHeadersRequest\032\035." "\001\022\t\n\005MINED\020\002\022\016\n\nNOT_STORED\020\0032\377\024\n\010BaseNod"
"tari.rpc.BlockHeaderResponse0\001\022R\n\017GetHea" "e\022L\n\013ListHeaders\022\034.tari.rpc.ListHeadersR"
"derByHash\022 .tari.rpc.GetHeaderByHashRequ" "equest\032\035.tari.rpc.BlockHeaderResponse0\001\022"
"est\032\035.tari.rpc.BlockHeaderResponse\022D\n\tGe" "R\n\017GetHeaderByHash\022 .tari.rpc.GetHeaderB"
"tBlocks\022\032.tari.rpc.GetBlocksRequest\032\031.ta" "yHashRequest\032\035.tari.rpc.BlockHeaderRespo"
"ri.rpc.HistoricalBlock0\001\022H\n\016GetBlockTimi" "nse\022D\n\tGetBlocks\022\032.tari.rpc.GetBlocksReq"
"ng\022\027.tari.rpc.HeightRequest\032\035.tari.rpc.B" "uest\032\031.tari.rpc.HistoricalBlock0\001\022H\n\016Get"
"lockTimingResponse\022C\n\014GetConstants\022\025.tar" "BlockTiming\022\027.tari.rpc.HeightRequest\032\035.t"
"i.rpc.BlockHeight\032\034.tari.rpc.ConsensusCo" "ari.rpc.BlockTimingResponse\022C\n\014GetConsta"
"nstants\022I\n\014GetBlockSize\022\033.tari.rpc.Block" "nts\022\025.tari.rpc.BlockHeight\032\034.tari.rpc.Co"
"GroupRequest\032\034.tari.rpc.BlockGroupRespon" "nsensusConstants\022I\n\014GetBlockSize\022\033.tari."
"se\022I\n\014GetBlockFees\022\033.tari.rpc.BlockGroup" "rpc.BlockGroupRequest\032\034.tari.rpc.BlockGr"
"Request\032\034.tari.rpc.BlockGroupResponse\0224\n" "oupResponse\022I\n\014GetBlockFees\022\033.tari.rpc.B"
"\nGetVersion\022\017.tari.rpc.Empty\032\025.tari.rpc." "lockGroupRequest\032\034.tari.rpc.BlockGroupRe"
"StringValue\022<\n\017CheckForUpdates\022\017.tari.rp" "sponse\0224\n\nGetVersion\022\017.tari.rpc.Empty\032\025."
"c.Empty\032\030.tari.rpc.SoftwareUpdate\022W\n\026Get" "tari.rpc.StringValue\022<\n\017CheckForUpdates\022"
"TokensInCirculation\022\032.tari.rpc.GetBlocks" "\017.tari.rpc.Empty\032\030.tari.rpc.SoftwareUpda"
"Request\032\037.tari.rpc.ValueAtHeightResponse" "te\022W\n\026GetTokensInCirculation\022\032.tari.rpc."
"0\001\022V\n\024GetNetworkDifficulty\022\027.tari.rpc.He" "GetBlocksRequest\032\037.tari.rpc.ValueAtHeigh"
"ightRequest\032#.tari.rpc.NetworkDifficulty" "tResponse0\001\022V\n\024GetNetworkDifficulty\022\027.ta"
"Response0\001\022\\\n\023GetNewBlockTemplate\022!.tari" "ri.rpc.HeightRequest\032#.tari.rpc.NetworkD"
".rpc.NewBlockTemplateRequest\032\".tari.rpc." "ifficultyResponse0\001\022\\\n\023GetNewBlockTempla"
"NewBlockTemplateResponse\022F\n\013GetNewBlock\022" "te\022!.tari.rpc.NewBlockTemplateRequest\032\"."
"\032.tari.rpc.NewBlockTemplate\032\033.tari.rpc.G" "tari.rpc.NewBlockTemplateResponse\022F\n\013Get"
"etNewBlockResult\022N\n\017GetNewBlockBlob\022\032.ta" "NewBlock\022\032.tari.rpc.NewBlockTemplate\032\033.t"
"ri.rpc.NewBlockTemplate\032\037.tari.rpc.GetNe" "ari.rpc.GetNewBlockResult\022N\n\017GetNewBlock"
"wBlockBlobResult\022=\n\013SubmitBlock\022\017.tari.r" "Blob\022\032.tari.rpc.NewBlockTemplate\032\037.tari."
"pc.Block\032\035.tari.rpc.SubmitBlockResponse\022" "rpc.GetNewBlockBlobResult\022=\n\013SubmitBlock"
"L\n\017SubmitBlockBlob\022\032.tari.rpc.BlockBlobR" "\022\017.tari.rpc.Block\032\035.tari.rpc.SubmitBlock"
"equest\032\035.tari.rpc.SubmitBlockResponse\022\\\n" "Response\022L\n\017SubmitBlockBlob\022\032.tari.rpc.B"
"\021SubmitTransaction\022\".tari.rpc.SubmitTran" "lockBlobRequest\032\035.tari.rpc.SubmitBlockRe"
"sactionRequest\032#.tari.rpc.SubmitTransact" "sponse\022\\\n\021SubmitTransaction\022\".tari.rpc.S"
"ionResponse\022:\n\013GetSyncInfo\022\017.tari.rpc.Em" "ubmitTransactionRequest\032#.tari.rpc.Submi"
"pty\032\032.tari.rpc.SyncInfoResponse\022B\n\017GetSy" "tTransactionResponse\022:\n\013GetSyncInfo\022\017.ta"
"ncProgress\022\017.tari.rpc.Empty\032\036.tari.rpc.S" "ri.rpc.Empty\032\032.tari.rpc.SyncInfoResponse"
"yncProgressResponse\0228\n\nGetTipInfo\022\017.tari" "\022B\n\017GetSyncProgress\022\017.tari.rpc.Empty\032\036.t"
".rpc.Empty\032\031.tari.rpc.TipInfoResponse\022L\n" "ari.rpc.SyncProgressResponse\0228\n\nGetTipIn"
"\rSearchKernels\022\036.tari.rpc.SearchKernelsR" "fo\022\017.tari.rpc.Empty\032\031.tari.rpc.TipInfoRe"
"equest\032\031.tari.rpc.HistoricalBlock0\001\022H\n\013S" "sponse\022L\n\rSearchKernels\022\036.tari.rpc.Searc"
"earchUtxos\022\034.tari.rpc.SearchUtxosRequest" "hKernelsRequest\032\031.tari.rpc.HistoricalBlo"
"\032\031.tari.rpc.HistoricalBlock0\001\022a\n\022FetchMa" "ck0\001\022H\n\013SearchUtxos\022\034.tari.rpc.SearchUtx"
"tchingUtxos\022#.tari.rpc.FetchMatchingUtxo" "osRequest\032\031.tari.rpc.HistoricalBlock0\001\022a"
"sRequest\032$.tari.rpc.FetchMatchingUtxosRe" "\n\022FetchMatchingUtxos\022#.tari.rpc.FetchMat"
"sponse0\001\022C\n\010GetPeers\022\031.tari.rpc.GetPeers" "chingUtxosRequest\032$.tari.rpc.FetchMatchi"
"Request\032\032.tari.rpc.GetPeersResponse0\001\022m\n" "ngUtxosResponse0\001\022C\n\010GetPeers\022\031.tari.rpc"
"\026GetMempoolTransactions\022\'.tari.rpc.GetMe" ".GetPeersRequest\032\032.tari.rpc.GetPeersResp"
"mpoolTransactionsRequest\032(.tari.rpc.GetM" "onse0\001\022m\n\026GetMempoolTransactions\022\'.tari."
"empoolTransactionsResponse0\001\022Y\n\020Transact" "rpc.GetMempoolTransactionsRequest\032(.tari"
"ionState\022!.tari.rpc.TransactionStateRequ" ".rpc.GetMempoolTransactionsResponse0\001\022Y\n"
"est\032\".tari.rpc.TransactionStateResponse\022" "\020TransactionState\022!.tari.rpc.Transaction"
"3\n\010Identify\022\017.tari.rpc.Empty\032\026.tari.rpc." "StateRequest\032\".tari.rpc.TransactionState"
"NodeIdentity\022D\n\020GetNetworkStatus\022\017.tari." "Response\0223\n\010Identify\022\017.tari.rpc.Empty\032\026."
"rpc.Empty\032\037.tari.rpc.NetworkStatusRespon" "tari.rpc.NodeIdentity\022D\n\020GetNetworkStatu"
"se\022K\n\022ListConnectedPeers\022\017.tari.rpc.Empt" "s\022\017.tari.rpc.Empty\032\037.tari.rpc.NetworkSta"
"y\032$.tari.rpc.ListConnectedPeersResponse\022" "tusResponse\022K\n\022ListConnectedPeers\022\017.tari"
"B\n\017GetMempoolStats\022\017.tari.rpc.Empty\032\036.ta" ".rpc.Empty\032$.tari.rpc.ListConnectedPeers"
"ri.rpc.MempoolStatsResponse\022p\n\027GetActive" "Response\022B\n\017GetMempoolStats\022\017.tari.rpc.E"
"ValidatorNodes\022(.tari.rpc.GetActiveValid" "mpty\032\036.tari.rpc.MempoolStatsResponse\022p\n\027"
"atorNodesRequest\032).tari.rpc.GetActiveVal" "GetActiveValidatorNodes\022(.tari.rpc.GetAc"
"idatorNodesResponse0\001\022J\n\013GetShardKey\022\034.t" "tiveValidatorNodesRequest\032).tari.rpc.Get"
"ari.rpc.GetShardKeyRequest\032\035.tari.rpc.Ge" "ActiveValidatorNodesResponse0\001\022J\n\013GetSha"
"tShardKeyResponse\022r\n\030GetTemplateRegistra" "rdKey\022\034.tari.rpc.GetShardKeyRequest\032\035.ta"
"tions\022).tari.rpc.GetTemplateRegistration" "ri.rpc.GetShardKeyResponse\022r\n\030GetTemplat"
"sRequest\032).tari.rpc.GetTemplateRegistrat" "eRegistrations\022).tari.rpc.GetTemplateReg"
"ionResponse0\001\022^\n\021GetSideChainUtxos\022\".tar" "istrationsRequest\032).tari.rpc.GetTemplate"
"i.rpc.GetSideChainUtxosRequest\032#.tari.rp" "RegistrationResponse0\001\022^\n\021GetSideChainUt"
"c.GetSideChainUtxosResponse0\001b\006proto3" "xos\022\".tari.rpc.GetSideChainUtxosRequest\032"
"#.tari.rpc.GetSideChainUtxosResponse0\001b\006"
"proto3"
}; };
static const ::_pbi::DescriptorTable* const descriptor_table_base_5fnode_2eproto_deps[5] = static const ::_pbi::DescriptorTable* const descriptor_table_base_5fnode_2eproto_deps[5] =
{ {
@ -2071,7 +2082,7 @@ static ::absl::once_flag descriptor_table_base_5fnode_2eproto_once;
const ::_pbi::DescriptorTable descriptor_table_base_5fnode_2eproto = { const ::_pbi::DescriptorTable descriptor_table_base_5fnode_2eproto = {
false, false,
false, false,
7757, 7806,
descriptor_table_protodef_base_5fnode_2eproto, descriptor_table_protodef_base_5fnode_2eproto,
"base_node.proto", "base_node.proto",
&descriptor_table_base_5fnode_2eproto_once, &descriptor_table_base_5fnode_2eproto_once,
@ -8993,7 +9004,8 @@ inline PROTOBUF_NDEBUG_INLINE GetNewBlockResult::Impl_::Impl_(
: _has_bits_{from._has_bits_}, : _has_bits_{from._has_bits_},
_cached_size_{0}, _cached_size_{0},
block_hash_(arena, from.block_hash_), block_hash_(arena, from.block_hash_),
merge_mining_hash_(arena, from.merge_mining_hash_) {} merge_mining_hash_(arena, from.merge_mining_hash_),
tari_unique_id_(arena, from.tari_unique_id_) {}
GetNewBlockResult::GetNewBlockResult( GetNewBlockResult::GetNewBlockResult(
::google::protobuf::Arena* arena, ::google::protobuf::Arena* arena,
@ -9016,7 +9028,8 @@ inline PROTOBUF_NDEBUG_INLINE GetNewBlockResult::Impl_::Impl_(
::google::protobuf::Arena* arena) ::google::protobuf::Arena* arena)
: _cached_size_{0}, : _cached_size_{0},
block_hash_(arena), block_hash_(arena),
merge_mining_hash_(arena) {} merge_mining_hash_(arena),
tari_unique_id_(arena) {}
inline void GetNewBlockResult::SharedCtor(::_pb::Arena* arena) { inline void GetNewBlockResult::SharedCtor(::_pb::Arena* arena) {
new (&_impl_) Impl_(internal_visibility(), arena); new (&_impl_) Impl_(internal_visibility(), arena);
@ -9031,6 +9044,7 @@ inline void GetNewBlockResult::SharedDtor() {
ABSL_DCHECK(GetArena() == nullptr); ABSL_DCHECK(GetArena() == nullptr);
_impl_.block_hash_.Destroy(); _impl_.block_hash_.Destroy();
_impl_.merge_mining_hash_.Destroy(); _impl_.merge_mining_hash_.Destroy();
_impl_.tari_unique_id_.Destroy();
delete _impl_.block_; delete _impl_.block_;
_impl_.~Impl_(); _impl_.~Impl_();
} }
@ -9058,6 +9072,7 @@ PROTOBUF_NOINLINE void GetNewBlockResult::Clear() {
_impl_.block_hash_.ClearToEmpty(); _impl_.block_hash_.ClearToEmpty();
_impl_.merge_mining_hash_.ClearToEmpty(); _impl_.merge_mining_hash_.ClearToEmpty();
_impl_.tari_unique_id_.ClearToEmpty();
cached_has_bits = _impl_._has_bits_[0]; cached_has_bits = _impl_._has_bits_[0];
if (cached_has_bits & 0x00000001u) { if (cached_has_bits & 0x00000001u) {
ABSL_DCHECK(_impl_.block_ != nullptr); ABSL_DCHECK(_impl_.block_ != nullptr);
@ -9075,15 +9090,15 @@ const char* GetNewBlockResult::_InternalParse(
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<2, 3, 1, 0, 2> GetNewBlockResult::_table_ = { const ::_pbi::TcParseTable<2, 4, 1, 0, 2> GetNewBlockResult::_table_ = {
{ {
PROTOBUF_FIELD_OFFSET(GetNewBlockResult, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(GetNewBlockResult, _impl_._has_bits_),
0, // no _extensions_ 0, // no _extensions_
3, 24, // max_field_number, fast_idx_mask 4, 24, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table), offsetof(decltype(_table_), field_lookup_table),
4294967288, // skipmap 4294967280, // skipmap
offsetof(decltype(_table_), field_entries), offsetof(decltype(_table_), field_entries),
3, // num_field_entries 4, // num_field_entries
1, // num_aux_entries 1, // num_aux_entries
offsetof(decltype(_table_), aux_entries), offsetof(decltype(_table_), aux_entries),
&_GetNewBlockResult_default_instance_._instance, &_GetNewBlockResult_default_instance_._instance,
@ -9092,7 +9107,9 @@ const ::_pbi::TcParseTable<2, 3, 1, 0, 2> GetNewBlockResult::_table_ = {
::_pbi::TcParser::GetTable<::tari::rpc::GetNewBlockResult>(), // to_prefetch ::_pbi::TcParser::GetTable<::tari::rpc::GetNewBlockResult>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE #endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{ }, {{
{::_pbi::TcParser::MiniParse, {}}, // bytes tari_unique_id = 4;
{::_pbi::TcParser::FastBS1,
{34, 63, 0, PROTOBUF_FIELD_OFFSET(GetNewBlockResult, _impl_.tari_unique_id_)}},
// bytes block_hash = 1; // bytes block_hash = 1;
{::_pbi::TcParser::FastBS1, {::_pbi::TcParser::FastBS1,
{10, 63, 0, PROTOBUF_FIELD_OFFSET(GetNewBlockResult, _impl_.block_hash_)}}, {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetNewBlockResult, _impl_.block_hash_)}},
@ -9114,6 +9131,9 @@ const ::_pbi::TcParseTable<2, 3, 1, 0, 2> GetNewBlockResult::_table_ = {
// bytes merge_mining_hash = 3; // bytes merge_mining_hash = 3;
{PROTOBUF_FIELD_OFFSET(GetNewBlockResult, _impl_.merge_mining_hash_), -1, 0, {PROTOBUF_FIELD_OFFSET(GetNewBlockResult, _impl_.merge_mining_hash_), -1, 0,
(0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)},
// bytes tari_unique_id = 4;
{PROTOBUF_FIELD_OFFSET(GetNewBlockResult, _impl_.tari_unique_id_), -1, 0,
(0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)},
}}, {{ }}, {{
{::_pbi::TcParser::GetTable<::tari::rpc::Block>()}, {::_pbi::TcParser::GetTable<::tari::rpc::Block>()},
}}, {{ }}, {{
@ -9146,6 +9166,12 @@ const ::_pbi::TcParseTable<2, 3, 1, 0, 2> GetNewBlockResult::_table_ = {
target = stream->WriteBytesMaybeAliased(3, _s, target); target = stream->WriteBytesMaybeAliased(3, _s, target);
} }
// bytes tari_unique_id = 4;
if (!this->_internal_tari_unique_id().empty()) {
const std::string& _s = this->_internal_tari_unique_id();
target = stream->WriteBytesMaybeAliased(4, _s, target);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target = target =
::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
@ -9175,6 +9201,12 @@ const ::_pbi::TcParseTable<2, 3, 1, 0, 2> GetNewBlockResult::_table_ = {
this->_internal_merge_mining_hash()); this->_internal_merge_mining_hash());
} }
// bytes tari_unique_id = 4;
if (!this->_internal_tari_unique_id().empty()) {
total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize(
this->_internal_tari_unique_id());
}
// .tari.rpc.Block block = 2; // .tari.rpc.Block block = 2;
cached_has_bits = _impl_._has_bits_[0]; cached_has_bits = _impl_._has_bits_[0];
if (cached_has_bits & 0x00000001u) { if (cached_has_bits & 0x00000001u) {
@ -9201,6 +9233,9 @@ void GetNewBlockResult::MergeImpl(::google::protobuf::MessageLite& to_msg, const
if (!from._internal_merge_mining_hash().empty()) { if (!from._internal_merge_mining_hash().empty()) {
_this->_internal_set_merge_mining_hash(from._internal_merge_mining_hash()); _this->_internal_set_merge_mining_hash(from._internal_merge_mining_hash());
} }
if (!from._internal_tari_unique_id().empty()) {
_this->_internal_set_tari_unique_id(from._internal_tari_unique_id());
}
cached_has_bits = from._impl_._has_bits_[0]; cached_has_bits = from._impl_._has_bits_[0];
if (cached_has_bits & 0x00000001u) { if (cached_has_bits & 0x00000001u) {
ABSL_DCHECK(from._impl_.block_ != nullptr); ABSL_DCHECK(from._impl_.block_ != nullptr);
@ -9234,6 +9269,7 @@ void GetNewBlockResult::InternalSwap(GetNewBlockResult* PROTOBUF_RESTRICT other)
swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.block_hash_, &other->_impl_.block_hash_, arena); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.block_hash_, &other->_impl_.block_hash_, arena);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.merge_mining_hash_, &other->_impl_.merge_mining_hash_, arena); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.merge_mining_hash_, &other->_impl_.merge_mining_hash_, arena);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.tari_unique_id_, &other->_impl_.tari_unique_id_, arena);
swap(_impl_.block_, other->_impl_.block_); swap(_impl_.block_, other->_impl_.block_);
} }
@ -9261,6 +9297,7 @@ inline PROTOBUF_NDEBUG_INLINE GetNewBlockBlobResult::Impl_::Impl_(
block_body_(arena, from.block_body_), block_body_(arena, from.block_body_),
merge_mining_hash_(arena, from.merge_mining_hash_), merge_mining_hash_(arena, from.merge_mining_hash_),
utxo_mr_(arena, from.utxo_mr_), utxo_mr_(arena, from.utxo_mr_),
tari_unique_id_(arena, from.tari_unique_id_),
_cached_size_{0} {} _cached_size_{0} {}
GetNewBlockBlobResult::GetNewBlockBlobResult( GetNewBlockBlobResult::GetNewBlockBlobResult(
@ -9283,6 +9320,7 @@ inline PROTOBUF_NDEBUG_INLINE GetNewBlockBlobResult::Impl_::Impl_(
block_body_(arena), block_body_(arena),
merge_mining_hash_(arena), merge_mining_hash_(arena),
utxo_mr_(arena), utxo_mr_(arena),
tari_unique_id_(arena),
_cached_size_{0} {} _cached_size_{0} {}
inline void GetNewBlockBlobResult::SharedCtor(::_pb::Arena* arena) { inline void GetNewBlockBlobResult::SharedCtor(::_pb::Arena* arena) {
@ -9300,6 +9338,7 @@ inline void GetNewBlockBlobResult::SharedDtor() {
_impl_.block_body_.Destroy(); _impl_.block_body_.Destroy();
_impl_.merge_mining_hash_.Destroy(); _impl_.merge_mining_hash_.Destroy();
_impl_.utxo_mr_.Destroy(); _impl_.utxo_mr_.Destroy();
_impl_.tari_unique_id_.Destroy();
_impl_.~Impl_(); _impl_.~Impl_();
} }
@ -9329,6 +9368,7 @@ PROTOBUF_NOINLINE void GetNewBlockBlobResult::Clear() {
_impl_.block_body_.ClearToEmpty(); _impl_.block_body_.ClearToEmpty();
_impl_.merge_mining_hash_.ClearToEmpty(); _impl_.merge_mining_hash_.ClearToEmpty();
_impl_.utxo_mr_.ClearToEmpty(); _impl_.utxo_mr_.ClearToEmpty();
_impl_.tari_unique_id_.ClearToEmpty();
_internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
} }
@ -9340,15 +9380,15 @@ const char* GetNewBlockBlobResult::_InternalParse(
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<3, 5, 0, 0, 2> GetNewBlockBlobResult::_table_ = { const ::_pbi::TcParseTable<3, 6, 0, 0, 2> GetNewBlockBlobResult::_table_ = {
{ {
0, // no _has_bits_ 0, // no _has_bits_
0, // no _extensions_ 0, // no _extensions_
5, 56, // max_field_number, fast_idx_mask 6, 56, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table), offsetof(decltype(_table_), field_lookup_table),
4294967264, // skipmap 4294967232, // skipmap
offsetof(decltype(_table_), field_entries), offsetof(decltype(_table_), field_entries),
5, // num_field_entries 6, // num_field_entries
0, // num_aux_entries 0, // num_aux_entries
offsetof(decltype(_table_), field_names), // no aux_entries offsetof(decltype(_table_), field_names), // no aux_entries
&_GetNewBlockBlobResult_default_instance_._instance, &_GetNewBlockBlobResult_default_instance_._instance,
@ -9373,7 +9413,9 @@ const ::_pbi::TcParseTable<3, 5, 0, 0, 2> GetNewBlockBlobResult::_table_ = {
// bytes utxo_mr = 5; // bytes utxo_mr = 5;
{::_pbi::TcParser::FastBS1, {::_pbi::TcParser::FastBS1,
{42, 63, 0, PROTOBUF_FIELD_OFFSET(GetNewBlockBlobResult, _impl_.utxo_mr_)}}, {42, 63, 0, PROTOBUF_FIELD_OFFSET(GetNewBlockBlobResult, _impl_.utxo_mr_)}},
{::_pbi::TcParser::MiniParse, {}}, // bytes tari_unique_id = 6;
{::_pbi::TcParser::FastBS1,
{50, 63, 0, PROTOBUF_FIELD_OFFSET(GetNewBlockBlobResult, _impl_.tari_unique_id_)}},
{::_pbi::TcParser::MiniParse, {}}, {::_pbi::TcParser::MiniParse, {}},
}}, {{ }}, {{
65535, 65535 65535, 65535
@ -9393,6 +9435,9 @@ const ::_pbi::TcParseTable<3, 5, 0, 0, 2> GetNewBlockBlobResult::_table_ = {
// bytes utxo_mr = 5; // bytes utxo_mr = 5;
{PROTOBUF_FIELD_OFFSET(GetNewBlockBlobResult, _impl_.utxo_mr_), 0, 0, {PROTOBUF_FIELD_OFFSET(GetNewBlockBlobResult, _impl_.utxo_mr_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)},
// bytes tari_unique_id = 6;
{PROTOBUF_FIELD_OFFSET(GetNewBlockBlobResult, _impl_.tari_unique_id_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)},
}}, }},
// no aux_entries // no aux_entries
{{ {{
@ -9436,6 +9481,12 @@ const ::_pbi::TcParseTable<3, 5, 0, 0, 2> GetNewBlockBlobResult::_table_ = {
target = stream->WriteBytesMaybeAliased(5, _s, target); target = stream->WriteBytesMaybeAliased(5, _s, target);
} }
// bytes tari_unique_id = 6;
if (!this->_internal_tari_unique_id().empty()) {
const std::string& _s = this->_internal_tari_unique_id();
target = stream->WriteBytesMaybeAliased(6, _s, target);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target = target =
::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
@ -9483,6 +9534,12 @@ const ::_pbi::TcParseTable<3, 5, 0, 0, 2> GetNewBlockBlobResult::_table_ = {
this->_internal_utxo_mr()); this->_internal_utxo_mr());
} }
// bytes tari_unique_id = 6;
if (!this->_internal_tari_unique_id().empty()) {
total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize(
this->_internal_tari_unique_id());
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
} }
@ -9510,6 +9567,9 @@ void GetNewBlockBlobResult::MergeImpl(::google::protobuf::MessageLite& to_msg, c
if (!from._internal_utxo_mr().empty()) { if (!from._internal_utxo_mr().empty()) {
_this->_internal_set_utxo_mr(from._internal_utxo_mr()); _this->_internal_set_utxo_mr(from._internal_utxo_mr());
} }
if (!from._internal_tari_unique_id().empty()) {
_this->_internal_set_tari_unique_id(from._internal_tari_unique_id());
}
_this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
} }
@ -9534,6 +9594,7 @@ void GetNewBlockBlobResult::InternalSwap(GetNewBlockBlobResult* PROTOBUF_RESTRIC
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.block_body_, &other->_impl_.block_body_, arena); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.block_body_, &other->_impl_.block_body_, arena);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.merge_mining_hash_, &other->_impl_.merge_mining_hash_, arena); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.merge_mining_hash_, &other->_impl_.merge_mining_hash_, arena);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.utxo_mr_, &other->_impl_.utxo_mr_, arena); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.utxo_mr_, &other->_impl_.utxo_mr_, arena);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.tari_unique_id_, &other->_impl_.tari_unique_id_, arena);
} }
::google::protobuf::Metadata GetNewBlockBlobResult::GetMetadata() const { ::google::protobuf::Metadata GetNewBlockBlobResult::GetMetadata() const {

View file

@ -4461,6 +4461,7 @@ class GetNewBlockBlobResult final : public ::google::protobuf::Message
kBlockBodyFieldNumber = 3, kBlockBodyFieldNumber = 3,
kMergeMiningHashFieldNumber = 4, kMergeMiningHashFieldNumber = 4,
kUtxoMrFieldNumber = 5, kUtxoMrFieldNumber = 5,
kTariUniqueIdFieldNumber = 6,
}; };
// bytes block_hash = 1; // bytes block_hash = 1;
void clear_block_hash() ; void clear_block_hash() ;
@ -4541,13 +4542,29 @@ class GetNewBlockBlobResult final : public ::google::protobuf::Message
const std::string& value); const std::string& value);
std::string* _internal_mutable_utxo_mr(); std::string* _internal_mutable_utxo_mr();
public:
// bytes tari_unique_id = 6;
void clear_tari_unique_id() ;
const std::string& tari_unique_id() const;
template <typename Arg_ = const std::string&, typename... Args_>
void set_tari_unique_id(Arg_&& arg, Args_... args);
std::string* mutable_tari_unique_id();
PROTOBUF_NODISCARD std::string* release_tari_unique_id();
void set_allocated_tari_unique_id(std::string* value);
private:
const std::string& _internal_tari_unique_id() const;
inline PROTOBUF_ALWAYS_INLINE void _internal_set_tari_unique_id(
const std::string& value);
std::string* _internal_mutable_tari_unique_id();
public: public:
// @@protoc_insertion_point(class_scope:tari.rpc.GetNewBlockBlobResult) // @@protoc_insertion_point(class_scope:tari.rpc.GetNewBlockBlobResult)
private: private:
class _Internal; class _Internal;
friend class ::google::protobuf::internal::TcParser; friend class ::google::protobuf::internal::TcParser;
static const ::google::protobuf::internal::TcParseTable< static const ::google::protobuf::internal::TcParseTable<
3, 5, 0, 3, 6, 0,
0, 2> 0, 2>
_table_; _table_;
friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::MessageLite;
@ -4568,6 +4585,7 @@ class GetNewBlockBlobResult final : public ::google::protobuf::Message
::google::protobuf::internal::ArenaStringPtr block_body_; ::google::protobuf::internal::ArenaStringPtr block_body_;
::google::protobuf::internal::ArenaStringPtr merge_mining_hash_; ::google::protobuf::internal::ArenaStringPtr merge_mining_hash_;
::google::protobuf::internal::ArenaStringPtr utxo_mr_; ::google::protobuf::internal::ArenaStringPtr utxo_mr_;
::google::protobuf::internal::ArenaStringPtr tari_unique_id_;
mutable ::google::protobuf::internal::CachedSize _cached_size_; mutable ::google::protobuf::internal::CachedSize _cached_size_;
PROTOBUF_TSAN_DECLARE_MEMBER PROTOBUF_TSAN_DECLARE_MEMBER
}; };
@ -9959,6 +9977,7 @@ class GetNewBlockResult final : public ::google::protobuf::Message
enum : int { enum : int {
kBlockHashFieldNumber = 1, kBlockHashFieldNumber = 1,
kMergeMiningHashFieldNumber = 3, kMergeMiningHashFieldNumber = 3,
kTariUniqueIdFieldNumber = 4,
kBlockFieldNumber = 2, kBlockFieldNumber = 2,
}; };
// bytes block_hash = 1; // bytes block_hash = 1;
@ -9992,6 +10011,22 @@ class GetNewBlockResult final : public ::google::protobuf::Message
const std::string& value); const std::string& value);
std::string* _internal_mutable_merge_mining_hash(); std::string* _internal_mutable_merge_mining_hash();
public:
// bytes tari_unique_id = 4;
void clear_tari_unique_id() ;
const std::string& tari_unique_id() const;
template <typename Arg_ = const std::string&, typename... Args_>
void set_tari_unique_id(Arg_&& arg, Args_... args);
std::string* mutable_tari_unique_id();
PROTOBUF_NODISCARD std::string* release_tari_unique_id();
void set_allocated_tari_unique_id(std::string* value);
private:
const std::string& _internal_tari_unique_id() const;
inline PROTOBUF_ALWAYS_INLINE void _internal_set_tari_unique_id(
const std::string& value);
std::string* _internal_mutable_tari_unique_id();
public: public:
// .tari.rpc.Block block = 2; // .tari.rpc.Block block = 2;
bool has_block() const; bool has_block() const;
@ -10013,7 +10048,7 @@ class GetNewBlockResult final : public ::google::protobuf::Message
class _Internal; class _Internal;
friend class ::google::protobuf::internal::TcParser; friend class ::google::protobuf::internal::TcParser;
static const ::google::protobuf::internal::TcParseTable< static const ::google::protobuf::internal::TcParseTable<
2, 3, 1, 2, 4, 1,
0, 2> 0, 2>
_table_; _table_;
friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::MessageLite;
@ -10033,6 +10068,7 @@ class GetNewBlockResult final : public ::google::protobuf::Message
mutable ::google::protobuf::internal::CachedSize _cached_size_; mutable ::google::protobuf::internal::CachedSize _cached_size_;
::google::protobuf::internal::ArenaStringPtr block_hash_; ::google::protobuf::internal::ArenaStringPtr block_hash_;
::google::protobuf::internal::ArenaStringPtr merge_mining_hash_; ::google::protobuf::internal::ArenaStringPtr merge_mining_hash_;
::google::protobuf::internal::ArenaStringPtr tari_unique_id_;
::tari::rpc::Block* block_; ::tari::rpc::Block* block_;
PROTOBUF_TSAN_DECLARE_MEMBER PROTOBUF_TSAN_DECLARE_MEMBER
}; };
@ -13947,6 +13983,56 @@ inline void GetNewBlockResult::set_allocated_merge_mining_hash(std::string* valu
// @@protoc_insertion_point(field_set_allocated:tari.rpc.GetNewBlockResult.merge_mining_hash) // @@protoc_insertion_point(field_set_allocated:tari.rpc.GetNewBlockResult.merge_mining_hash)
} }
// bytes tari_unique_id = 4;
inline void GetNewBlockResult::clear_tari_unique_id() {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
_impl_.tari_unique_id_.ClearToEmpty();
}
inline const std::string& GetNewBlockResult::tari_unique_id() const
ABSL_ATTRIBUTE_LIFETIME_BOUND {
// @@protoc_insertion_point(field_get:tari.rpc.GetNewBlockResult.tari_unique_id)
return _internal_tari_unique_id();
}
template <typename Arg_, typename... Args_>
inline PROTOBUF_ALWAYS_INLINE void GetNewBlockResult::set_tari_unique_id(Arg_&& arg,
Args_... args) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
_impl_.tari_unique_id_.SetBytes(static_cast<Arg_&&>(arg), args..., GetArena());
// @@protoc_insertion_point(field_set:tari.rpc.GetNewBlockResult.tari_unique_id)
}
inline std::string* GetNewBlockResult::mutable_tari_unique_id() ABSL_ATTRIBUTE_LIFETIME_BOUND {
std::string* _s = _internal_mutable_tari_unique_id();
// @@protoc_insertion_point(field_mutable:tari.rpc.GetNewBlockResult.tari_unique_id)
return _s;
}
inline const std::string& GetNewBlockResult::_internal_tari_unique_id() const {
PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
return _impl_.tari_unique_id_.Get();
}
inline void GetNewBlockResult::_internal_set_tari_unique_id(const std::string& value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
_impl_.tari_unique_id_.Set(value, GetArena());
}
inline std::string* GetNewBlockResult::_internal_mutable_tari_unique_id() {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
return _impl_.tari_unique_id_.Mutable( GetArena());
}
inline std::string* GetNewBlockResult::release_tari_unique_id() {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
// @@protoc_insertion_point(field_release:tari.rpc.GetNewBlockResult.tari_unique_id)
return _impl_.tari_unique_id_.Release();
}
inline void GetNewBlockResult::set_allocated_tari_unique_id(std::string* value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
_impl_.tari_unique_id_.SetAllocated(value, GetArena());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (_impl_.tari_unique_id_.IsDefault()) {
_impl_.tari_unique_id_.Set("", GetArena());
}
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
// @@protoc_insertion_point(field_set_allocated:tari.rpc.GetNewBlockResult.tari_unique_id)
}
// ------------------------------------------------------------------- // -------------------------------------------------------------------
// GetNewBlockBlobResult // GetNewBlockBlobResult
@ -14201,6 +14287,56 @@ inline void GetNewBlockBlobResult::set_allocated_utxo_mr(std::string* value) {
// @@protoc_insertion_point(field_set_allocated:tari.rpc.GetNewBlockBlobResult.utxo_mr) // @@protoc_insertion_point(field_set_allocated:tari.rpc.GetNewBlockBlobResult.utxo_mr)
} }
// bytes tari_unique_id = 6;
inline void GetNewBlockBlobResult::clear_tari_unique_id() {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
_impl_.tari_unique_id_.ClearToEmpty();
}
inline const std::string& GetNewBlockBlobResult::tari_unique_id() const
ABSL_ATTRIBUTE_LIFETIME_BOUND {
// @@protoc_insertion_point(field_get:tari.rpc.GetNewBlockBlobResult.tari_unique_id)
return _internal_tari_unique_id();
}
template <typename Arg_, typename... Args_>
inline PROTOBUF_ALWAYS_INLINE void GetNewBlockBlobResult::set_tari_unique_id(Arg_&& arg,
Args_... args) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
_impl_.tari_unique_id_.SetBytes(static_cast<Arg_&&>(arg), args..., GetArena());
// @@protoc_insertion_point(field_set:tari.rpc.GetNewBlockBlobResult.tari_unique_id)
}
inline std::string* GetNewBlockBlobResult::mutable_tari_unique_id() ABSL_ATTRIBUTE_LIFETIME_BOUND {
std::string* _s = _internal_mutable_tari_unique_id();
// @@protoc_insertion_point(field_mutable:tari.rpc.GetNewBlockBlobResult.tari_unique_id)
return _s;
}
inline const std::string& GetNewBlockBlobResult::_internal_tari_unique_id() const {
PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
return _impl_.tari_unique_id_.Get();
}
inline void GetNewBlockBlobResult::_internal_set_tari_unique_id(const std::string& value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
_impl_.tari_unique_id_.Set(value, GetArena());
}
inline std::string* GetNewBlockBlobResult::_internal_mutable_tari_unique_id() {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
return _impl_.tari_unique_id_.Mutable( GetArena());
}
inline std::string* GetNewBlockBlobResult::release_tari_unique_id() {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
// @@protoc_insertion_point(field_release:tari.rpc.GetNewBlockBlobResult.tari_unique_id)
return _impl_.tari_unique_id_.Release();
}
inline void GetNewBlockBlobResult::set_allocated_tari_unique_id(std::string* value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
_impl_.tari_unique_id_.SetAllocated(value, GetArena());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (_impl_.tari_unique_id_.IsDefault()) {
_impl_.tari_unique_id_.Set("", GetArena());
}
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
// @@protoc_insertion_point(field_set_allocated:tari.rpc.GetNewBlockBlobResult.tari_unique_id)
}
// ------------------------------------------------------------------- // -------------------------------------------------------------------
// MinerData // MinerData

View file

@ -347,6 +347,7 @@ message GetNewBlockResult{
// This is the completed block // This is the completed block
Block block = 2; Block block = 2;
bytes merge_mining_hash =3; bytes merge_mining_hash =3;
bytes tari_unique_id =4;
} }
// This is the message that is returned for a miner after it asks for a new block. // This is the message that is returned for a miner after it asks for a new block.
@ -359,6 +360,7 @@ message GetNewBlockBlobResult{
bytes block_body = 3; bytes block_body = 3;
bytes merge_mining_hash =4; bytes merge_mining_hash =4;
bytes utxo_mr = 5; bytes utxo_mr = 5;
bytes tari_unique_id =6;
} }
// This is mining data for the miner asking for a new block // This is mining data for the miner asking for a new block