From 5af5292f52105531ee9d44513b8c219c7d4ba5a9 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 12 Jul 2019 16:50:50 -1100 Subject: [PATCH] sizeof(ASSETCHAINS_PEGSCCPARAMS)/sizeof(*ASSETCHAINS_PEGSCCPARAMS) --- src/komodo_nSPV.h | 1 + src/komodo_utils.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/komodo_nSPV.h b/src/komodo_nSPV.h index 069ddb4ab..d7c6ebfc8 100644 --- a/src/komodo_nSPV.h +++ b/src/komodo_nSPV.h @@ -17,6 +17,7 @@ // todo: // myprivkey, scrub all destination buffers +// oversized tx // headers "sync" make sure it connects to prior blocks to notarization. use getinfo hdrht to get missing hdrs diff --git a/src/komodo_utils.h b/src/komodo_utils.h index fbbe4c677..5d6f2722b 100644 --- a/src/komodo_utils.h +++ b/src/komodo_utils.h @@ -1973,7 +1973,7 @@ void komodo_args(char *argv0) } else if ( ASSETCHAINS_SELFIMPORT == "PEGSCC") { - Split(GetArg("-ac_pegsccparams",""), ASSETCHAINS_PEGSCCPARAMS, 0); + Split(GetArg("-ac_pegsccparams",""), sizeof(ASSETCHAINS_PEGSCCPARAMS)/sizeof(*ASSETCHAINS_PEGSCCPARAMS), ASSETCHAINS_PEGSCCPARAMS, 0); if (ASSETCHAINS_ENDSUBSIDY[0]!=1 || ASSETCHAINS_COMMISSION!=0) { fprintf(stderr,"when using import for pegsCC these must be set: -ac_end=1 -ac_perc=0\n");