From 39c17c3e45ba9211d63f8b300ac9ac5e30adfdaf Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 10 Nov 2016 20:54:14 -0300 Subject: [PATCH] test --- iguana/dpow/dpow_fsm.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/iguana/dpow/dpow_fsm.c b/iguana/dpow/dpow_fsm.c index b9942193a..0ee7c1bb9 100755 --- a/iguana/dpow/dpow_fsm.c +++ b/iguana/dpow/dpow_fsm.c @@ -728,7 +728,14 @@ void dpow_statemachinestart(void *ptr) //printf("dp->ht.%d ht.%d DEST.%08x %s\n",dp->checkpoint.blockhash.height,checkpoint.blockhash.height,bp->state,bits256_str(str,srchash)); if ( bp->isratify == 0 ) bp->state = dpow_statemachineiterate(myinfo,dp,dest,bp,myind,1); - else dpow_utxosync(myinfo,dp,bp,-1,myind,srchash); + else + { + int32_t len; struct dpow_utxoentry U; uint8_t utxodata[sizeof(U)+2]; + memset(&U,0,sizeof(U)); + dpow_entry2utxo(&U,bp,&bp->notaries[myind]); + if ( (len= dpow_rwutxobuf(1,utxodata,&U,bp)) > 0 ) + dpow_send(myinfo,dp,bp,srchash,bp->hashmsg,DPOW_UTXOCHANNEL,bp->height,utxodata,len); + } } if ( 0 && dp->cancelratify != 0 && bp->isratify != 0 ) {