This commit is contained in:
jl777
2016-10-20 06:58:47 -03:00
parent 9997caa0a4
commit de6724df2b
3 changed files with 18 additions and 8 deletions

View File

@@ -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.ToString().c_str());
decode_hex(NOTARY_PUBKEY33,33,NOTARY_PUBKEY.c_str());
if ( (fp= fopen(fname,"rb+")) != 0 )
{
while ( (func= fgetc(fp)) != EOF )
@@ -525,7 +525,7 @@ int32_t komodo_heightnotary(int32_t height,uint8_t *pubkey33)
void komodo_block2pubkey33(uint8_t *pubkey33,CBlock& block)
{
uint8_t *ptr;
ptr = block.vtx[0].vout[0].scriptPubKey.data();
ptr = (uint8_t *)block.vtx[0].vout[0].scriptPubKey.data();
memcpy(pubkey33,ptr+1,33);
}