Browse Source
Merge pull request #831 from jl777/jl777
Default using SPV cache firsttime
pass-iguana-arg
jl777
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
3 additions and
1 deletions
-
iguana/exchanges/LP_socket.c
-
iguana/exchanges/LP_transaction.c
|
|
@ -613,7 +613,7 @@ cJSON *electrum_address_listunspent(char *symbol,struct electrum_info *ep,cJSON |
|
|
|
if ( (ap= LP_address(coin,addr)) != 0 ) |
|
|
|
{ |
|
|
|
if ( ap->unspenttime == 0 ) |
|
|
|
usecache = 0; |
|
|
|
usecache = 1; |
|
|
|
else if ( ap->unspentheight < height ) |
|
|
|
usecache = 0; |
|
|
|
else if ( G.LP_pendingswaps != 0 && time(NULL) > ap->unspenttime+13 ) |
|
|
|
|
|
@ -1035,6 +1035,8 @@ uint64_t _komodo_interestnew(uint64_t nValue,uint32_t nLockTime,uint32_t tiptime |
|
|
|
//printf("minutes.%d tiptime.%u locktime.%u\n",minutes,tiptime,nLockTime);
|
|
|
|
if ( minutes > 365 * 24 * 60 ) |
|
|
|
minutes = 365 * 24 * 60; |
|
|
|
if ( nLockTime > 1536000000 && minutes > 31*24*60 ) |
|
|
|
minutes = 31 * 24 * 60; |
|
|
|
minutes -= 59; |
|
|
|
interest = ((nValue / 10512000) * minutes); |
|
|
|
} |
|
|
|