Post
Topic
Board Announcements (Altcoins)
Re: [ANN] Ħ [HODL] 5% Interest. No Staking Req. Term Deposits 10%. Solo Mining.
by
optiminer
on 08/06/2017, 07:15:41 UTC
There is a segfault in the hodl daemon when the period gets negative which makes it crash:

Code:
Thread 1015 "bitcoin-msghand" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7ffcf8998700 (LWP 1795)]
getBonusForAmount (periods=periods@entry=-88680, theAmount=theAmount@entry=6150503) at primitives/transaction.cpp:169
169      CBigNum rate256(bonusTable[periods]);
(gdb) bt
#0  getBonusForAmount (periods=periods@entry=-88680, theAmount=theAmount@entry=6150503) at primitives/transaction.cpp:169
#1  0x0000555555748698 in GetInterest (nValue=6150503, outputBlockHeight=262619, valuationHeight=, maturationBlock=173939)
    at primitives/transaction.cpp:245
#2  0x0000555555749ee0 in CTxOut::GetValueWithInterest (this=this@entry=0x7ffcf8995c40, outputBlockHeight=,
    valuationHeight=) at primitives/transaction.cpp:155
#3  0x00005555555f0413 in ConnectBlock (block=..., state=..., pindex=pindex@entry=0x7fffe40075a0, view=..., fJustCheck=fJustCheck@entry=false)
    at main.cpp:1945

I fixed this by capping the period at 0 if it is negative for the daemon at hodl.optiminer.pl. Would be nice to have an official fix.