Browse Source

Minor changes to readme and makefiles.

cl-refactor
Gav Wood 11 years ago
parent
commit
89c25c6e11
  1. 15
      README.md
  2. 10
      eth/main.cpp
  3. 1
      libethereum/CMakeLists.txt
  4. 17
      libethereum/PeerNetwork.cpp
  5. 2
      test/CMakeLists.txt

15
README.md

@ -9,6 +9,21 @@ Gav Wood, 2014.
secp256k1 implementation: https://github.com/sipa/secp256k1.git
Expects secp256k1 directory to be in same path as cpp-ethereum.
(NOTE: secp256k1 requires a development installation of the GMP library.)
A decent C++11 compiler (I use GNU GCC 4.8.1) and a recent version of Boost (I use version 1.53).
CMake, version 2.8 or greater.
sudo apt-get install libgmp3-dev libboost-all-dev cmake
## Building
mkdir /path/to/cpp-ethereum/../cpp-ethereum-build
cd /path/to/cpp-ethereum-build
cmake -DCMAKE_BUILD_TYPE=Debug /path/to/cpp-ethereum
make
## Contributing
Read CodingStandards.txt thoroughly, before making alterations to the code base.

10
eth/main.cpp

@ -64,13 +64,3 @@ int main()
return 0;
}
/*
while (net.incomingTransaction())
{
bytes const& tx = net.incomingTransaction();
s.execute(tx);
net.popIncomingTransaction();
}
*/

1
libethereum/CMakeLists.txt

@ -6,3 +6,4 @@ aux_source_directory(. SRC_LIST)
add_library(ethereum ${SRC_LIST})
target_link_libraries(ethereum secp256k1)
target_link_libraries(ethereum gmp)

17
libethereum/PeerNetwork.cpp

@ -15,17 +15,26 @@ void PeerNetwork::process()
{
}
void PeerNetwork::sync(BlockChain& _bc, TransactionQueue const&)
void PeerNetwork::sync(BlockChain& _bc, TransactionQueue const& _tq)
{
/* while (incomingBlock())
/*
while (incomingBlock())
{
// import new block
bytes const& block = net.incomingBlock();
bc.import(block);
_bc.import(block);
net.popIncomingBlock();
// check block chain and make longest given all available blocks.
bc.rejig();
}*/
}
while (incomingTransaction())
{
bytes const& tx = net.incomingTransaction();
_tq.import(tx);
net.popIncomingTransaction();
}
*/
}

2
test/CMakeLists.txt

@ -8,6 +8,6 @@ link_directories(../../secp256k1)
add_executable(testeth ${SRC_LIST})
target_link_libraries(testeth secp256k1)
target_link_libraries(testeth ethereum)
target_link_libraries(testeth secp256k1)
target_link_libraries(testeth gmp)

Loading…
Cancel
Save