jl777
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
8 additions and
5 deletions
-
iguana/dpow/dpow_rpc.c
|
@ -230,11 +230,14 @@ int32_t dpow_paxpending(uint8_t *hex,uint32_t *paxwdcrcp,bits256 MoM,uint32_t Mo |
|
|
{ |
|
|
{ |
|
|
struct iguana_info *coin; char *retstr,*hexstr; cJSON *retjson; int32_t n=0; uint32_t paxwdcrc; |
|
|
struct iguana_info *coin; char *retstr,*hexstr; cJSON *retjson; int32_t n=0; uint32_t paxwdcrc; |
|
|
paxwdcrc = 0; |
|
|
paxwdcrc = 0; |
|
|
n += iguana_rwbignum(1,&hex[n],sizeof(MoM),MoM.bytes); |
|
|
if ( Notaries_port != DPOW_SOCKPORT ) |
|
|
n += iguana_rwnum(1,&hex[n],sizeof(MoMdepth),(uint32_t *)&MoMdepth); |
|
|
{ |
|
|
paxwdcrc = calc_crc32(0,hex,n) & 0xffffff00; |
|
|
n += iguana_rwbignum(1,&hex[n],sizeof(MoM),MoM.bytes); |
|
|
paxwdcrc |= (n & 0xff); |
|
|
n += iguana_rwnum(1,&hex[n],sizeof(MoMdepth),(uint32_t *)&MoMdepth); |
|
|
*paxwdcrcp = paxwdcrc; |
|
|
paxwdcrc = calc_crc32(0,hex,n) & 0xffffff00; |
|
|
|
|
|
paxwdcrc |= (n & 0xff); |
|
|
|
|
|
} |
|
|
|
|
|
*paxwdcrcp = paxwdcrc; |
|
|
return(n); |
|
|
return(n); |
|
|
if ( (coin= iguana_coinfind("KMD")) != 0 ) |
|
|
if ( (coin= iguana_coinfind("KMD")) != 0 ) |
|
|
{ |
|
|
{ |
|
|