Browse Source

Merge branch 'develop' of github.com:ethereum/cpp-ethereum into develop

cl-refactor
Gav Wood 10 years ago
parent
commit
047b25c078
  1. 4
      libethereum/BlockChain.h
  2. 2
      libweb3jsonrpc/WebThreeStubServer.cpp

4
libethereum/BlockChain.h

@ -443,7 +443,7 @@ public:
RLP r(_block);
unsigned i = 0;
if (_ir && (ImportRequirements::UncleBasic | ImportRequirements::UncleParent | ImportRequirements::UncleSeals))
if (_ir && !!(ImportRequirements::UncleBasic | ImportRequirements::UncleParent | ImportRequirements::UncleSeals))
for (auto const& uncle: r[2])
{
BlockHeader uh;
@ -475,7 +475,7 @@ public:
++i;
}
i = 0;
if (_ir && (ImportRequirements::TransactionBasic | ImportRequirements::TransactionSignatures))
if (_ir && !!(ImportRequirements::TransactionBasic | ImportRequirements::TransactionSignatures))
for (RLP const& tr: r[1])
{
bytesConstRef d = tr.data();

2
libweb3jsonrpc/WebThreeStubServer.cpp

@ -217,6 +217,8 @@ bool WebThreeStubServer::admin_eth_setMiningBenefactor(std::string const& _uuidO
throw jsonrpc::JsonRpcException("Invalid UUID or address");
if (m_setMiningBenefactor)
m_setMiningBenefactor(a);
else
m_web3.ethereum()->setAddress(a);
return true;
}

Loading…
Cancel
Save