Browse Source

Remove stupid assertion.

Add licence header to solc.
cl-refactor
Gav Wood 10 years ago
parent
commit
91e38ec706
  1. 2
      libdevcrypto/EC.cpp
  2. 2
      libqethereum/QEthereum.cpp
  3. 2
      libqethereum/QEthereum.h
  4. 21
      solc/main.cpp

2
libdevcrypto/EC.cpp

@ -66,7 +66,7 @@ void dev::crypto::decrypt(Secret const& _k, bytes& io_text)
p.resize(d.MaxPlaintextLength(io_text.size()));
// todo: use StringSource with _c as input and output.
DecodingResult r = d.Decrypt(pp::PRNG(), io_text.data(), clen, p.data());
assert(r.messageLength);
// assert(r.messageLength);
io_text.resize(r.messageLength);
io_text = std::move(p);
}

2
libqethereum/QEthereum.cpp

@ -725,6 +725,8 @@ void QWhisper::poll()
{
cwarn << "Silently decrypting message from identity" << w.second.abridged() << ": User validation hook goes here.";
m = e.open(m_ids[w.second]);
if (!m)
continue;
}
else
m = e.open();

2
libqethereum/QEthereum.h

@ -233,7 +233,7 @@ public:
// Watches interface
Q_INVOKABLE unsigned newWatch(QString _json);
Q_INVOKABLE void killWatch(unsigned _w);
void clearWatches();
Q_INVOKABLE void clearWatches();
Q_INVOKABLE QString watchMessages(unsigned _w);
public slots:

21
solc/main.cpp

@ -1,3 +1,24 @@
/*
This file is part of cpp-ethereum.
cpp-ethereum is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
cpp-ethereum is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with cpp-ethereum. If not, see <http://www.gnu.org/licenses/>.
*/
/**
* @author Christian <c@ethdev.com>
* @date 2014
* Solidity abstract syntax tree.
*/
#include <string>
#include <iostream>

Loading…
Cancel
Save