Browse Source

Facility to check for ids.

Less tracing.
cl-refactor
Gav Wood 10 years ago
parent
commit
5a949f0b01
  1. 1
      libethcore/BlockInfo.cpp
  2. 1
      libqethereum/QEthereum.h

1
libethcore/BlockInfo.cpp

@ -103,7 +103,6 @@ void BlockInfo::populateFromHeader(RLP const& _header, bool _checkNonce)
}
// check it hashes according to proof of work or that it's the genesis block.
cnote << "Verifying" << headerHashWithoutNonce().abridged() << nonce.abridged() << difficulty;
if (_checkNonce && parentHash && !ProofOfWork::verify(headerHashWithoutNonce(), nonce, difficulty))
BOOST_THROW_EXCEPTION(InvalidBlockNonce(headerHashWithoutNonce(), nonce, difficulty));

1
libqethereum/QEthereum.h

@ -259,6 +259,7 @@ public:
Q_INVOKABLE void doPost(QString _json);
Q_INVOKABLE QString newIdentity();
Q_INVOKABLE bool haveIdentity(QString _id) { return m_ids.count(toPublic(_id)); }
Q_INVOKABLE QString newGroup(QString _id, QString _who);
Q_INVOKABLE QString addToGroup(QString _group, QString _who);

Loading…
Cancel
Save