From 436082da17403357ac33a8a1f4a50d7de166c0d0 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 13 Jan 2017 19:48:04 +0200 Subject: [PATCH] test --- iguana/dpow/dpow_fsm.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/iguana/dpow/dpow_fsm.c b/iguana/dpow/dpow_fsm.c index 5748d9635..3a6bf95a3 100755 --- a/iguana/dpow/dpow_fsm.c +++ b/iguana/dpow/dpow_fsm.c @@ -292,6 +292,8 @@ void dpow_statemachinestart(void *ptr) // printf("%02x",pubkeys[i][j]); //printf(" <= pubkey[%d]\n",i); memcpy(bp->notaries[i].pubkey,pubkeys[i],33); + if ( strcmp("KMD",src->symbol) == 0 ) + memcpy(myinfo->notaries[i].pubkey,pubkeys[i],33); if ( memcmp(bp->notaries[i].pubkey,dp->minerkey33,33) == 0 ) { myind = i; @@ -301,6 +303,8 @@ void dpow_statemachinestart(void *ptr) printf(" MYIND.%d <<<<<<<<<<<<<<<<<<<<<<\n",myind); } } + if ( strcmp("KMD",src->symbol) == 0 ) + myinfo->numnotaries = bp->numnotaries; if ( myind < 0 || ep == 0 ) { printf("minerkey33-> "); @@ -370,11 +374,6 @@ void dpow_statemachinestart(void *ptr) bp->notaries[myind].ratifydestvout = ep->dest.prev_vout; } } - if ( strcmp(bp->srccoin->symbol,"KMD") == 0 ) - { - memcpy(myinfo->notaries,bp->notaries,bp->numnotaries * sizeof(*bp->notaries)); - myinfo->numnotaries = bp->numnotaries; - } bp->recvmask |= (1LL << myind); bp->notaries[myind].othermask |= (1LL << myind); dp->checkpoint = checkpoint;