forked from lthn/blockchain
commented unused code
This commit is contained in:
parent
2152d1588a
commit
109e815f66
1 changed files with 26 additions and 26 deletions
|
|
@ -121,32 +121,32 @@ protected:
|
||||||
std::vector<crypto::hash> m_scratchpad_vec;
|
std::vector<crypto::hash> m_scratchpad_vec;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
//
|
||||||
template<int scratchpad_size>
|
// template<int scratchpad_size>
|
||||||
class test_wild_keccak2 : public test_keccak_base
|
// class test_wild_keccak2 : public test_keccak_base
|
||||||
{
|
// {
|
||||||
public:
|
// public:
|
||||||
bool init()
|
// bool init()
|
||||||
{
|
// {
|
||||||
m_scratchpad_vec.resize(scratchpad_size / sizeof(crypto::hash));
|
// m_scratchpad_vec.resize(scratchpad_size / sizeof(crypto::hash));
|
||||||
for (auto& h : m_scratchpad_vec)
|
// for (auto& h : m_scratchpad_vec)
|
||||||
h = crypto::rand<crypto::hash>();
|
// h = crypto::rand<crypto::hash>();
|
||||||
|
//
|
||||||
return test_keccak_base::init();
|
// return test_keccak_base::init();
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
bool test()
|
// bool test()
|
||||||
{
|
// {
|
||||||
pretest();
|
// pretest();
|
||||||
|
//
|
||||||
crypto::hash h2;
|
// crypto::hash h2;
|
||||||
crypto::wild_keccak_dbl_opt(reinterpret_cast<const uint8_t*>(&m_buff[0]), m_buff.size(), reinterpret_cast<uint8_t*>(&h2), sizeof(h2), (const UINT64*)&m_scratchpad_vec[0], m_scratchpad_vec.size() * 4);
|
// crypto::wild_keccak_dbl_opt(reinterpret_cast<const uint8_t*>(&m_buff[0]), m_buff.size(), reinterpret_cast<uint8_t*>(&h2), sizeof(h2), (const UINT64*)&m_scratchpad_vec[0], m_scratchpad_vec.size() * 4);
|
||||||
LOG_PRINT_L4("HASH:" << h2);
|
// LOG_PRINT_L4("HASH:" << h2);
|
||||||
return true;
|
// return true;
|
||||||
}
|
// }
|
||||||
protected:
|
// protected:
|
||||||
std::vector<crypto::hash> m_scratchpad_vec;
|
// std::vector<crypto::hash> m_scratchpad_vec;
|
||||||
};
|
// };
|
||||||
|
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
#define max_measere_scratchpad 100000
|
#define max_measere_scratchpad 100000
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue