本文整理汇总了C++中TransactionFramePtr::getFullHash方法的典型用法代码示例。如果您正苦于以下问题:C++ TransactionFramePtr::getFullHash方法的具体用法?C++ TransactionFramePtr::getFullHash怎么用?C++ TransactionFramePtr::getFullHash使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TransactionFramePtr
的用法示例。
在下文中一共展示了TransactionFramePtr::getFullHash方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1:
static bool
HashTxSorter(TransactionFramePtr const& tx1, TransactionFramePtr const& tx2)
{
// need to use the hash of whole tx here since multiple txs could have
// the same Contents
return tx1->getFullHash() < tx2->getFullHash();
}
示例2: operator
bool operator()(TransactionFramePtr const& tx1,
TransactionFramePtr const& tx2) const
{
// need to use the hash of whole tx here since multiple txs could have
// the same Contents
return lessThanXored(tx1->getFullHash(), tx2->getFullHash(), mSetHash);
}
示例3: operator
bool operator()(TransactionFramePtr const& tx1,
TransactionFramePtr const& tx2) const
{
// need to use the hash of whole tx here since multiple txs could have
// the same Contents
Hash h1 = tx1->getFullHash();
Hash h2 = tx2->getFullHash();
Hash v1, v2;
for (int n = 0; n < 32; n++)
{
v1[n] = mSetHash[n] ^ h1[n];
v2[n] = mSetHash[n] ^ h2[n];
}
return v1 < v2;
}