|
@ -165,7 +165,7 @@ struct dpow_block *dpow_heightfind(struct supernet_info *myinfo,struct dpow_info |
|
|
|
|
|
|
|
|
int32_t dpow_voutstandard(struct dpow_block *bp,uint8_t *serialized,int32_t m,int32_t src_or_dest,uint8_t pubkeys[][33],int32_t numratified) |
|
|
int32_t dpow_voutstandard(struct dpow_block *bp,uint8_t *serialized,int32_t m,int32_t src_or_dest,uint8_t pubkeys[][33],int32_t numratified) |
|
|
{ |
|
|
{ |
|
|
uint32_t locktime=0,numvouts; uint64_t satoshis,satoshisB; int32_t i,opretlen,len=0; uint8_t opret[1024],data[4096]; |
|
|
uint32_t locktime=0,numvouts; uint64_t satoshis,satoshisB; int32_t i,n,opretlen,len=0; uint8_t opret[1024],data[4096]; |
|
|
numvouts = 2; |
|
|
numvouts = 2; |
|
|
if ( pubkeys == 0 || numratified <= 0 ) |
|
|
if ( pubkeys == 0 || numratified <= 0 ) |
|
|
{ |
|
|
{ |
|
@ -208,7 +208,13 @@ int32_t dpow_voutstandard(struct dpow_block *bp,uint8_t *serialized,int32_t m,in |
|
|
return(-1); |
|
|
return(-1); |
|
|
} |
|
|
} |
|
|
opretlen = dpow_opreturnscript(data,opret,opretlen); |
|
|
opretlen = dpow_opreturnscript(data,opret,opretlen); |
|
|
// insert 'A' values
|
|
|
if ( (n= dpow_paxpending(&opret[opretlen])) > 0 ) |
|
|
|
|
|
{ |
|
|
|
|
|
for (i=0; i<n; i++) |
|
|
|
|
|
printf("%02x",opret[opretlen+i]); |
|
|
|
|
|
printf(" <- withdraw.%d\n",n); |
|
|
|
|
|
opretlen += n; |
|
|
|
|
|
} |
|
|
if ( opretlen < 0xfd ) |
|
|
if ( opretlen < 0xfd ) |
|
|
serialized[len++] = opretlen; |
|
|
serialized[len++] = opretlen; |
|
|
else |
|
|
else |
|
|