Fabcoin Core  0.16.2
P2P Digital Currency
Namespaces | Functions | Variables
Common.cpp File Reference
#include "Common.h"
#include <boost/algorithm/string/case_conv.hpp>
#include <libdevcore/Base64.h>
#include <libdevcore/Terminal.h>
#include <libdevcore/CommonData.h>
#include <libdevcore/CommonIO.h>
#include <libdevcore/Log.h>
#include <libdevcore/SHA3.h>
#include "ICAP.h"
#include "Exceptions.h"
#include "BlockHeader.h"
Include dependency graph for Common.cpp:

Go to the source code of this file.

Namespaces

 dev
 Adapted from code found on http://stackoverflow.com/questions/180947/base64-decode-snippet-in-c Originally by RenĂ© Nyffenegger.
 
 dev::eth
 

Functions

Address dev::eth::toAddress (std::string const &_s)
 Convert the given string into an address. More...
 
vector< pair< u256, string > > const & dev::eth::units ()
 Get information concerning the currency denominations. More...
 
std::string dev::eth::formatBalance (bigint const &_b)
 User-friendly string representation of the amount _b in wei. More...
 
void dev::eth::badBlock (bytesConstRef _block, string const &_err)
 

Variables

const unsigned dev::eth::c_protocolVersion = 63
 Current protocol version. More...
 
const unsigned dev::eth::c_minorProtocolVersion = 2
 Current minor protocol version. More...
 
const unsigned dev::eth::c_databaseBaseVersion = 9
 
const unsigned dev::eth::c_databaseVersionModifier = 0
 
const unsigned dev::eth::c_databaseVersion = c_databaseBaseVersion + (c_databaseVersionModifier << 8) + (23 << 9)
 Current database version. More...