Tweak orphan handling
This commit is contained in:
@@ -357,7 +357,7 @@ void *dicefinish(void *_ptr)
|
||||
else if ( mytxid_inmempool(ptr->bettxid) != 0 )
|
||||
ptr->bettxid_ready = (uint32_t)time(NULL);
|
||||
}
|
||||
else if ( newblock != 0 && myGetTransaction(ptr->bettxid,betTx,hashBlock) == 0 )
|
||||
else if ( newblock != 0 && (myGetTransaction(ptr->bettxid,betTx,hashBlock) == 0 || now > ptr->bettxid_ready+600) )
|
||||
{
|
||||
fprintf(stderr,"ORPHANED bettxid.%s\n",ptr->bettxid.GetHex().c_str());
|
||||
dicefinish_delete(ptr);
|
||||
|
||||
@@ -16,7 +16,8 @@
|
||||
#include "CCHeir.h"
|
||||
|
||||
/*
|
||||
The idea of Heir CC is to allow crypto inheritance
|
||||
The idea of Heir CC is to allow crypto inheritance.
|
||||
A special 1of2 CC address is created that is freely spendable by the creator. The heir is only allowed to spend after the specified amount of idle blocks. The idea is that if the address doesnt spend any funds for a year (or whatever amount set), then it is time to allow the heir to spend. The design requires the heir to spend all the funds at once
|
||||
*/
|
||||
|
||||
// start of consensus code
|
||||
|
||||
Reference in New Issue
Block a user