2019-09-27 17:17:54 +05:30
2019-09-27 17:17:54 +05:30

Hot Pocket Consensus Engine

What's here?

In development

A C++ version of hotpocket designed for production envrionments, original prototype here: https://github.com/codetsunami/hotpocket

Libraries

Installing Boost

Instructions are based on https://www.boost.org/doc/libs/1_71_0/more/getting_started/unix-variants.html#prepare-to-use-a-boost-library-binary

  1. Download and extract boost package from here.
  2. Navigate to the extracted boost directory in a terminal.
  3. Run ./bootstrap.sh
  4. Run sudo ./b2 install (This will compile and install boost libraries into your /usr/local/lib)
  5. Run sudo ldconfig (This will update your library cache and avoid potential issues when running your compiled C++ program which links to newly installed boost libraries)

Running hotpocket

  1. navigate to the src root.
  2. Run make
  3. Run ./build/hpcore new ~/mycontract. This will initialize a new contract directory mycontract in your home directory.
  4. Take a look at ~/mycontract/cfg/hp.cfg. This is your new contract config file. You can modify it according to your contract hosting requirements.
  5. Run ./build/hpcore rekey ~/mycontract to generate new public/private key pair.
  6. Run ./build/hpcore run ~/mycontract to run your smart contract (to do).
Description
Consensus Engine for Codius, Linux and Mac Hosts
Readme 19 MiB
Languages
C++ 92.9%
Shell 4.5%
JavaScript 2%
CMake 0.4%
C 0.1%