jl777 8 years ago
parent
commit
e50c558d87
  1. 1
      iguana/dpow/dpow_network.c
  2. 9
      iguana/dpow/dpow_tx.c

1
iguana/dpow/dpow_network.c

@ -236,7 +236,6 @@ void dpow_ratify_update(struct supernet_info *myinfo,struct dpow_info *dp,struct
}
if ( bp->ratifysigmasks[1] == bp->ratifybestmask ) // have all sigs
{
printf("ready to sign state.%d\n",bp->state);
if ( bp->state < 1000 )
dpow_sigscheck(myinfo,dp,bp,bp->myind,1,bp->ratifybestk,bp->ratifybestmask,bp->ratified_pubkeys,bp->numratified);
if ( bp->ratifysigmasks[0] == bp->ratifybestmask ) // have all sigs

9
iguana/dpow/dpow_tx.c

@ -167,9 +167,12 @@ int32_t dpow_voutstandard(struct dpow_block *bp,uint8_t *serialized,int32_t m,in
uint32_t locktime=0,numvouts; uint64_t satoshis,satoshisB; int32_t i,opretlen,len=0; uint8_t opret[1024],data[4096];
numvouts = 2 + (pubkeys != 0) * numratified;
len += iguana_rwvarint32(1,&serialized[len],&numvouts);
satoshis = DPOW_UTXOSIZE * m * .76;
if ( (satoshisB= DPOW_UTXOSIZE * m - 10000) < satoshis )
satoshis = satoshisB;
if ( pubkeys == 0 || numratified <= 0 )
{
satoshis = DPOW_UTXOSIZE * m * .76;
if ( (satoshisB= DPOW_UTXOSIZE * m - 10000) < satoshis )
satoshis = satoshisB;
} else satoshis = DPOW_MINOUTPUT;
len += iguana_rwnum(1,&serialized[len],sizeof(satoshis),&satoshis);
serialized[len++] = 35;
serialized[len++] = 33;

Loading…
Cancel
Save