sizeof(ASSETCHAINS_PEGSCCPARAMS)/sizeof(*ASSETCHAINS_PEGSCCPARAMS)

This commit is contained in:
jl777
2019-07-12 16:50:50 -11:00
parent b119fd7a98
commit 5af5292f52
2 changed files with 2 additions and 1 deletions

View File

@@ -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

View File

@@ -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");