Browse Source

style

cl-refactor
arkpar 10 years ago
parent
commit
acf11858f7
  1. 2
      alethzero/MainWin.cpp
  2. 2
      libdevcrypto/CryptoPP.cpp
  3. 2
      libethereum/BlockChain.cpp
  4. 12
      libethereum/VerifiedBlock.h

2
alethzero/MainWin.cpp

@ -1294,7 +1294,6 @@ void Main::refreshBlockChain()
if (oldSelected == hba)
blockItem->setSelected(true);
/*
int n = 0;
try {
auto b = bc.block(h);
@ -1323,7 +1322,6 @@ void Main::refreshBlockChain()
}
}
catch (...) {}
*/
};
if (filters.empty())

2
libdevcrypto/CryptoPP.cpp

@ -264,7 +264,6 @@ Public Secp256k1::recover(Signature _signature, bytesConstRef _message)
ECP::Element x;
{
//Guard l(x_curve);
m_curve.DecodePoint(x, encodedpoint, 33);
if (!m_curve.VerifyPoint(x))
return recovered;
@ -286,7 +285,6 @@ Public Secp256k1::recover(Signature _signature, bytesConstRef _message)
ECP::Point p;
byte recoveredbytes[65];
{
//Guard l(x_curve);
// todo: make generator member
p = m_curve.CascadeMultiply(u2, x, u1, m_params.GetSubgroupGenerator());
m_curve.EncodePoint(recoveredbytes, p, false);

2
libethereum/BlockChain.cpp

@ -263,7 +263,7 @@ void BlockChain::rebuild(std::string const& _path, std::function<void(unsigned,
return;
}
lastHash = bi.hash();
import(std::move(b), s.db(), 0);
import(b, s.db(), 0);
}
catch (...)
{

12
libethereum/VerifiedBlock.h

@ -32,17 +32,19 @@ namespace eth
class Transaction;
/// @brief Verified block info, does not hold block data, but a reference instead
struct VerifiedBlockRef
{
bytesConstRef block;
BlockInfo info;
std::vector<Transaction> transactions;
bytesConstRef block; ///< Block data reference
BlockInfo info; ///< Prepopulated block info
std::vector<Transaction> transactions; ///< Verified list of block transactions
};
/// @brief Verified block info, combines block data and verified info/transactions
struct VerifiedBlock
{
VerifiedBlockRef verified;
bytes blockData;
VerifiedBlockRef verified; ///< Verified block structures
bytes blockData; ///< Block data
};
using VerifiedBlocks = std::vector<VerifiedBlock>;

Loading…
Cancel
Save