From 92462b9d2e27f65343e1f9cb9dc21390eb76b139 Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 29 Nov 2016 19:33:08 -0300 Subject: [PATCH] test --- iguana/dpow/dpow_fsm.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/iguana/dpow/dpow_fsm.c b/iguana/dpow/dpow_fsm.c index 15405a0ea..031e5787c 100755 --- a/iguana/dpow/dpow_fsm.c +++ b/iguana/dpow/dpow_fsm.c @@ -208,6 +208,12 @@ void dpow_statemachinestart(void *ptr) if ( (hexstr= jstr(item,"pubkey")) != 0 && is_hexstr(hexstr,0) == 66 ) { decode_hex(bp->ratified_pubkeys[i],33,hexstr); + for (j=0; jratified_pubkeys[j],bp->ratified_pubkeys[i],33) == 0 ) + { + printf("ratification.%d is the same as %d, reject this donkey\n",j,i); + exit(-1); + } if ( (handle= jstr(item,"handle")) != 0 ) safecopy(bp->handles[i],handle,sizeof(bp->handles[i])); if ( i == 0 )