cli: Fixed tx size issues that resulted in SIGSEGV's and SIGABRT's