Browse Source

test

pull/4/head
jl777 7 years ago
parent
commit
2626c7e3ac
  1. 3
      src/komodo_utils.h
  2. 2
      src/wallet/wallet.cpp

3
src/komodo_utils.h

@ -1454,7 +1454,8 @@ void komodo_args()
extern int64_t MAX_MONEY;
std::string name,addn; char *dirname,fname[512],magicstr[9]; uint8_t magic[4]; FILE *fp; int32_t i,baseid,len;
IS_KOMODO_NOTARY = GetBoolArg("-notary", false);
KOMODO_EXCHANGEWALLET = GetBoolArg("-exchange", false);
if ( (KOMODO_EXCHANGEWALLET= GetBoolArg("-exchange", false)) != 0 )
fprintf(stderr,"KOMODO_EXCHANGEWALLET mode active\n");
NOTARY_PUBKEY = GetArg("-pubkey", "");
if ( strlen(NOTARY_PUBKEY.c_str()) == 66 )
{

2
src/wallet/wallet.cpp

@ -2650,7 +2650,7 @@ bool CWallet::CreateTransaction(const vector<CRecipient>& vecSend,
}
if ( KOMODO_EXCHANGEWALLET != 0 )
{
fprintf(stderr,"KOMODO_EXCHANGEWALLET disable interest sum %.8f, interest2 %.8f\n",(double)interest/COIN,(double)interest2/COIN);
//fprintf(stderr,"KOMODO_EXCHANGEWALLET disable interest sum %.8f, interest2 %.8f\n",(double)interest/COIN,(double)interest2/COIN);
interest = 0;
}
CAmount nChange = (nValueIn - nValue + interest);

Loading…
Cancel
Save