From b0b5e8f7c63868da13b75d1d8b73835fa15a8fad Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 20 Oct 2016 07:08:28 -0300 Subject: [PATCH] test --- src/komodo.h | 2 +- src/main.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/komodo.h b/src/komodo.h index 91ed2c3f1..94d1e9282 100644 --- a/src/komodo.h +++ b/src/komodo.h @@ -206,7 +206,7 @@ int32_t komodo_stateupdate(int32_t height,uint8_t notarypubs[][33],uint8_t numno #endif if ( fp == 0 ) { - decode_hex(NOTARY_PUBKEY33,33,NOTARY_PUBKEY.c_str()); + decode_hex(NOTARY_PUBKEY33,33,(char *)NOTARY_PUBKEY.c_str()); if ( (fp= fopen(fname,"rb+")) != 0 ) { while ( (func= fgetc(fp)) != EOF ) diff --git a/src/main.cpp b/src/main.cpp index aac744f96..8ff3b7ead 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2961,7 +2961,7 @@ bool CheckBlockHeader(int32_t height,const CBlock& block, const CBlockHeader& bl return state.DoS(100, error("CheckBlockHeader(): Equihash solution invalid"),REJECT_INVALID, "invalid-solution"); // Check proof of work matches claimed amount - komodo_block2pubkey33(pubkey33,block); + komodo_block2pubkey33(pubkey33,*(CBlock *)&block); if ( fCheckPOW && !CheckProofOfWork(height,pubkey33,blockhdr.GetHash(), blockhdr.nBits, Params().GetConsensus()) ) return state.DoS(50, error("CheckBlockHeader(): proof of work failed"),REJECT_INVALID, "high-hash"); return true;