From ff4657a716e497c1fdeecc9fe916d98d2317bebe Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 31 Oct 2016 11:00:19 -0300 Subject: [PATCH] test --- src/rpcblockchain.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/rpcblockchain.cpp b/src/rpcblockchain.cpp index 33bc9dd82..660d23068 100644 --- a/src/rpcblockchain.cpp +++ b/src/rpcblockchain.cpp @@ -389,7 +389,7 @@ char *bitcoin_address(char *coinaddr,uint8_t addrtype,uint8_t *pubkey_or_rmd160, Value notaries(const Array& params, bool fHelp) { - Array a; Object ret; int32_t i,j,n,m; char *hexstr; std::string hex,addr; uint8_t pubkeys[64][33]; char btcaddr[64],kmdaddr[64],*ptr; + Array a; Object ret; int32_t i,j,n,m; char *hexstr; uint8_t pubkeys[64][33]; char btcaddr[64],kmdaddr[64],*ptr; if ( fHelp || params.size() != 1 ) throw runtime_error("notaries height\n"); LOCK(cs_main); @@ -398,23 +398,25 @@ Value notaries(const Array& params, bool fHelp) throw JSONRPCError(RPC_INVALID_PARAMETER, "Block height out of range"); else { - hex.resize(67); if ( (n= komodo_notaries(pubkeys,height)) > 0 ) { for (i=0; i