54 s <<
strprintf(
"CBlock(hash=%s, ver=0x%08x, hashPrevBlock=%s, hashMerkleRoot=%s, hashStateRoot=%s, hashUTXORoot=%s, nHeight=%u, nTime=%u, nBits=%08x, nNonce=%s)\n",
69 s <<
strprintf(
"CBlock(hash=%s, ver=0x%08x, hashPrevBlock=%s, hashMerkleRoot=%s, hashStateRoot=%s, hashUTXORoot=%s, nHeight=%u, nTime=%u, nBits=%08x, nNonce=%s, vtx=%u)\n",
78 for (
const auto& tx : vtx) {
79 s <<
" " << tx->ToString() <<
"\n";
static const std::string REGTEST
std::string GetHex() const
static const std::string UNITTEST
const Consensus::Params & GetConsensus() const
std::string ToString() const
std::string NetworkIDString() const
Return the BIP70 network string (main, test or regtest)
uint256 SerializeHash(const T &obj, int nType=SER_GETHASH, int nVersion=PROTOCOL_VERSION)
Compute the 256-bit hash of an object's serialization.
uint32_t ContractHeight
Block height at which Fabcoin Smart Contract hard fork becomes active.
Parameters that influence chain consensus.
std::string ToString() const
const CChainParams & Params()
Return the currently selected parameters.
bool _IsLegacyFormat(int nHeight)
bool _IsSupportContract(int nVersion, int nHeight)