Browse Source

Quick fix for third.

cl-refactor
Gav Wood 10 years ago
parent
commit
2a1eddc9c9
  1. 2
      libdevcore/RLP.h
  2. 7
      third/MainWin.cpp

2
libdevcore/RLP.h

@ -289,7 +289,7 @@ public:
private: private:
/// Disable construction from rvalue /// Disable construction from rvalue
explicit RLP(bytes const&& _d) {} explicit RLP(bytes const&&) {}
/// Single-byte data payload. /// Single-byte data payload.
bool isSingleByte() const { return !isNull() && m_data[0] < c_rlpDataImmLenStart; } bool isSingleByte() const { return !isNull() && m_data[0] < c_rlpDataImmLenStart; }

7
third/MainWin.cpp

@ -84,9 +84,10 @@ Main::Main(QWidget *parent) :
ui->setupUi(this); ui->setupUi(this);
cerr << "State root: " << BlockChain::genesis().stateRoot << endl; cerr << "State root: " << BlockChain::genesis().stateRoot << endl;
cerr << "Block Hash: " << sha3(BlockChain::createGenesisBlock()) << endl; auto gb = BlockChain::createGenesisBlock();
cerr << "Block RLP: " << RLP(BlockChain::createGenesisBlock()) << endl; cerr << "Block Hash: " << sha3(gb) << endl;
cerr << "Block Hex: " << toHex(BlockChain::createGenesisBlock()) << endl; cerr << "Block RLP: " << RLP(gb) << endl;
cerr << "Block Hex: " << toHex(gb) << endl;
cerr << "Network protocol version: " << dev::eth::c_protocolVersion << endl; cerr << "Network protocol version: " << dev::eth::c_protocolVersion << endl;
cerr << "Client database version: " << dev::eth::c_databaseVersion << endl; cerr << "Client database version: " << dev::eth::c_databaseVersion << endl;

Loading…
Cancel
Save