From 131b51b78812ebaa2a617314a507d7f994ef57d1 Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 1 Nov 2016 13:16:32 -0300 Subject: [PATCH] test --- iguana/iguana_notary.c | 13 +++++++++++++ iguana/tests/ratifyA_7776 | 1 + includes/iguana_apideclares.h | 1 + 3 files changed, 15 insertions(+) create mode 100755 iguana/tests/ratifyA_7776 diff --git a/iguana/iguana_notary.c b/iguana/iguana_notary.c index ba01d0bf8..69553c4f5 100755 --- a/iguana/iguana_notary.c +++ b/iguana/iguana_notary.c @@ -287,6 +287,19 @@ STRING_ARG(iguana,addnotary,ipaddr) return(clonestr("{\"result\":\"notary node added\"}")); } +INT_AND_ARRAY(dpow,addnotaries,flag,notaries) +{ + int32_t i,n; + if ( notaries != 0 && (n= cJSON_GetArraySize(notaries)) > 0 ) + { + for (i=0; i