Hush signed masks
This commit is contained in:
@@ -725,7 +725,7 @@ int32_t komodo_voutupdate(bool fJustCheck,int32_t *isratificationp,int32_t notar
|
||||
if ( signedfp == 0 )
|
||||
{
|
||||
char fname[512];
|
||||
hush_statefname(fname,SMART_CHAIN_SYMBOL,(char *)"signedmasks");
|
||||
hush_statefname(fname,SMART_CHAIN_SYMBOL,(char *)"hushsignedmasks");
|
||||
if ( (signedfp= fopen(fname,"rb+")) == 0 )
|
||||
signedfp = fopen(fname,"wb");
|
||||
else fseek(signedfp,0,SEEK_END);
|
||||
@@ -893,7 +893,7 @@ int32_t hush_connectblock(bool fJustCheck, CBlockIndex *pindex,CBlock& block)
|
||||
if ( signedfp == 0 )
|
||||
{
|
||||
char fname[512];
|
||||
hush_statefname(fname,SMART_CHAIN_SYMBOL,(char *)"signedmasks");
|
||||
hush_statefname(fname,SMART_CHAIN_SYMBOL,(char *)"hushsignedmasks");
|
||||
if ( (signedfp= fopen(fname,"rb+")) == 0 )
|
||||
signedfp = fopen(fname,"wb");
|
||||
else fseek(signedfp,0,SEEK_END);
|
||||
|
||||
@@ -1769,9 +1769,9 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler)
|
||||
|
||||
if (fReindex) {
|
||||
boost::filesystem::remove(GetDataDir() / "hushstate");
|
||||
boost::filesystem::remove(GetDataDir() / "signedmasks");
|
||||
boost::filesystem::remove(GetDataDir() / "hushsignedmasks");
|
||||
pblocktree->WriteReindexing(true);
|
||||
fprintf(stderr, "%s: Deleted hushstate and signedmasks...\n", __FUNCTION__);
|
||||
fprintf(stderr, "%s: Deleted hushstate and hushsignedmasks...\n", __FUNCTION__);
|
||||
|
||||
//If we're reindexing in prune mode, wipe away unusable block files and all undo data files
|
||||
if (fPruneMode)
|
||||
|
||||
Reference in New Issue
Block a user