Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
37c12e3b1c
  1. 2
      iguana/iguana_blocks.c

2
iguana/iguana_blocks.c

@ -190,6 +190,8 @@ int32_t iguana_blockvalidate(struct iguana_info *coin,int32_t *validp,struct igu
bits256 hash2; uint8_t serialized[sizeof(struct iguana_msgblock) + 4096];
*validp = 0;
iguana_serialize_block(coin->chain,&hash2,serialized,block);
if ( coin->MAXPEERS == 1 )
hash2 = block->RO.hash2;
*validp = (memcmp(hash2.bytes,block->RO.hash2.bytes,sizeof(hash2)) == 0);
block->valid = *validp;
char str[65]; char str2[65];

Loading…
Cancel
Save